14.03.2018, 20:56
PHP Code:
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])
{
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]);
PlayerInfo[i][pMultas] += 95;
return true;
}
}
}
SendClientMessage(i, -1, gstring);
}
}
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;
}