IcE.
-
Posts
1,094 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Posts posted by IcE.
-
-
WTF era greu sa le dai un PM ?
Lock.
-
Normal ca nu merge
Cu pdc poti defini decat o singura masina.
Incerca asa [pawn]new pdcar[4];//nr-u masinilor +1
forward IsACopCar(carid)
public IsACopCar(carid)
{
for(new i = 0; i < sizeof(pdcar); i++)
{
if(carid == pdcar)
{
return 1;
}
}
return 0;
}
//OnGameModeInit
pdcar[0] = AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2, respawn_delay);
pdcar[1] = AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2, respawn_delay);
pdcar[2] = AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2, respawn_delay);
pdcar[3] = AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2, respawn_delay);
IsACopCar(carid)
{
if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1) { }
else
{
SCM(playerid,COLOR_WHITE,"You are not a member PD !");
RemovePlayerFromVehicle(playerid);
}
}
[/pawn]
-
[pawn]public SetPlayerToTeamColor(playerid)
{
if(IsPlayerConnected(playerid))
{
SetPlayerColor(playerid,0xFFFFFF00); //Civilian
if(PlayerInfo[playerid][pMember] == 1) { SetPlayerColor(playerid, 0x2641FE00); } //Cop
if(PlayerInfo[playerid][pLeader] == 1) { SetPlayerColor(playerid, 0x2641FE00); } //Ccp
if(PlayerInfo[playerid][pMember] == 2) { SetPlayerColor(playerid, 0x2641FE00); } //FBI
if(PlayerInfo[playerid][pLeader] == 2) { SetPlayerColor(playerid, 0x2641FE00); } //FBI
if(PlayerInfo[playerid][pLeader] == 3) { SetPlayerColor(playerid, 0x2641FE00); } //National Guard
if(PlayerInfo[playerid][pMember] == 3) { SetPlayerColor(playerid, 0x2641FE00); } //National Guard
if(PlayerInfo[playerid][pMember] == 4) { SetPlayerColor(playerid, 0xFF634700); } //Medic&Fireman
if(PlayerInfo[playerid][pLeader] == 4) { SetPlayerColor(playerid, 0xFF634700); } //Medic&Fireman
if(PlayerInfo[playerid][pMember] == 5) { SetPlayerColor(playerid, 0xFF990000); } //LCN
if(PlayerInfo[playerid][pLeader] == 5) { SetPlayerColor(playerid, 0xFF990000); } //LCN
if(PlayerInfo[playerid][pMember] == 6) { SetPlayerColor(playerid, 0x33AA3300); } //Yakuza
if(PlayerInfo[playerid][pLeader] == 6) { SetPlayerColor(playerid, 0x33AA3300); } //Yakuza
if(PlayerInfo[playerid][pMember] == 7) { SetPlayerColor(playerid, 0x578C3300); } //Mayor
if(PlayerInfo[playerid][pLeader] == 7) { SetPlayerColor(playerid, 0x578C3300); } //Mayor
if(PlayerInfo[playerid][pMember] == 8 ) { SetPlayerColor(playerid, 0x84000000); } //Hitman
if(PlayerInfo[playerid][pLeader] == 8 ) { SetPlayerColor(playerid, 0x84000000); } //Hitman
if(PlayerInfo[playerid][pMember] == 9) { SetPlayerColor(playerid, 0xC2A2DA00); } //News Reporter
if(PlayerInfo[playerid][pLeader] == 9) { SetPlayerColor(playerid, 0xC2A2DA00); } //News Reporter
if(PlayerInfo[playerid][pMember] == 10) { SetPlayerColor(playerid, 0xFFFF0000); } //Taxi
if(PlayerInfo[playerid][pLeader] == 10) { SetPlayerColor(playerid, 0xFFFF0000); } //Taxi
if(PlayerInfo[playerid][pMember] == 11) { SetPlayerColor(playerid, 0x33CCFF00); } //School Instructor
if(PlayerInfo[playerid][pLeader] == 11) { SetPlayerColor(playerid, 0x33CCFF00); } //School Instructor
}
}
[/pawn]
-
Ai luat crash .
Posteaza pe sa-mp.com si iti va raspunde Kalcor.
-
http://wiki.sa-mp.com/wiki/AttachObjectToVehicle
-
Mai este postat !
http://www.sa-mp.ro/forum/index.php/topic,13899.msg84839.html
-
Pt ce ai tradus un FS:-??
-
[pawn]format(PlayerFile , sizeof PlayerFile, "FightingStyles/%s.ini", Encode(pName(playerid)));[/pawn]
Modifici in:
[pawn]format(PlayerFile , sizeof(PlayerFile), "FightingStyles/%s.ini", Encode(pName(playerid)));[/pawn]
-
Fara link = Lock
-
1.
http://wiki.sa-mp.com/wiki/ShowPlayerDialog
http://wiki.sa-mp.com/wiki/SetPlayerSkin
http://wiki.sa-mp.com/wiki/GivePlayerWeapon
http://wiki.sa-mp.com/wiki/SetPlayerHealth
2.Cauta http://forum.sa-mp.com/showthread.php?t=302773
-
PlayAudioStreamForPlayer(playerid, "http://www.youtube-mp3.org/#v=_9yfS9jY_ds");
-
Odata ce nu postezi codurile navem cum sa te ajutam.
-
1.Ai lag.
2.Ai gm-u pe mysql?
3.Daca e mysql lai bagat prost.
-
[pawn]
//dupa include
new realtime = 1;
//OnGameModeInit
if (realtime)
{
new tmphour;
new tmpminute;
new tmpsecond;
gettime(tmphour, tmpminute, tmpsecond);
FixHour(tmphour);
tmphour = shifthour;
SetWorldTime(tmphour);
}
//sub o functie care e setata la ongamemode cu settimer
if (realtime)
{
SetWorldTime(tmphour);
}
[/pawn]
-
Cauta if(MapIconsShown[playerid] != 1) si stergi tot ce tine de el.
-
O ceri in topicu respectiv.
-
Titlu.
-
Titlu.
-
sterge #endif :O
-
Teai grabit , pardoseaua aia e una jos una sus... a calcat bigfoot pe ia :-???
Palmieri din cate stiu eu nu cresc pe nisip...
-
Sunt obiecte adugate in 0.3c , cauta pe sa-mp.com este un editor care are toate obiectele.
Nu este forum de MTA asta.
-
new animid;
-
Probabil e de la GTA ca asa imi face pe orice gm...
Nu e de la GTA.... e de la gm, ai adugat ceva prost pe acolo .. asta am facut si eu in gm-u meu . :\
Adauga la sfarsit de SetPlayerSpawn(playerid) asta : SetCameraBehindPlayer(playerid);
-
RuNiNg" post="113465" timestamp="1330588572"]
E problema din GameMode....alte servere merg.....
Ooo, e prima data cand aud asta, posteaza server_log
rCon
in Arhivă probleme
Posted
Engleza(wiki):
Romana(traduse de vyorel):