[Pedido] Habilitacao
#10

Mais ou menos assim

pawn Код:
new ContarHAB[MAX_PLAYERS];

forward playerHab(playerid);


public playerHab(playerid) {
    new String[128];
    if(GetVehicleVelocityEx(playerid) > 100) {
        ContarHAB[playerid] ++;
        format(String, 128, "[ AVISO ]: Vocк estб ultrapassando o limite de velocidade - %i", GetVehicleVelocityEx(playerid));
        SendClientMessage(playerid, -1, String);
    }
    if(ContarHAB[playerid] >= 3) {
        SendClientMessage(playerid, -1, "Vocк nгo conseguiu terminar o teste! Abraзos");
        ContarHAB[playerid] = 0;
    }
    return true;
}

SetTimerEx("playerHab", 1000, false, "i", playerid); // Coloca quando ele iniciar o teste
Reply


Messages In This Thread
Habilitacao - by Pablo_Mantega - 19.01.2014, 20:57
Re: Habilitacao - by DubleX - 19.01.2014, 21:01
Re: Habilitacao - by LeandroCQC - 19.01.2014, 21:05
Re: Habilitacao - by 22 - 19.01.2014, 21:07
Re: Habilitacao - by Pablo_Mantega - 19.01.2014, 21:09
Re: Habilitacao - by Pablo_Mantega - 19.01.2014, 21:13
Re: Habilitacao - by DubleX - 19.01.2014, 21:15
Re: Habilitacao - by Dolby - 19.01.2014, 21:19
Re: Habilitacao - by Pablo_Mantega - 19.01.2014, 21:23
Re: Habilitacao - by smiiir - 19.01.2014, 21:24

Forum Jump:


Users browsing this thread: 1 Guest(s)