Will this work? Set money on round end plugin
Trying to make plugin that
checks on round end if(is the user is dead && is on the losing team && money is less than 800) { sets users money to 800 } but it is giving a tag mismatch error during compiling on these two lines Code:
if ((fm_get_user_team(i) == CS_TEAM_CT) && !is_user_alive(i) && (cs_get_user_money(i) < 800))PHP Code:
|
Re: Will this work? Set money on round end plugin
PHP Code:
|
Re: Will this work? Set money on round end plugin
You are hooking teams win incorrectly, use get_players then loop through players array indexes.
|
Re: Will this work? Set money on round end plugin
Quote:
PHP Code:
|
Re: Will this work? Set money on round end plugin
Untested .
PHP Code:
|
Re: Will this work? Set money on round end plugin
I don't understand why do you check !is_user_alive()?
There's no need to do. |
Re: Will this work? Set money on round end plugin
Quote:
Also use flag b in get players and remove the check if is user dead |
Re: Will this work? Set money on round end plugin
Quote:
yeah @natsheh i was so offmind .. i just went acc to wht he said in description xD |
Re: Will this work? Set money on round end plugin
Quote:
PHP Code:
|
Re: Will this work? Set money on round end plugin
thank you will be testing this soon and will edit this comment
|
| All times are GMT -4. The time now is 00:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.