03.08.2018, 00:31
Boa noite pessoas do forum, estou com um problema em meu code e nгo consigo identificar, eis aqui o code..
o problema й o seguinte, quando o player entra no checkpoint CarregarSprunk[0][playerid] ele congela o player normal, mas nгo seta o outro checkpoint ...
Код:
public OnPlayerEnterCheckpoint(playerid) { if(CarregarSprunk[0][playerid] == 1) { CarregarSprunk[0][playerid] = 0; if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 498) { TogglePlayerControllable(playerid, false); RandomSprunks = random(3); switch(RandomSprunks) { case 0: CarregarSprunk[1][playerid] = SetPlayerCheckpoint(playerid, 1659.506958, 1721.457031, 10.828111, 1.0); case 1: CarregarSprunk[2][playerid] = SetPlayerCheckpoint(playerid, -1455.217651, 2593.229248, 55.835937, 1.0); case 2: CarregarSprunk[3][playerid] = SetPlayerCheckpoint(playerid, -14.815089, 1176.700927, 19.563381, 1.0); } } } DisablePlayerCheckpoint(playerid); return true; }