Raised This Month: $ Target: $400
 0% 

Rounds Counting


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LostSkill
Senior Member
Join Date: Jun 2008
Location: Monuhuelo Island
Old 10-04-2009 , 11:40   Rounds Counting
Reply With Quote #1

Well how i can make that system count rounds and if match got restarted it begin count from 0 again.

PHP Code:
public logevent_Round_Start()
{
    
round++;
    new 
players[32], playerpnum;
    
get_players(playerspnum"a");
    for(new 
0pnumi++)
    {
        
player players[i];
        if(
get_user_flags(player) & ADMIN_LEVEL_H)
        {
            return 
PLUGIN_CONTINUE
        
if(round 3Showrod(player)
        }
    }
    return 
PLUGIN_HANDLED

__________________
MY ENGLISH IS BAD.....
LostSkill is offline
Send a message via MSN to LostSkill
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-04-2009 , 11:45   Re: Rounds Counting
Reply With Quote #2

PHP Code:
register_event"TextMsg""EventRestart""a""2=#Game_will_restart_in" ); 
And reset it in EventRestart( )
__________________
xPaw is offline
LostSkill
Senior Member
Join Date: Jun 2008
Location: Monuhuelo Island
Old 10-14-2009 , 05:46   Re: Rounds Counting
Reply With Quote #3

U dont understand ;p Us u see in my code is (round >= 3) then show menu but it begin show it after first round start not after 3 and i dont know what is wrong. And how to return if got map rr rounds begin count from new so again to show it after 3 rounds...
__________________
MY ENGLISH IS BAD.....
LostSkill is offline
Send a message via MSN to LostSkill
Reply



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 22:38.


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