15.03.2018, 18:05
Mas como eu encaixo essa funзгo gettime no sistema?
new bool:PlayerDelayed[MAX_PLAYERS] = false;
forward RadaresDelayed(playerid);
public RadaresDelayed(playerid) {
PlayerDelayed[playerid] = false;
return 1;
}
BNS::UpdateRadar() {
new gstring[256];
foreach(Player, i) {
if(GetPlayerState(i) == PLAYER_STATE_DRIVER && !OnDuty[i] && GetVehicleModel(GetPlayerVehicleID(i)) != 510) {
for(new ii = 0; ii < 45; ii++) {
if(IsPlayerInRangeOfPoint(i, 08.0, RadarInfo[ii][R_X],RadarInfo[ii][R_Y],RadarInfo[ii][R_Z])) {
if(GetPlayerVehicleSpeed(i) > RadarInfo[ii][R_Velo]) {
if(PlayerDelayed[i] == true) return true;
PlayerPlaySound(i, 1132, 0.0, 0.0, 0.0);
format(gstring, 127, "((RADAR)): {B4B5B7}Vocк foi pego a {FFFFFF}%dkm/h {B4B5B7}na regiгo onde a velocidade mбxima й de {FFFFFF}%dkm/h", GetPlayerVehicleSpeed(i), RadarInfo[ii][R_Velo]);
SendClientMessage(i, -1, gstring);
PlayerInfo[i][pMultas] += 95;
PlayerDelayed[i] = true;
SetTimerEx("RadaresDelayed", 4000, false, "i", i);
return true;
}
}
}
}
}
for(new uu = 0; uu < 45; uu++) {
format(gstring, sizeof gstring, "(( RADAR ))\nMбxima velocidade: %d km/h", RadarInfo[uu][R_Velo]);
Update3DTextLabelText(RadarInfo[uu][TextRadar],0xFFFF00F6, (mostrarv = true ? gstring : "(( RADAR ))"));
mostrarv = (mostrarv == true ? false : true);
}
return 0;
}