Raised This Month: $ Target: $400
 0% 

[Help] Trigger on specific rounds


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Shiina.Mashiro
Senior Member
Join Date: Sep 2014
Location: Vietnam
Old 10-03-2014 , 10:03   Re: [Help] Trigger on specific rounds
Reply With Quote #8

Quote:
Originally Posted by jimaway View Post
dont use for loop for that, use moduo

Code:
new g_Round public Event_NewRound() { g_Round++ if (g_Round % 5 == 0) { //1ststuff } if(g_Round % 5 == 1 && g_Round > 1) { //2ndstuff } }
i tried your way
PHP Code:
if(g_Round == 0)
    {
        for(new 
1g_MaxPlayersi++)
        {
            
g_Team[i] = cs_get_user_team(i)
        }
        
start_assasinday()
        
client_print(0print_chat"this round is assasinday")
    }
    if((
g_Round == 1) && (g_Round 1))
    {
        for(new 
1g_MaxPlayersi++)
        {
            
cs_set_user_team(ig_Team[i])
        }
        
client_print(0print_chat"reset player team")
    } 
and it still doesn't work the 1st stuff and the 2nd still works fine ...
im pretty sure the problem is not start_assasinday because it has no problem when i start it manually
__________________
Shiina.Mashiro 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 17:44.


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