Help! Text help! I am a Novice
#2

With this code you can add more countdowns. You just have to change CountDownerType numbers...
PHP код:
new CountDownerType[max_players],
    
CountDownLeft[max_players];
public 
OnGameModeInit(){
    
SetTimer("CountDown",1000,true);
    return 
1;
}
forward CountDown();
public 
CountDown(){
    new 
s[50];
    foreach(
Player,i){
        switch(
CountDownerType[i]){
            case 
1:{
                
format(s,sizoef(s),"POLICE FIND YOU: %d SECONDS",--CountDownLeft[i]);
                
PlayerTextDrawSetString(i,PTD_CountDown[i],s);
                if(!
CountDownLeft[i]){
                    
CountDownerType[i]=0;
                                        
PlayerTextDrawHide(iPTD_CountDown[i]);
                }
            }
        }
    }
    return 
1;

Reply


Messages In This Thread
Help! Text help! I am a Novice - by XiaoZe - 21.07.2017, 10:23
Re: Help! Text help! I am a Novice - by CodeStyle175 - 21.07.2017, 11:25
Re: Help! Text help! I am a Novice - by XiaoZe - 21.07.2017, 12:58

Forum Jump:


Users browsing this thread: 1 Guest(s)