TogglePlayerControllable
#2

Add this and post the results of what happends
PHP код:
new
    
FrozenTest[MAX_PLAYERS];
    
forward UnfreezePlayer(playerid);
    
public 
OnPlayerSpawn(playerid) {
    
TogglePlayerControllable(playerid,0);
    
FrozenTest[playerid] = 0;
    
printf("FrozenTest: %i",FrozenTest[playerid]);
    
SetTimerEx("UnfreezePlayer",5000,false,"i",playerid);
    return 
true;
}

public 
UnfreezePlayer(playerid) {
    
TogglePlayerControllable(playerid,1);
    
FrozenTest[playerid] = 1;
    
printf("FrozenTest: %i",FrozenTest[playerid]);
    return 
true;

Reply


Messages In This Thread
TogglePlayerControllable - by Sheperc - 23.12.2015, 13:20
Re: TogglePlayerControllable - by TwinkiDaBoss - 23.12.2015, 13:26

Forum Jump:


Users browsing this thread: 2 Guest(s)