Server lot for hltv
ok I am seriously trying to learn how to code just need some help to get me to understand on how to do it
what i need is to grab sv_visiblemaxplayers value and +1 when a the HLTV enters and -1 for exit and i need this to override any other plugin that changes that cvar the code i made Crashes and i tossed it out..now im askin for help :( |
Re: Server lot for hltv
Try this maybe:
PHP Code:
|
Re: Server lot for hltv
OK Tested it 1/2 way works
before HLTV enters = 0/10 when hltv enters = 1/11 when hltv left = 0/9 |
Re: Server lot for hltv
Try this:
PHP Code:
PHP Code:
|
Re: Server lot for hltv
this does the same thing as the other guys script
before HLTV enters = 0/10 when hltv enters = 1/11 when hltv left = 0/9 Quote:
and this one fails to compile on g_bIsHLTV[i] = false Error: Undefined symbol "i" and for(new i=1; i<=g_iMaxPlayers; i++) Error Undefined symbol "g_iMaxPlayers" Quote:
also Thank you so much Everybody for the Help |
Re: Server lot for hltv
THIS CODE DOES WORK
i just had a another plugin causeing it to go to 0/9 i commented out the "public client_disconnect" area and it worked fine Quote:
|
Re: Server lot for hltv
Yeah, I just realized my code has a flaw, oops :).
|
| All times are GMT -4. The time now is 15:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.