12.05.2018, 01:54
Tente desta maneira:
PHP Code:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
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...", 3000, 3);
TogglePlayerControllable(playerid,0);
SetTimerEx("Linhas",3000, false,"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;
}