[Ajuda] Congelar Player em CheckPoint
#4

PHP код:
forward DescongelarP(playerid); 
public 
OnPlayerEnterCheckpoint(playerid
{
     
    if(
ccp[playerid] == 1
    {
         
        
DisablePlayerCheckpoint(playerid); 
        
ccp[playerid] = 2
        
SetPlayerCheckpoint(playerid,1150.4137,-1572.1168,12.84586.5); 
        
GameTextForPlayer(playerid,"Carregando...!",5000,6) , PlayerPlaySound(playerid,1139,0.0,0.0,0.0); 
        
TogglePlayerControllable(playerid0);
        
SetTimerEx("DescongelarP"1000false"d",playerid);
        return 
1
    } 
    if(
ccp[playerid] == 2
    {
         
        
DisablePlayerCheckpoint(playerid); 
        
ccp[playerid] = 0
        
GivePlayerMoney(playeridGetPlayerMoney(playerid) + random(5000) + 1000 ); 
        
GameTextForPlayer(playerid,"Descarregando...!",5000,6) , PlayerPlaySound(playerid,1139,0.0,0.0,0.0); 
        
TogglePlayerControllable(playerid0);
        
SetTimerEx("DescongelarP"1000false"d",playerid);
        return 
1
    } 
    return 
1
}  
public 
DescongelarP(playerid

    
TogglePlayerControllable(playerid1);     
    return 
1

Reply


Messages In This Thread
Congelar Player em CheckPoint - by Cauezin - 17.03.2018, 01:37
Re: Congelar Player em CheckPoint - by Marllun - 17.03.2018, 01:46
Re: Congelar Player em CheckPoint - by Cauezin - 17.03.2018, 01:50
Re: Congelar Player em CheckPoint - by Marllun - 17.03.2018, 01:54
Re: Congelar Player em CheckPoint - by Cauezin - 17.03.2018, 02:00
Re: Congelar Player em CheckPoint - by Cycle - 17.03.2018, 02:04
Re: Congelar Player em CheckPoint - by Marllun - 17.03.2018, 02:11
Re: Congelar Player em CheckPoint - by Cauezin - 17.03.2018, 02:18
Re: Congelar Player em CheckPoint - by Marllun - 17.03.2018, 02:29
Re: Congelar Player em CheckPoint - by Marllun - 17.03.2018, 03:19
Re: Congelar Player em CheckPoint - by Cauezin - 17.03.2018, 03:24
Re: Congelar Player em CheckPoint - by Cauezin - 17.03.2018, 03:26
Re: Congelar Player em CheckPoint - by Marllun - 17.03.2018, 03:26

Forum Jump:


Users browsing this thread: 2 Guest(s)