[Ajuda] vбrios checkpoint's
#5

Tomare que intenda tentei fazer um mini tuto

PHP код:
#include < a_samp  >        // Includes a_samp
#include < cpstream  >      // Include dos Checkpoints

new Check;                         // Definiзгo do checkpoint
new TimerCongelado[MAX_PLAYERS];   // Timer

public OnGameModeInit()
{
    
Check CPS_AddCheckpoint(CordXCordXCordXTamanhoDoCpDistanciaDaVisualizaзгo);    // Como Adcionar checkpoint
    
return 1;
}

public 
OnPlayerEnterCheckpoint(playerid)
{
    new 
checknome CPS_GetPlayerCheckpoint(playerid);       // Para ver em qual CP vocк estб
    
if(checknome == Check)      // Caso ele estiver no Check
    
{
        
TogglePlayerControllable(playerid0);                                              // Congelar
        
TimerCongelado[playerid] = SetTimerEx("Descongelar"100001"u"playerid);      // Funзгo
        
return 1;
    }
    return 
1;
}

forward Descongelar(playerid);
public 
Descongelar(playerid)
{
    
KillTimer(TimerCongelado[playerid]);                // Para Parar o Timer
    
TogglePlayerControllable(playerid1);              // Deescongelar
    
SendClienMessage(playerid, -1"Descongelado");     // Msg para ver se funfou
    
return 1;

Reply


Messages In This Thread
vбrios checkpoint's - by Saidmrn - 02.11.2012, 17:42
Re: vбrios checkpoint's - by MatheusAlcapone - 02.11.2012, 17:58
Re: vбrios checkpoint's - by Saidmrn - 02.11.2012, 18:00
Re: vбrios checkpoint's - by MatheusAlcapone - 02.11.2012, 18:08
Re: vбrios checkpoint's - by Maklister - 02.11.2012, 18:11
Re: vбrios checkpoint's - by Bruno Bastos - 02.11.2012, 21:14
Re: vбrios checkpoint's - by Zona_Sky - 02.11.2012, 21:53
Re: vбrios checkpoint's - by Bruno Bastos - 02.11.2012, 22:04
Re: vбrios checkpoint's - by Maklister - 02.11.2012, 22:30
Re: vбrios checkpoint's - by Bruno Bastos - 02.11.2012, 22:35

Forum Jump:


Users browsing this thread: 1 Guest(s)