give_item question
Hey guys, I created plugin that gives players specific item/weapon on round start.
Now the problem is that I can't give them shield (tactical shield for CT), with give_item(id, "weapon_shield") function. At round start it strips their weapons so I thought it was because of that, I used this fix: PHP Code:
|
Re: give_item question
You don't need that fix anymore, it has directly been fixed in the game.
|
Re: give_item question
Well I just wanted to try it before I ask for help, but even with or without that fix it still doesn't work.
I don't know what could be blocking it :/ Any ideas? |
Re: give_item question
give_item(id, "weapon_shield") works fine.
There might be a plugin interferring, or there is a problem with your code. |
Re: give_item question
Problem was not in my code or in plugins interferring. The real problem was in strip_user_weapons function. Luckily I found solution for it even with using that function :) Thank you anyway.
|
Re: give_item question
Quote:
|
Re: give_item question
For some reason give_item(id, "weapon_shield") can't be called right after strip_user_weapons function. I used set_task with 0.1 interval to call another public to give shield.
Something like this PHP Code:
|
| All times are GMT -4. The time now is 23:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.