Raised This Month: $ Target: $400
 0% 

Do something depends of player count


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 08-13-2010 , 17:56   Do something depends of player count
Reply With Quote #1

Well, i have a simple question. I can't test right now, for that reason i am posting here.

Code:
new g_iPlayers; public client_connect(id) {     g_iPlayers++;         DoSomething(); } public client_disconnect(id) {     g_iPlayers--;         DoSomething(); } public DoSomething() {     if(g_iPlayers > 5)     {         // some code here     }     else     {         // some code here     } }

I want to know if this method is correct or i have to add something to fix bugs, or something like that.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:56.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode