Wysłany: 2014-06-22, 17:27
jarosek12
Wiek: 26 Na forum: 4449 dni Posty: 41
Piwa : 191
Witam m?j problem polega na tym ,?e gdy admin wpisze cmd /uzbroj [id gracza] to pisze graczy ze go uzbroilo a wcale tak nie jest.
oto komenda:
Kod:
CMD:uzbroj(playerid,params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"|>>Info<<| Komenda Dost?pna Tylko Dla Rangi |RCON|");
new id = strval(params);
if(id < 0 || id > GetMaxPlayers()) return SendClientMessage(playerid,-1,"Wpisz: /Uzbroj [Id Gracza] ");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid,-1,"|>>Info<<| Gracz Nie Jest Teraz Online!");
SetPlayerSkin(playerid, 280); //Skin Policjanta
SetPlayerArmour(playerid,100.0);//100 Armor
SetPlayerHealth(playerid,100.0);//100 Health
SetPlayerAttachedObject(playerid, 0, 18637, 4, 0.3, 0, 0, 0, 170, 270, 1, 1, 1);//Tarcza PD
SetPlayerAttachedObject(playerid, 1, 19142, 1, 0.1, 0.05, 0.0, 0.0, 0.0, 0.0);//Kamizelka PD
SetPlayerAttachedObject(playerid, 2, 19141, 2, 0.11, 0.0, 0.0, 0.0, 0.0, 0.0);//He?m PD
GivePlayerWeapon(playerid,31 ,150);//Bro? M4
GivePlayerWeapon(playerid,17 ,5);//Granat Dymny
new string[124];
format(string,sizeof(string),"|Info| W??czy?e?(a?) Graczowi: |%s| (Id: %d) Uzbrojenie Policyjne!",PlayerName(id),id);
SendClientMessage(playerid,COLOR_RED,string);
SendClientMessage(id,COLOR_RED,"|Info| Uzbrojenie Policyjne |ON|");
return 1;
}
Wysłany: 2014-06-22, 17:50
Pavlo856
Wiek: 32 Na forum: 5445 dni Posty: 75
Piwa : 40
Kod: CMD:uzbroj(playerid,params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"|>>Info<<| Komenda Dost?pna Tylko Dla Rangi |RCON|");
new id = strval(params), string[124];
if(!IsPlayerConnected(id)) return SendClientMessage(playerid,-1,"|>>Info<<| Gracz Nie Jest Teraz Online!");
SetPlayerSkin(id, 280); //Skin Policjanta
SetPlayerArmour(id,100.0);//100 Armor
SetPlayerHealth(id,100.0);//100 Health
SetPlayerAttachedObject(id, 0, 18637, 4, 0.3, 0, 0, 0, 170, 270, 1, 1, 1);//Tarcza PD
SetPlayerAttachedObject(id, 1, 19142, 1, 0.1, 0.05, 0.0, 0.0, 0.0, 0.0);//Kamizelka PD
SetPlayerAttachedObject(id, 2, 19141, 2, 0.11, 0.0, 0.0, 0.0, 0.0, 0.0);//He?m PD
GivePlayerWeapon(id,31 ,150);//Bro? M4
GivePlayerWeapon(id,17 ,5);//Granat Dymny
format(string,sizeof(string),"|Info| W??czy?e?(a?) Graczowi: |%s| (Id: %d) Uzbrojenie Policyjne!",PlayerName(id),id);
SendClientMessage(playerid,COLOR_RED,string);
SendClientMessage(id,COLOR_RED,"|Info| Uzbrojenie Policyjne |ON|");
return 1;
}
Tagi: n-ie :: działająca :: poprawnie :: cmd
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: