16.06.2010, 19:37
pawn Код:
if(strcmp(cmdtext, "/spawnminigun", true) == 0)
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED,"You are not authorized to spawn a minigun!");
else
GivePlayerWeapon(playerid, 38, 5000); // it gives him minigun (= ID 38), with 5000 ammo (= 5000 on the last part)
return 1;
}