[Ajuda] Congelar Player em CheckPoint
#6

Quote:
Originally Posted by Marllun
Посмотреть сообщение
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

Indenta isso.:
PHP код:
public OnPlayerEnterCheckpoint(playerid)  

    if(
ccp[playerid] == 1)  
    { 
        
DisablePlayerCheckpoint(playerid);  
        
ccp[playerid] = 2;  
        
SetPlayerCheckpoint(playerid1150.4137, -1572.116812.84586.5);  
        
GameTextForPlayer(playerid"Carregando...!"50006), PlayerPlaySound(playerid11390.00.00.0);  
        
TogglePlayerControllable(playeridfalse); 
        
SetTimerEx("DescongelarP"1000false"d"playerid); 
        return 
true;  
    }  
    if(
ccp[playerid] == 2)  
    { 
        
DisablePlayerCheckpoint(playerid);  
        
ccp[playerid] = 0;  
        
GivePlayerMoney(playeridGetPlayerMoney(playerid) + random(5000) + 1000);  
        
GameTextForPlayer(playerid"Descarregando...!"50006), PlayerPlaySound(playerid11390.00.00.0);  
        
TogglePlayerControllable(playeridfalse); 
        
SetTimerEx("DescongelarP"1000false"d"playerid); 
        return 
true;  
    }
    return 
true;  
}   
forward DescongelarP(playerid); public DescongelarP(playerid)  
{  
    
TogglePlayerControllable(playeridtrue);      
    return 
true;  

Manda um abraзo pra o pessoal do discord, minha internet estб pйssima, retornarei em breve.
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: 3 Guest(s)