new JGCONTADOR1[MAX_PLAYERID];new JGCONTADOR2[MAX_PLAYERID];new JGTEMPO[MAX_PLAYERID];CMD:ligarpoint(playerid){ JGTEMPO[playerid] = 0; LIGARPOINT(playerid); return 1;}forward LIGARPOINT(playerid);public LIGARPOINT(playerid){ JGTEMPO[playerid] = JGTEMPO[playerid] + 1; SetPlayerCheckpoint(playerid, 1982.6150, -220.6680, -0.2432, 3.0); JGCONTADOR1[playerid] = SetTimerEx("PISCANDO1", 3000, true, "d", playerid); return 1;}forward PISCANDO1(playerid);public PISCANDO1(playerid){ if(JGTEMPO[playerid] > 0){ JGTEMPO[playerid] = JGTEMPO[playerid] + 1; JGCONTADOR2[playerid] = SetTimerEx("PISCANDO2", 3000, true, "d", playerid); DisablePlayerCheckpoint(playerid); } return 1;}forward PISCANDO2(playerid);public PISCANDO2(playerid){ JGTEMPO[playerid] = JGTEMPO[playerid] + 1; if(JGTEMPO[playerid] > 0){ SetPlayerCheckpoint(playerid, 1982.6150, -220.6680, -0.2432, 3.0); } return 1;}public OnPlayerEnterCheckpoint(playerid){ if(JGTEMPO[playerid] > 0){ KillTimer(JGCONTADOR1[playerid]); KillTimer(JGCONTADOR2[playerid]); DisablePlayerCheckpoint(playerid); } return 1;}
(19/01/2023 12:12)xbruno1000x Escreveu: Pequeno que você diz é tipo esse da foto?
(19/01/2023 14:00)DESATIVADO Escreveu: isso
SetPlayerCheckpoint(playerid, 1982.6150, -220.6680, -0.2432, 1.0); //1.0 é o tamanho do checkpoint