SA-MP Forums Archive
The /givegun 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: The /givegun command? (/showthread.php?tid=88873)



The /givegun command? - anonymoushacker - 29.07.2009

I need the command /givegun for my server, where u give only the ammo of the gun, unless they dont have that spacefic gun, so if they have the gun u jus tgive them ammo, if they dont, u give them the gun itself.

I usually do not have other people do the work for me, but i am completely stuck here. thanks!


Re: The /givegun command? - anonymoushacker - 29.07.2009

sorry for DP, but its not supposed to be admin command either, its for all players to give guns to their buddies


Re: The /givegun command? - MPKaboose - 29.07.2009

you can edit you're posts and there is one already just search


Re: The /givegun command? - anonymoushacker - 29.07.2009

i already looked all over dude, there is no .givegun command that works, i cannot find it, if u do please send me the link.


Re: The /givegun command? - .::: Ecko :::. - 29.07.2009

Isn't this easyer,it will give you gun and ammo, if you have one already and if you don't have.(same with ammo thing)
This will give you a gun with ammo:

if(strcmp("/givegun",cmd,true)==0){
GivePlayerWeapon(playerid, weaponid, ammo);
return 1;
}

Ecko