GameTextForPlayer issue
#3

PHP код:
forward GameTextForEvent(const string[]); 
public 
GameTextForEvent(const string[]) 

    foreach(
Player,i
    { 
        if(
IsPlayerConnected(i)) 
        {    if(
PartEvent[i] == 1
            { 
                
GameTextForPlayer(i,string,1000,4); 
            } 
        } 
    } 
    return 
1

forward CountDownEvent(); 
public 
CountDownEvent() 

    
CountDownVar--;  
    
printf("%d",CountDownVar); 
    new 
string[128]; 
    if(
CountDownVar == 0
    { 
        
KillTimer(CountDownEventTimer); 
        
CountDownVar 5;  
        foreach(
Player,i
        { 
            if(
PartEvent[i] == 1
            { 
                
TogglePlayerControllable(i,1); 
                
format(string,sizeof(string),"%d mai sunt in event!",EventPlayers); 
                
TextDrawSetString(EventTXD,string); 
            } 
        } 
    } 
    else 
    { 
        
SetTimer("CountDownEvent",1000,false); 
        
format(stringsizeof(string), "%d"CountDownVar); 
        
GameTextForEvent(string); 
    } 
    return 
1

Reply


Messages In This Thread
GameTextForPlayer issue - by TheDarkBlade - 22.12.2016, 19:39
Re: GameTextForPlayer issue - by Nero_3D - 22.12.2016, 20:17
Re: GameTextForPlayer issue - by Yaa - 22.12.2016, 20:35

Forum Jump:


Users browsing this thread: 2 Guest(s)