[Ajuda] Radar
#1

Preciso de ajuda para arrumar esse sistema de radar, quero remover para quando passar de Bike, Aviгo ou Helicуptero nгo aparece a mensagem do radar

PHP код:
public Radar(playerid)
{
if(
IsPlayerInAnyVehicle(playerid)) {
new 
Float:XFloat:YFloat:ZFloat:Speed;
GetVehicleVelocity(GetPlayerVehicleID(playerid), XYZ);
Speed floatmul(floatsqroot(floatadd(floatadd(floatpower(X2), floatpower(Y2)),  floatpower(Z2))), 100.0);
new 
Float:vcarro;
GetVehicleHealth(GetPlayerVehicleID(playerid), vcarro);
new 
velocid;
velocid floatround(Speedfloatround_floor);
if(
IsPlayerInCircle(playerid1698.01270, -736.6195120) ||  IsPlayerInCircle(playerid1348.89185, -1437.88037,20) ||  IsPlayerInCircle(playerid1207.30078, -1706.53113,20) || IsPlayerInCircle(playerid,-121.80331, -1204.59814,20) || IsPlayerInCircle(playerid,-1654.159552730.46631,20) || IsPlayerInCircle(playerid1217.358761689.2999320) || IsPlayerInCircle(playerid877.148322617.93750,20) || IsPlayerInCircle(playerid, -2681.440431697.19482,20)
|| 
IsPlayerInCircle(playerid,521.51068, -1722.01721,20) || IsPlayerInCircle(playerid,884.85620, -1389.45581,20) || IsPlayerInCircle(playerid1698.01270, -736.6195120) ||  IsPlayerInCircle(playerid356.64810, -1376.79541,20) ||  IsPlayerInCircle(playerid, -152.74860, -1482.63660,20) ||  IsPlayerInCircle(playerid, -1093.93665, -2857.70215,20) || IsPlayerInCircle(playerid, -2887.01465, -1030.04370,20) || IsPlayerInCircle(playerid, -845.09442, -1045.57422,20)
|| 
IsPlayerInCircle(playerid,-1817.13293206.84985,20) || IsPlayerInCircle(playerid,-379.077332708.18726,20) || IsPlayerInCircle(playerid,2137.044682019.77856,20) || IsPlayerInCircle(playerid,370.2837,1497.6050,20) || IsPlayerInCircle(playerid,-628.94098651.85773,20) || IsPlayerInCircle(playerid,-167.75929367.75211,20) || IsPlayerInCircle(playerid,-708.56897, -1471.71875,20) || IsPlayerInCircle(playerid,520.20801473.19461,20) || IsPlayerInCircle(playerid,-1663.99243, -1636.30969,20)){
if(
velocid 95){
if(
aradar[playerid] == 0){
SendClientMessage(playerid,Vermelho,"==========================================> Radar <==========================================");
TextDrawShowForPlayer(playeridFlash);
PlayerPlaySound(playerid,1132,0.0,0.0,0.0);
format(gstring128,"| RADAR | Velocidade Registrada: %iKm/h",velocid);
SendClientMessage(playerid,Amarelo,gstring);
SendClientMessage(playerid,Branco,"| INFO | Vocк foi pego(a) no radar,por estar acima do limite permitido(85KM/h)");
SendClientMessage(playerid,Branco,"| INFO | Portanto,vocк foi multado em {1CEB00}$500, {FFFFFF}Para pagar vб atй o Detran de LV!");
format(gstring128,"| INFO | No total,vocк  tem %d Multas",dini_Int(filena(playerid),"Multas")+1);
SendClientMessage(playerid,Branco,gstring);
SetTimerEx("flex"1000false"i"playerid);
SendClientMessage(playerid,Branco,"| INFO | Ao completar {FF0000}6 multas {FFFFFF}vocк perdera sua habilitaзгo terrestre e pagarб {1CEB00}$6.000!");
dini_IntSet(filena(playerid), "Multas",dini_Int(filena(playerid),"Multas")+1);
if(
dini_Int(filena(playerid),"Multas") >= 6){
PlayerInfo[playerid][pHabTerrestre] = 0;
dini_IntSet(filena(playerid),"SaldoBancario",dini_Int(filena(playerid),"SaldoBancario")-6000);
dini_IntSet(filena(playerid),"Multas",0);
SendClientMessage(playerid,Branco,"| INFO | Vocк completou {FF0000}6 multas {FFFFFF}fsem pagar, perdeu sua habilitaзгo e pagou {1CEB00}$6.000!");
}
SendClientMessage(playerid,Vermelho,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~> Radar <~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
aradar[playerid] = 1;
}
} else {
if(
aradar[playerid] == 0){
GameTextForPlayer(playerid"~r~RADAR"30003);
format(gstring256,"| RADAR | Velocidade Registrada: %iKm/h",velocid);
SendClientMessage(playerid,Amarelo,gstring);
aradar[playerid] = 1;
}
}
} else 
aradar[playerid] = 0;
}

Reply


Messages In This Thread
Radar - by merloch - 23.04.2017, 00:21
Re: Radar - by Jauro - 23.04.2017, 01:04
Re: Radar - by merloch - 23.04.2017, 19:03

Forum Jump:


Users browsing this thread: 1 Guest(s)