SA-MP Forums Archive
A Gun spawning command. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: A Gun spawning command. (/showthread.php?tid=155059)



A Gun spawning command. - DavidMcp - 16.06.2010

Hey can Someone help me Script a command like /spawngun /getgun Anything and Make it for Rcon Admin only I'm So confuses at this moment,
Also Can someone Help with my Other Accent Page or Even poist it here?


Re: A Gun spawning command. - MastahServers - 16.06.2010

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



Re: A Gun spawning command. - Kyosaur - 16.06.2010

look at the /w2 command in the default filterscript "fsdebug".


Re: A Gun spawning command. - DavidMcp - 16.06.2010

Every time i try to add /w2 if Messes like hell it always crashes my pawno