[FUN] Invalid player 2 on my script =/
Hi guys,
I made a plugin for fy_ maps for my server alone that drops their glock and usp and replace it with a deagle. It works perfectly, just that if I don't add "debug" in plugins.ini it gives me this error: Quote:
Here's the code: Code:
|
I'm not positive, but I believe it could be that there aren't two people on the server - one with a glock and one with a usp. Plus, ResetHUD occurs at user spawn or at the very end of the round (at least that's my understanding of it). I could be wrong of cours, but I would try this:
Code:
Optionally you can try this, but I think the first one shoudl work: Code:
|
@ ^_^Satan^_^
You should be checking if the player is alive to. Because ResetHud is called more often then you think. It called after putinserver when the client join |
teame06 is smart. Put the is_user_alive thing back in :P
|
Lol, ok ^^ Thanks, I'll try it out.
edit: Well it works fine, no errors, but now it drops my glock then gives me deagle, then drops it, and give me another glock. o.o I'll check and see if I can get it working. I used the first code btw by satan. edit2: I made my original script work by using an if and else statement in between the drop cmds. Now it works, and even better, it doesn't give players who did'nt die last round a new deagle on start of new round. ^^ Thx for the effort. +Karma. |
| All times are GMT -4. The time now is 20:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.