[AJUDA] RADAR
#1

Galera Por Favor Aonde Esta o erro -' e urgente ;( Ganha +Rep




pawn Код:
public Radar(playerid){
new Float:X, Float:Y, Float:Z, Float:Speed;
GetVehicleVelocity(GetPlayerVehicleID(playerid), X, Y, Z);
Speed = floatmul(floatsqroot(floatadd(floatadd(floatpower(X, 2), floatpower(Y, 2)),  floatpower(Z, 2))), 100.0);
new velocid;
velocid = floatround(Speed, floatround_floor);
if(IsPlayerInCircle(playerid, 1209.5920,-1712.2078, 20) || IsPlayerInCircle(playerid, 1300.1948,-1543.8530, 20) || IsPlayerInCircle(playerid, -138.9767,-1238.2048, 20) ||/**/ IsPlayerInCircle(playerid, 1788.2158,819.5767, 20) ||/**/ IsPlayerInCircle(playerid, 433.4925,596.7650, 20)
||/**/ IsPlayerInCircle(playerid, -138.7257,477.3284, 20) ||/**/ IsPlayerInCircle(playerid, -1659.3097,563.5499, 20) ||/**/ IsPlayerInCircle(playerid, -1647.4869,553.3688, 20) ||/**/ IsPlayerInCircle(playerid, -2688.9597,1445.8730, 20) ||/**/ IsPlayerInCircle(playerid, -2673.3538,1445.4196, 20)
||/**/ IsPlayerInCircle(playerid, -2273.9414,2676.7244, 20) ||/**/ IsPlayerInCircle(playerid, -2274.0522,2639.5820, 20) ||/**/ IsPlayerInCircle(playerid, 1806.4297,820.2419, 20) ||/**/ IsPlayerInCircle(playerid, 1696.0487,-489.0305, 20) ||/**/ IsPlayerInCircle(playerid, 1709.9498,-486.3886, 20) ||/**/ IsPlayerInCircle(playerid, 1593.8607,-1453.6747, 20)
||/**/ IsPlayerInCircle(playerid, 1610.3528,-1454.7465, 20) ||/**/ IsPlayerInCircle(playerid, 1405.5986,-939.9647, 20) ||/**/ IsPlayerInCircle(playerid, 1315.4125,-1544.7103, 20) ||/**/ IsPlayerInCircle(playerid, -1220.0536,-778.5842, 20)){
new string2[256];
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER){
if(velocid > 105){
if(aradar[playerid] == 0){
SendClientMessage(playerid,verdel,"~> Radar <~");
format(string2, 256(string2),"[RADAR]Velocidade Registrada: %iKm/h",velocid);
SendClientMessage(playerid,0xF47A00AA,string2);
SendClientMessage(playerid,0xFFFFFFAA,"(INFO)Vocк foi pego(a) no radar,por estar acima do limite permitido(105 KM/h)");
SendClientMessage(playerid,0xFFFFFFAA,"(INFO)Portanto,vocк foi multado em R$500. Para pagar vб atй a DP!");
format(string2, 256(string2),"(INFO)No total,vocк foi pego(a) %d vez(es)...",dini_Int(filena(playerid),"Multas")+1);
SendClientMessage(playerid,0xFFFFFFAA,string2);
SendClientMessage(playerid,0xFFFFFFAA,"(INFO)Ao completar 6 multas vocк perdera sua habilitaзao terrestre e pagarб R$5.000!");
dini_IntSet(filena(playerid), "Multas",dini_Int(filena(playerid),"Multas")+1);
if(dini_Int(filena(playerid),"Multas") >= 6){
dini_IntSet(filena(playerid),"HabTerrestre",0);
dini_IntSet(filena(playerid),"SaldoBancario",dini_Int(filena(playerid),"SaldoBancario")-5000);
GivePlayerGrana(playerid, -5000);
dini_IntSet(filena(playerid),"Multas",0);
SendClientMessage(playerid,0xFFFFFFAA,"(INFO)Vocк completou 6 multas sem pagar, perdeu sua habilitaзгo e pagou R$5.000!");
}
SendClientMessage(playerid,verdel,"~> Radar <~");
aradar[playerid] = 1;
}
} else {
if(aradar[playerid] == 0){
format(string2, 256,"[RADAR]Velocidade Registrada: %iKm/h",velocid);
SendClientMessage(playerid,0xF47A00AA,string2);
aradar[playerid] = 1;
}
}
}
} else aradar[playerid] = 0;
}
Reply


Messages In This Thread
[AJUDA] RADAR - by Ryktardy - 13.02.2012, 18:47
Re: [AJUDA] RADAR - by Ryktardy - 13.02.2012, 19:16
Re: [AJUDA] RADAR - by [NC]BlackSky - 13.02.2012, 19:18
Re: [AJUDA] RADAR - by Ryktardy - 13.02.2012, 19:18
Re: [AJUDA] RADAR - by Hard` - 13.02.2012, 19:23
Re: [AJUDA] RADAR - by Ryktardy - 13.02.2012, 19:28
Re: [AJUDA] RADAR - by Hard` - 13.02.2012, 19:30
Re: [AJUDA] RADAR - by Ryktardy - 13.02.2012, 19:33
Re: [AJUDA] RADAR - by Hard` - 13.02.2012, 19:34
Re: [AJUDA] RADAR - by Ryktardy - 13.02.2012, 19:43

Forum Jump:


Users browsing this thread: 1 Guest(s)