SA-MP Forums Archive
Reset Weapons - 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: Reset Weapons (/showthread.php?tid=309146)



Reset Weapons - Hansrutger - 06.01.2012

Hello there. I've tried to find some way or a function that could do this for me but I wasn't able to find any. So this is something I want to do, when someone is doing the specific command, he/she should lose their weapons and go to zero again (as in no weapons at all). How to script this in a very easy way?


Re: Reset Weapons - DrakeX - 06.01.2012

Use the function ResetPlayerWeapons(playerid);.


You can also use this for future reference: https://sampwiki.blast.hk/wiki/Category:Scripting_Functions


Re: Reset Weapons - Hansrutger - 06.01.2012

Yeah no shit? Don't you think I tried? Beside if you think it is there, try to find it: ctrl + v and Reset It's not even there. Anyways thanks.


Re: Reset Weapons - DrakeX - 06.01.2012

Quote:
Originally Posted by Hansrutger
Посмотреть сообщение
Hello there. I've tried to find some way or a function that could do this for me but I wasn't able to find any. So this is something I want to do, when someone is doing the specific command, he/she should lose their weapons and go to zero again (as in no weapons at all). How to script this in a very easy way?
Quote:
Originally Posted by DrakeX
Посмотреть сообщение
Quote:
Originally Posted by Hansrutger
Посмотреть сообщение
Yeah no shit? Don't you think I tried? Beside if you think it is there, try to find it: ctrl + v and Reset It's not even there. Anyways thanks.
I'm confused right now. In your post, your asking how to reset a user's weapons, but in your reply, you seem to be trying to find the function in your script.


Re: Reset Weapons - Hansrutger - 06.01.2012

Yeah sorry for confusing. I meant to do a search in the function list here, https://sampwiki.blast.hk/wiki/Category:Scripting_Functions, that I couldn't find it there when searching on the words "Reset" and "Weapon" but nevermind, you helped me and you received a rep. Thanks!