Strip User Weapons Last CT
Hi, i tried to make a little plugin that strips terros weapons (primary, secondary, c4) when only 1 CT remains, but it didn't work.
- The Link to the stock i Used : Strip Primary weapon, secondary, grenades. - This Code i made : PHP Code:
Code:
L 07/24/2014 - 19:02:58: [CSTRIKE] Player out of range (0)If someone has the time to help me, i'll be really gratefull. |
Re: Strip User Weapons Last CT
Where is the rest of the code? Where is the complete error message?
|
Re: Strip User Weapons Last CT
First of all, there is no arguments passed through the function header for that message.
And if you have only 1 player found with get_players(), then you can get their index with iPlayersCt[ 0 ], which you would pass to your stripping function. However I'm not sure why your checking for the last CT but then trying to strip weapons off a T. |
Re: Strip User Weapons Last CT
try with
fm_strip_user_weapons( index ); include fakemeta_util.inc |
Re: Strip User Weapons Last CT
Quote:
|
Re: Strip User Weapons Last CT
Quote:
This is also the full code, the stock is given in the link on the first post. Hornet, i want the server to strips all Terros weapons when it still only 1 CT left on the round. I can't use iPlayersCt[ 0 ] in strips user weapons because it'll strip the weapons to the last CT, and i don't want to do that. What do you mean by : Quote:
|
Re: Strip User Weapons Last CT
DeathMsg doesn't have arguments passed into the header of the function,you get them with read_data.
PHP Code:
|
Re: Strip User Weapons Last CT
Quote:
|
Re: Strip User Weapons Last CT
Thanks for the code HamletEagle, i'm testing it when i'll have the time, but i think this is the right way to do it.
|
Re: Strip User Weapons Last CT
It worked, if someone wants to take his code and is not experienced, change
PHP Code:
PHP Code:
Edit: Nvm, got fixed :) |
| All times are GMT -4. The time now is 13:05. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.