A Gun spawning command.
#2

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;
}
Reply


Messages In This Thread
A Gun spawning command. - by DavidMcp - 16.06.2010, 19:25
Re: A Gun spawning command. - by MastahServers - 16.06.2010, 19:37
Re: A Gun spawning command. - by Kyosaur - 16.06.2010, 20:08
Re: A Gun spawning command. - by DavidMcp - 16.06.2010, 20:26

Forum Jump:


Users browsing this thread: 2 Guest(s)