Please Help me on plugins.
Hi.
I am new to small and I need a little bit of help. I am trying to get a plugin that if you type /frisk you get the number of guns the player has. I have tryed many thing but they do not work. Can I get a little bit of help? Code:
|
Im kinda noob at the scripting thing too but it looks like your setting your variables to nothing
shouldn't it be new id, blah, blah = (something)???? |
Like they all start off to be zero? That may be a reason.
Edit: Well that does not work but thanks for the try. I have it working enough for it to register if there is not a gun. But I just found out that ts_getuserwpn finds a single weapon or some thing along those lines. So is there a way to code some thing like this? if (weaponsid = 0) { client_print(id,print_chat,"Player does not have a weapon.") } Again thank you for your help. |
not sure about ts, but maybe this works :)
Code:
|
Nope, get_user_weapons does not work on ts. But thanks for the help.
|
At least show us (1) the full code or (2) the whole function.
|
Sorry.
Code:
I have been testing with diffrent things so some things are there that don't need to be. |
I added comments so you would know what I did.
Code:
|
Thank you so much! If this works I will put the little v3x is a PIMP thing in my sig. :D
Also please do tell me what you did there, because I am new to scripting and want to learn how to do the best I can. Thank you again. Edit: Some thing is wrong with the Code:
|
Ok I just had to change it to weaponsid >= 1. Again thank you very much for your help.
I have a new problem now. When a person picks up a gun and then drops it, weaponsid does not seem to go back to 0. So even if they do not have a gun it will still say they do. |
| All times are GMT -4. The time now is 16:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.