Raised This Month: $ Target: $400
 0% 

Verify online users.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 10-06-2010 , 14:25   Re: Verify online users.
Reply With Quote #5

Quote:
Originally Posted by killergirl View Post
Thank you for fast reply. I solved the problem.

(I have a war server and I want to make additional scripts, to moderate the game if there is no admins online.)

I have a second question about "maximum team score". So is there 2 players, one CT and one T, and somebody reach the maximum score allowed, suddenly both get's a team switch.

Eg. T reach 10 allowed score and he will be changed to CT, and the CT player changed to T, after the switch the game will be restarted.

Any ideas?
Look up the DeathMsg event.

PHP Code:
new t_Score;
public 
deathmsgevent()
{
     new 
iKiller read_data(1)
     
     if( 
get_user_team(iKiller) == )
     {
          
t_Score++

          if( 
t_Score == 10 )
          {
               
//end the round the way that best fits you
          
}
     }

use get_user_team(iKiller) == 2 to retrieve CT's, and increase a variable the same way. Hope you understand.
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
 



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 10:28.


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