06.12.2009, 11:36
Код:
if(strcmp(cmd, "/ammo", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pFaction] == 3) //here you need to pur SWAT's faction ID. { SafeGivePlayerWeapon(playerid, 24, 70); SafeGivePlayerWeapon(playerid, 31, 200); PlayerActionMessage(playerid,15.0,"takes out his M4 under the seat");//Edit this with what you want :P return 1; } } }