AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Rounds Counting (https://forums.alliedmods.net/showthread.php?t=105416)

LostSkill 10-04-2009 11:40

Rounds Counting
 
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



xPaw 10-04-2009 11:45

Re: Rounds Counting
 
PHP Code:

register_event"TextMsg""EventRestart""a""2=#Game_will_restart_in" ); 

And reset it in EventRestart( )

LostSkill 10-14-2009 05:46

Re: Rounds Counting
 
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...


All times are GMT -4. The time now is 22:38.

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