[AJUDA] Ligar Timer
#4

Tente assim entгo:
pawn Код:
new bool:Teste[MAX_PLAYERS];
testtimer(playerid);

//================== COMANDO ==================//
        if(strcmp("/teste", cmdtext, true, 10) == 0)
        {
                if(IsPlayerConnected(playerid))
                {
                        new carid = GetPlayerVehicleID(playerid);
                        if(Testedrive(carid))
                        {
                            Teste[playerid] = true;
                            SetTimerEx("testtimer", 120*1000, false, "i", playerid);
                            PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                            TogglePlayerControllable(playerid, 1);
                            GameTextForPlayer(playerid, "~w~O Teste Drive Em ~b~120 SEG~n~ ~w~Acaba, Bom Proveito", 5000, 3);

                        }
                }
                return 1;
        }

//=================== PUBLIC ====================//
public testtimer(playerid)
{
//    new str[256];
//    format(str, 256," ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ tempo: ~w~%d", TimeTest[i]);
//    GameTextForPlayer(playerid, str, 2000,6);
    new veiculo = GetPlayerVehicleID(playerid);
    Teste[playerid] = false;
    TakingLesson[playerid] = 0;
    SendClientMessage(playerid, COLOR_OOC, "Tempo Acabado, Volte Sempre");
    SetVehicleToRespawn(veiculo);
    SetPlayerPos(playerid,-2048.0999, -84.5000, 35.0000);
    GameTextForPlayer(playerid, "~y~Seu Teste Driver Acabou~n~~r~Se Quiser Compra o Carro /compra [CarroNome/ID]", 5000, 3);
    return 1;
}
Reply


Messages In This Thread
[AJUDA] Ligar Timer - by atsbs - 26.11.2011, 01:59
Re: [AJUDA] Ligar Timer - by Lуs - 26.11.2011, 03:09
Re: [AJUDA] Ligar Timer - by atsbs - 26.11.2011, 03:21
Re: [AJUDA] Ligar Timer - by Lуs - 26.11.2011, 04:07
Re: [AJUDA] Ligar Timer - by atsbs - 26.11.2011, 04:35
Re: [AJUDA] Ligar Timer - by atsbs - 26.11.2011, 14:58

Forum Jump:


Users browsing this thread: 1 Guest(s)