04.05.2015, 12:47
here is the command :
PHP код:
CMD:givegun(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 5) return SendClientMessageEx(playerid, COLOR_RED, " You are not authorized to use that command !");
new giveplayerid, weaponid;
if(weaponid == 38) return SendClientMessageEx(playerid, COLOR_RED, "You cannot give anyone a minigun!");
if(sscanf(params, "ud", giveplayerid, weaponid))
{
SendClientMessage(playerid, COLOR_WHITE, "Syntax:givegun [player] [weaponid]");
}
GivePlayerGun(giveplayerid, weaponid, 50);
return 1;
}