15.03.2018, 11:42
Fiz algumas alteraзхes,veja se funciona...
PHP Code:
BNS::UpdateRadar(playerid)
{
new gstring[256];
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && !OnDuty[playerid] && GetVehicleModel(GetPlayerVehicleID(playerid)) != 510)
{
for(new i = 0; i < 45; i++)
{
if(IsPlayerInRangeOfPoint(playerid, 08.0, RadarInfo[i][R_X],RadarInfo[i][R_Y],RadarInfo[i][R_Z]))
{
if(GetPlayerVehicleSpeed(playerid) > RadarInfo[i][R_Velo])
{
PlayerPlaySound(playerid, 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(playerid, -1, gstring);
PlayerInfo[playerid][pMultas] += 95;
return true;
}
}
}
}
for(new uu = 0; uu < 45; uu++)
{
if(mostrarv)
{
format(gstring, sizeof gstring, "(( RADAR ))\nMбxima velocidade: %d km/h", RadarInfo[uu][R_Velo]);
Update3DTextLabelText(RadarInfo[uu][TextRadar],0xFFFF00F6, gstring);
mostrarv = false;
}
else
{
Update3DTextLabelText(RadarInfo[uu][TextRadar],0xFFFF00F6, "(( RADAR ))");
mostrarv = true;
}
}
return 0;
}