Samp /creategun 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)
+--- Thread: Samp /creategun Command (
/showthread.php?tid=445632)
Samp /creategun Command -
San1 - 22.06.2013
How can i create a Basic /creategun command? Where i can create m4,ak and stuff from Materials..
I also wanna know how to make a leveling up system so i can level up arms for new guns
Im using SSCANF and ZCMD
Re: Samp /creategun Command -
SMW - 22.06.2013
pawn Код:
CMD:creategun(playerid, params[]){
new target,weapid,ammo;
if(sscanf(params,"dd",target,weapid,ammo)) return SendClientMessage(playerid,"usage : /creategun [playerid][weaponid][ammo]");
GivePlayerWeapon(target,weapid,ammo);
return 1;
}
thats the basic, you need to watch your anti weapon hack system to give valid weapon, just costumize your self..