My plugin works for everyone else but not for me...
Hello,
Amx is at 1.71 on windows. Well, my plugin worked before I upgraded to 1.70 so it might be code changes that affected it. My problem is that on fy_ maps, I made a plugin so that they will drop their usp or glock, and give them a deagle instead. It works, however, it's not working for me anymore. It works for everyone else and even bots, but I can't make it work for me. Code:
I ono why it's ignoring me and not anyone else. =/ |
listenserver?
|
Omg, I forgot about this thread. Sorry for not replying.
No, I am running my server on a Windows Dedicated Server. I still can't figure out how to fix it. |
You should not check just for player's current weapon.
For example clients who set _cl_autowepswitch CVAR to 0 will hold a knife because it given before secondary weapon on spawn. Try that way: Code:
Also you probably want to strip weapon but don't know how to do it. In this case you may use my strip_user_gun stock: http://forums.alliedmods.net/showthread.php?t=26300 |
Thx for the fix, I did have autoswitch off, but used your fix also. :)
And, if it's suppose to strip, I still see it "drop" right in front of me. I just added that strip code before my function, I thought it disappears. o.o |
Quote:
Quote:
Code:
Note: engine module should be enabled. |
Ok, I meant on lol. And, ya I didn't change my coding while I had your stock. Thanks again.
|
| All times are GMT -4. The time now is 05:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.