17.03.2011, 16:35
(
Последний раз редактировалось tanush; 17.03.2011 в 18:34.
)
Im making an dynamic org creator but when i create and set someone leader, they wont get guns
pawn Код:
CMD:createorg(playerid, params[])
{
new str[256],id,wep1,wep2,wep3,name;
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFFFFFFAA, "SERVER: Unknown command.");
if(sscanf(params,"uddds",id,wep1,wep2,wep3,name))return SendClientMessage(playerid,0xFF9900AA, "USAGE: /createorg [leader] [wep1] [wep2] [wep3] [name]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid,0xFF0000FF, "That user is not connected.");
GivePlayerWeapon(id,wep1,5000);
GivePlayerWeapon(id,wep2,5000);
GivePlayerWeapon(id,wep3,5000);
format(str, sizeof(str),"An Admin has set you leader of %s!",name);
SendClientMessage(playerid,0xFF9900AA,str);
return 1;
}