View Single Post
chancsomy
Junior Member
Join Date: Sep 2013
Old 02-11-2015 , 09:34   Re: [CSGO]What command can only let the plugin only run 1 time?
Reply With Quote #3

Quote:
Originally Posted by Mehis View Post
You can just unhook the events like this:

PHP Code:
public Event_RoundStart(Handle:event, const String:name[], bool:dontBroadcast

    
PrintToChatAll("[\x05HKG\x01] \x04knife round starts!");
    
    
UnhookEvent"round_start"Event_RoundStart );
    
    return;


public 
Event_RoundEnd(Handle:event, const String:name[], bool:dontBroadcast

    
UnhookEvent"round_end"Event_RoundEnd );
    
    if(
GetTeamScore(CS_TEAM_T) == 1){ 
        
PrintToChatAll("[\x05HKG\x01] \x04T WON"); 
        return; 
    } 
    else{ 
        
PrintToChatAll("[\x05HKG\x01] \x04CT WON"); 
        return; 
    }

It works !!!! THANK YOU A LOT!!!!!!

2 More questions , which command that i can get the round ?
for example i want to make this

PrintToChatAll("[SM] xx Round Started! ");

and after finish the knife round . i want the winner can type !stay / !swap to select the starting side. but how can i only allow this command for winner ?

ty once again

Last edited by chancsomy; 02-11-2015 at 10:40.
chancsomy is offline