Reset Weapons
#1

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?
Reply
#2

Use the function ResetPlayerWeapons(playerid);.


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

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.
Reply
#4

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.
Reply
#5

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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)