[Ajuda] Checkpoint
#6

Tente desta maneira:
PHP Code:
public OnPlayerEnterDynamicCP(playeridcheckpointid)
{
    if(
checkpointid == BusCP[0])
    {
        
DestroyDynamicCP(BusCP[0]);
        
BusCP[1] = CreateDynamicCP(1547.3561,-2284.1187,13.4841,3.0,-1,-1,playerid,1000);
        
GameTextForPlayer(playerid"Aguarde passageiros..."30003);
        
TogglePlayerControllable(playerid,0);
        
SetTimerEx("Linhas",3000false,"i",playerid);
    }
    else if(
checkpointid == BusCP[1])
    {
        
DestroyDynamicCP(BusCP[1]);
        
BusCP[2] = CreateDynamicCP(1400.5472,-2284.7380,13.4667,3.0,-1,-1,playerid,1000);
    }
    else if(
checkpointid == BusCP[2])
    {
        
DestroyDynamicCP(BusCP[2]);
        
BusCP[3] = CreateDynamicCP(1368.4954,-2173.5496,13.4840,3.0,-1,-1,playerid,1000);
    }
    else
        return 
0;
        
    return 
1;

Reply


Messages In This Thread
Checkpoint - by iWiNeR - 11.05.2018, 23:10
Re: Checkpoint - by Ermanhaut - 12.05.2018, 00:09
Re: Checkpoint - by iWiNeR - 12.05.2018, 00:24
Re: Checkpoint - by Ermanhaut - 12.05.2018, 00:55
Re: Checkpoint - by iWiNeR - 12.05.2018, 01:48
Re: Checkpoint - by FerrariL - 12.05.2018, 01:54
Re: Checkpoint - by iWiNeR - 12.05.2018, 02:10
Re: Checkpoint - by FerrariL - 12.05.2018, 02:22
Re: Checkpoint - by iWiNeR - 12.05.2018, 02:27
Re: Checkpoint - by Minerva - 12.05.2018, 02:34
Re: Checkpoint - by iWiNeR - 12.05.2018, 02:47
Re: Checkpoint - by Ermanhaut - 12.05.2018, 13:58
Re: Checkpoint - by iWiNeR - 12.05.2018, 14:30
Re: Checkpoint - by iWiNeR - 12.05.2018, 17:36
Re: Checkpoint - by Ermanhaut - 12.05.2018, 17:46
Re: Checkpoint - by iWiNeR - 12.05.2018, 19:08
Re: Checkpoint - by iWiNeR - 13.05.2018, 23:08

Forum Jump:


Users browsing this thread: 1 Guest(s)