19.01.2014, 21:24
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