SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 17/05/2018, 12:06 AM   #1
igor97m
Huge Clucker
 
Join Date: Sep 2013
Posts: 282
Reputation: 4
Default Radar nao pega velocidade

galera tem um sistema de radar no gm que uso ( play Slayers ) ele cria o radar tudo certinho só que quando passa nele acima da velocidade nao acontece nada alguem sabe me dizer o que pode ser?

codigo:
PHP Code:
static stock CreateRadars()
{
    new 
objj;

    
objj CreateDynamicObject(18880722.32, -1764.6413.36,   0.000.0073.01);
    
GetDynamicObjectPos(objj,RadarInfo[0][R_X], RadarInfo[0][R_Y], RadarInfo[0][R_Z]);
    
RadarInfo[0][R_Velo] = 125;

    
objj CreateDynamicObject(18880397.18, -1709.217.60,   0.000.00264.28);
    
GetDynamicObjectPos(objj,RadarInfo[1][R_X], RadarInfo[1][R_Y], RadarInfo[1][R_Z]);
    
RadarInfo[1][R_Velo] = 125;

    
objj CreateDynamicObject(188801193.89, -1719.6512.43,   0.000.0092.51);
    
GetDynamicObjectPos(objj,RadarInfo[2][R_X], RadarInfo[2][R_Y], RadarInfo[2][R_Z]);
    
RadarInfo[2][R_Velo] = 85;

    
objj CreateDynamicObject(188801291.07, -1700.1712.53,   0.000.000.00);
    
GetDynamicObjectPos(objj,RadarInfo[3][R_X], RadarInfo[3][R_Y], RadarInfo[3][R_Z]);
    
RadarInfo[3][R_Velo] = 85;

    
objj CreateDynamicObject(188801349.91, -1420.3512.53,   0.000.000.00);
    
GetDynamicObjectPos(objj,RadarInfo[4][R_X], RadarInfo[4][R_Y], RadarInfo[4][R_Z]);
    
RadarInfo[4][R_Velo] = 125;

    
objj CreateDynamicObject(188801335.20, -1160.3322.86,   0.000.000.00);
    
GetDynamicObjectPos(objj,RadarInfo[5][R_X], RadarInfo[5][R_Y], RadarInfo[5][R_Z]);
    
RadarInfo[5][R_Velo] = 110;

    
objj CreateDynamicObject(188801430.89, -1040.9822.81,   0.000.0090.08);
    
GetDynamicObjectPos(objj,RadarInfo[6][R_X], RadarInfo[6][R_Y], RadarInfo[6][R_Z]);
    
RadarInfo[6][R_Velo] = 85;

    
objj CreateDynamicObject(188801144.74, -1046.5830.90,   0.000.0087.89);
    
GetDynamicObjectPos(objj,RadarInfo[7][R_X], RadarInfo[7][R_Y], RadarInfo[7][R_Z]);
    
RadarInfo[7][R_Velo] = 120;

    
objj CreateDynamicObject(188801037.81, -946.4341.74,   0.000.00279.84);
    
GetDynamicObjectPos(objj,RadarInfo[8][R_X], RadarInfo[8][R_Y], RadarInfo[8][R_Z]);
    
RadarInfo[8][R_Velo] = 135;

    
objj CreateDynamicObject(188801244.50, -946.6641.50,   0.000.00104.49);
    
GetDynamicObjectPos(objj,RadarInfo[9][R_X], RadarInfo[9][R_Y], RadarInfo[9][R_Z]);
    
RadarInfo[9][R_Velo] = 135;

    
objj CreateDynamicObject(188801857.87, -1358.7312.54,   0.000.000.00);
    
GetDynamicObjectPos(objj,RadarInfo[10][R_X], RadarInfo[10][R_Y], RadarInfo[10][R_Z]);
    
RadarInfo[10][R_Velo] = 115;

    
objj CreateDynamicObject(188801814.76, -1629.0212.54,   0.000.000.00);
    
GetDynamicObjectPos(objj,RadarInfo[11][R_X], RadarInfo[11][R_Y], RadarInfo[11][R_Z]);
    
RadarInfo[11][R_Velo] = 110;

    
objj CreateDynamicObject(188801740.10, -1725.7812.53,   0.000.00273.33);
    
GetDynamicObjectPos(objj,RadarInfo[12][R_X], RadarInfo[12][R_Y], RadarInfo[12][R_Z]);
    
RadarInfo[12][R_Velo] = 105;

    
objj CreateDynamicObject(188801548.65, -1725.1512.53,   0.000.00273.16);
    
GetDynamicObjectPos(objj,RadarInfo[13][R_X], RadarInfo[13][R_Y], RadarInfo[13][R_Z]);
    
RadarInfo[13][R_Velo] = 95;

    
objj CreateDynamicObject(188801407.31, -1725.0112.53,   0.000.00268.40);
    
GetDynamicObjectPos(objj,RadarInfo[14][R_X], RadarInfo[14][R_Y], RadarInfo[14][R_Z]);
    
RadarInfo[14][R_Velo] = 95;

    
objj CreateDynamicObject(18880,0,0,0,0.000.00,00);// desativado
    
GetDynamicObjectPos(objj,RadarInfo[15][R_X], RadarInfo[15][R_Y], RadarInfo[15][R_Z]);
    
RadarInfo[15][R_Velo] = 999;

    
objj CreateDynamicObject(188801515.70, -1878.9612.54,   0.000.0092.06);
    
GetDynamicObjectPos(objj,RadarInfo[16][R_X], RadarInfo[16][R_Y], RadarInfo[16][R_Z]);
    
RadarInfo[16][R_Velo] = 110;

    
objj CreateDynamicObject(188801949.62, -1939.6812.53,   0.000.0088.77);
    
GetDynamicObjectPos(objj,RadarInfo[17][R_X], RadarInfo[17][R_Y], RadarInfo[17][R_Z]);
    
RadarInfo[17][R_Velo] = 105;

    
objj CreateDynamicObject(188802402.13, -1739.4812.53,   0.000.0090.45);
    
GetDynamicObjectPos(objj,RadarInfo[18][R_X], RadarInfo[18][R_Y], RadarInfo[18][R_Z]);
    
RadarInfo[18][R_Velo] = 125;

    
objj CreateDynamicObject(188802329.64, -1667.0012.78,   0.000.0092.67);
    
GetDynamicObjectPos(objj,RadarInfo[19][R_X], RadarInfo[19][R_Y], RadarInfo[19][R_Z]);
    
RadarInfo[19][R_Velo] = 110;

    
objj CreateDynamicObject(188802336.11, -1550.7222.99,   0.000.000.00);
    
GetDynamicObjectPos(objj,RadarInfo[20][R_X], RadarInfo[20][R_Y], RadarInfo[20][R_Z]);
    
RadarInfo[20][R_Velo] = 125;

    
objj CreateDynamicObject(188802256.51, -1293.5522.96,   0.000.00266.25);
    
GetDynamicObjectPos(objj,RadarInfo[21][R_X], RadarInfo[21][R_Y], RadarInfo[21][R_Z]);
    
RadarInfo[21][R_Velo] = 105;

    
objj CreateDynamicObject(188802174.51, -1286.2622.97,   0.000.000.00);
    
GetDynamicObjectPos(objj,RadarInfo[22][R_X], RadarInfo[22][R_Y], RadarInfo[22][R_Z]);
    
RadarInfo[22][R_Velo] = 105;

    
objj CreateDynamicObject(188802079.20, -1251.3222.96,   0.000.000.00);
    
GetDynamicObjectPos(objj,RadarInfo[23][R_X], RadarInfo[23][R_Y], RadarInfo[23][R_Z]);
    
RadarInfo[23][R_Velo] = 110;

    
objj CreateDynamicObject(188802105.10, -1589.6424.90,   0.000.000.00);
    
GetDynamicObjectPos(objj,RadarInfo[24][R_X], RadarInfo[24][R_Y], RadarInfo[24][R_Z]);
    
RadarInfo[24][R_Velo] = 130;

    
objj CreateDynamicObject(188802075.95, -1759.6012.54,   0.000.0088.92);
    
GetDynamicObjectPos(objj,RadarInfo[25][R_X], RadarInfo[25][R_Y], RadarInfo[25][R_Z]);
    
RadarInfo[25][R_Velo] = 110;

    
objj CreateDynamicObject(188802184.19, -1631.8114.37,   0.000.00252.22);
    
GetDynamicObjectPos(objj,RadarInfo[26][R_X], RadarInfo[26][R_Y], RadarInfo[26][R_Z]);
    
RadarInfo[26][R_Velo] = 125;

    
objj CreateDynamicObject(188801867.53, -1453.7212.55,   0.000.00271.18);
    
GetDynamicObjectPos(objj,RadarInfo[27][R_X], RadarInfo[27][R_Y], RadarInfo[27][R_Z]);
    
RadarInfo[27][R_Velo] = 95;

    
objj CreateDynamicObject(188801620.69, -1433.7012.54,   0.000.00270.41);
    
GetDynamicObjectPos(objj,RadarInfo[28][R_X], RadarInfo[28][R_Y], RadarInfo[28][R_Z]);
    
RadarInfo[28][R_Velo] = 110;

    
objj CreateDynamicObject(188801592.55, -1310.4116.45,   0.000.0089.19);
    
GetDynamicObjectPos(objj,RadarInfo29 ][R_X], RadarInfo29 ][R_Y], RadarInfo29 ][R_Z]);
    
RadarInfo29 ][R_Velo] = 105;

    
objj CreateDynamicObject(188801722.38, -1314.8812.54,   0.000.000.00);
    
GetDynamicObjectPos(objj,RadarInfo[30][R_X], RadarInfo[30][R_Y], RadarInfo[30][R_Z]);
    
RadarInfo[30][R_Velo] = 105;

    
objj CreateDynamicObject(188801650.27, -1153.6623.02,   0.000.0088.55);
    
GetDynamicObjectPos(objj,RadarInfo[31][R_X], RadarInfo[31][R_Y], RadarInfo[31][R_Z]);
    
RadarInfo[31][R_Velo] = 125;

    
objj CreateDynamicObject(188802163.80, -1125.2324.58,   0.000.0082.21);
    
GetDynamicObjectPos(objj,RadarInfo[32][R_X], RadarInfo[32][R_Y], RadarInfo[32][R_Z]);
    
RadarInfo[32][R_Velo] = 110;

    
objj CreateDynamicObject(188802316.89, -1161.7225.96,   0.000.0084.76);
    
GetDynamicObjectPos(objj,RadarInfo[33][R_X], RadarInfo[33][R_Y], RadarInfo[33][R_Z]);
    
RadarInfo[33][R_Velo] = 95;

    
objj CreateDynamicObject(188802831.94, -1158.4623.95,   0.000.000.00);
    
GetDynamicObjectPos(objj,RadarInfo[34][R_X], RadarInfo[34][R_Y], RadarInfo[34][R_Z]);
    
RadarInfo[34][R_Velo] = 130;

    
objj CreateDynamicObject(188802864.07, -1499.869.93,   0.000.00351.20);
    
GetDynamicObjectPos(objj,RadarInfo[35][R_X], RadarInfo[35][R_Y], RadarInfo[35][R_Z]);
    
RadarInfo[35][R_Velo] = 140;

    
objj CreateDynamicObject(188801682.07, -1716.7312.54,   0.000.00359.68);
    
GetDynamicObjectPos(objj,RadarInfo[36][R_X], RadarInfo[36][R_Y], RadarInfo[36][R_Z]);
    
RadarInfo[36][R_Velo] = 105;

    
objj CreateDynamicObject(188801623.75, -1585.8512.52,   0.000.00267.93);
    
GetDynamicObjectPos(objj,RadarInfo[37][R_X], RadarInfo[37][R_Y], RadarInfo[37][R_Z]);
    
RadarInfo[37][R_Velo] = 105;

    
objj CreateDynamicObject(188801408.82, -1599.3212.53,   0.000.0087.51);
    
GetDynamicObjectPos(objj,RadarInfo[38][R_X], RadarInfo[38][R_Y], RadarInfo[38][R_Z]);
    
RadarInfo[38][R_Velo] = 95;

    
objj CreateDynamicObject(188801133.90, -1579.6512.48,   0.000.0094.71);
    
GetDynamicObjectPos(objj,RadarInfo[39][R_X], RadarInfo[39][R_Y], RadarInfo[39][R_Z]);
    
RadarInfo[39][R_Velo] = 110;

    
objj CreateDynamicObject(18880924.68, -1505.5412.52,   0.000.000.00);
    
GetDynamicObjectPos(objj,RadarInfo[40][R_X], RadarInfo[40][R_Y], RadarInfo[40][R_Z]);
    
RadarInfo[40][R_Velo] = 125;

    
objj CreateDynamicObject(18880810.61, -1312.8212.54,   0.000.00265.53);
    
GetDynamicObjectPos(objj,RadarInfo[41][R_X], RadarInfo[41][R_Y], RadarInfo[41][R_Z]);
    
RadarInfo[41][R_Velo] = 110;

    
objj CreateDynamicObject(18880789.72, -1378.9312.63,   0.000.000.00);
    
GetDynamicObjectPos(objj,RadarInfo[42][R_X], RadarInfo[42][R_Y], RadarInfo[42][R_Z]);
    
RadarInfo[42][R_Velo] = 140;

    
objj CreateDynamicObject(18880649.03, -1326.9012.49,   0.000.0092.10);
    
GetDynamicObjectPos(objj,RadarInfo[43][R_X], RadarInfo[43][R_Y], RadarInfo[43][R_Z]);
    
RadarInfo[43][R_Velo] = 105;

    
objj CreateDynamicObject(18880614.64, -1413.4212.55,   0.000.0098.93);
    
GetDynamicObjectPos(objj,RadarInfo[44][R_X], RadarInfo[44][R_Y], RadarInfo[44][R_Z]);
    
RadarInfo[44][R_Velo] = 155;

    
objj CreateDynamicObject(18880736.96, -1594.2613.38,   0.000.0094.17);
    
GetDynamicObjectPos(objj,RadarInfo[45][R_X], RadarInfo[45][R_Y], RadarInfo[45][R_Z]);
    
RadarInfo[45][R_Velo] = 110;

    for(new 
045i++)
    {
        
RadarInfo[i][TextRadar] = Create3DTextLabel("(( RADAR ))",0xFFFF00F6,RadarInfo[i][R_X], RadarInfo[i][R_Y], RadarInfo[i][R_Z]+5.0,120.0,0);
    }
}

BPS::UpdateRadar()
{
    new 
gstring[256];
    foreach(
Playeri)
    {
        if(
GetPlayerState(i) == PLAYER_STATE_DRIVER && !OnDuty[i] && GetVehicleModel(GetPlayerVehicleID(i)) != 510)
        {
            for(new 
ii 0ii 45ii++)
            {
                if(
IsPlayerInRangeOfPoint(i40.0RadarInfo[ii][R_X],RadarInfo[ii][R_Y],RadarInfo[ii][R_Z]))
                {
                    if(
GetPlayerVehicleSpeed(i) > RadarInfo[ii][R_Velo])
                    {
                        
PlayerPlaySound(i11320.00.00.0);
                        
format(gstring127"((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, -1gstring);
                        
PlayerInfo[i][pMultas] += 95;
                    }
                }
            }
        }
    }
     for(new 
uu 0uu 45uu++)
      {
        if(
mostrarv)
        {
            
format(gstringsizeof gstring"(( RADAR ))\nMáxima velocidade: %d km/h"RadarInfo[uu][R_Velo]);
            
Update3DTextLabelText(RadarInfo[uu][TextRadar],0xFFFF00F6gstring);
            
mostrarv false;
        }
        else
        {
            
Update3DTextLabelText(RadarInfo[uu][TextRadar],0xFFFF00F6"(( RADAR ))");
            
mostrarv true;
        }
    }
    
//MudarNomeServer();
    
return 0;

essa parte mesmo do
PHP Code:
 Maxima velocidade: %d km/
nem aparece la no radar
igor97m is offline   Reply With Quote
Old 17/05/2018, 02:22 PM   #2
MtPlayerZ
Big Clucker
 
Join Date: Oct 2016
Posts: 182
Reputation: 0
Default Re: Radar nao pega velocidade

Tenho esse sistema funcionando em uma GM RPG, assim que chegar em casa te passo a linha de codigo.
A respeito do "Maxima Velocidade", recomendo colocar um TextLabel fixo junto com o objeto radar para o texto ficar aparecendo para qualquer um que chegue perto do radar, se é isso que vc quer.
MtPlayerZ is offline   Reply With Quote
Old 17/05/2018, 11:20 PM   #3
igor97m
Huge Clucker
 
Join Date: Sep 2013
Posts: 282
Reputation: 4
Default Re: Radar nao pega velocidade

Quote:
Originally Posted by MtPlayerZ View Post
Tenho esse sistema funcionando em uma GM RPG, assim que chegar em casa te passo a linha de codigo.
A respeito do "Maxima Velocidade", recomendo colocar um TextLabel fixo junto com o objeto radar para o texto ficar aparecendo para qualquer um que chegue perto do radar, se é isso que vc quer.
ok quando puder manda ai para mim obrigado
igor97m is offline   Reply With Quote
Old 21/05/2018, 03:57 AM   #4
axtlon
Little Clucker
 
Join Date: Dec 2015
Posts: 48
Reputation: 0
Default Re: Radar nao pega velocidade

Me procure via whatsapp 038992111245
axtlon is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] Criador de radar de velocidade Living Lançamentos/Releases 21 17/01/2017 08:51 PM
[Ajuda] Radar de velocidade AnjooGangz Português/Portuguese 4 18/10/2016 12:58 AM
[Ajuda] Velocidade e Radar DownGrade Português/Portuguese 2 26/01/2014 05:00 PM
[Pedido] Radar de limite de velocidade Lucas-Fc Português/Portuguese 7 08/09/2012 10:42 PM
[Tutorial] Radar de velocidade [Detector/Bloqueador] blackwave Lançamentos/Releases 11 02/12/2010 11:45 AM


All times are GMT. The time now is 04:15 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.