Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new timerdesafio_inicio[MAX_PLAYERS];
- new timerdesafio_tempo[MAX_PLAYERS];
- command(desafio, playerid, params []) {
- if(sscanf(params, "i", playerold)) return SendClientMessage(playerid, -1, "erro, use /desafio [playerid]");
- SetPlayerPos(playerid, x, y, z);
- SetPlayerPos(playeridold, x, y, z);
- TogglePlayerControllable(playerid, false);
- TogglePlayerControllable(playeridold, false);
- timerdesafio_inicio[playerid] = SetTimerEx("TimerDesafio_Inicio", 1000, true, "ii", playerid, playerold);
- return true;
- }
- forward TimerDesafio_Inicio(playerid, playerold);
- public TimerDesafio_Inicio(playerid, playerold) {
- timerdesafio_tempo[playerid]++;
- GameTextForPlayer(playerid, timerdesafio_tempo[playerid], 998, 1);
- if(timerdesafio_tempo[playerid] == 5) {
- GameTextForPlayer(playerid, "GO GO GO", 998, 1);
- TogglePlayerControllable(playerid, true);
- TogglePlayerControllable(playeridold, true);
- return true;
- }
- else GameTextForPlayer(playerid, timerdesafio_tempo[playerid], 998, 1);
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement