SA-MP Forums Archive
/dropgun CMD - I need help - 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: /dropgun CMD - I need help (/showthread.php?tid=147046)



/dropgun CMD - I need help - mr.shark - 10.05.2010

Well im looking for someone who can make /dropgun command for me cuz my gm needs only this cmd when its done ill run the server on 24/7

Contact me : Mr.shark2007@msn.com




Re: /dropgun CMD - I need help - ViruZZzZ_ChiLLL - 10.05.2010

Uhmmm.. Try this
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/dropgun", cmdtext, true, 8) == 0)
{
ResetPlayerWeapons(playerid);
return 1;
}

return 0;
}



Re: /dropgun CMD - I need help - mr.shark - 10.05.2010

Thanks for ur reply but ididnt mean this one


I meant /dropgun - it drops the gun you holding right now and when u /dropgun it, it makes a gun object for example : u dropped MP5 It automaticaly makes mp5 object under you


Re: /dropgun CMD - I need help - russo666 - 10.05.2010

here: http://forum.sa-mp.com/index.php?top...499#msg1009499

just follow the example and change it to your needs.


Re: /dropgun CMD - I need help - mr.shark - 10.05.2010

Quote:
Originally Posted by russooooo
here: http://forum.sa-mp.com/index.php?top...499#msg1009499

just follow the example and change it to your needs.
Ahhhh thank you very much this worked what about /pickupgun - picks up a gun when i drop a gun



Re: /dropgun CMD - I need help - luigifan9 - 10.05.2010

Quote:
Originally Posted by mr.shark
Quote:
Originally Posted by russooooo
here: http://forum.sa-mp.com/index.php?top...499#msg1009499

just follow the example and change it to your needs.
Ahhhh thank you very much this worked what about /pickupgun - picks up a gun when i drop a gun
ahh you don't need that. If you do it correctly it should make a pickup that you can just walk over



Re: /dropgun CMD - I need help - russo666 - 10.05.2010

Quote:
Originally Posted by luigifan9
Quote:
Originally Posted by mr.shark
Quote:
Originally Posted by russooooo
here: http://forum.sa-mp.com/index.php?top...499#msg1009499

just follow the example and change it to your needs.
Ahhhh thank you very much this worked what about /pickupgun - picks up a gun when i drop a gun
ahh you don't need that. If you do it correctly it should make a pickup that you can just walk over
No, you can't. It's an object of the gun not a pickup.

Now i'm kinda busy, i'll take a look tomorrow or something.


Re: /dropgun CMD - I need help - mr.shark - 10.05.2010




I can + isaw it in another server when u type /pickitem the object gets destroyed and then u get the gun

but i dont know how to do it.... i hope if you help me