[Ajuda] Radar
#8

Esta definido assim!

PHP код:
new Float:Radares[1][4] =
{
    {
1212.5142,-1719.8408,13.546919.1700}
}; 
PHP код:
forward Radar();
public 
Radar()
{
    for(new 
iGetPlayerPoolSize(); i++)
    {
        for(new 
rMAX_RADARr++)
        {
            
CheckRadar(iRadares[r][0], Radares[r][1], Radares[r][2], 7.060);
        }
    }
    return 
1;

PHP код:
stock CheckRadar(playeridFloat:rXFloat:rYFloat:rZFloat:rRadiusspeed)
{
    new 
SpeedRegistred GetVehicleSpeed(playerid), string[150], string2[150];
    
printf("O player %s passou no radar!"Pname(playerid));
    if(
IsPlayerInRangeOfPoint(playeridrRadiusrXrYrZ))
    {
        if(
GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
            if(
SpeedRegistred speed)
            {
                
format(stringsizeof(string), "{1E90FF}[ PB ]O radar registrou uma infraзгo de velocidade! Permitida: %d | Registrada: %d!"speedSpeedRegistred);
                
format(string2sizeof(string2), "{1E90FF}[ PB ]A multa foi automaticamente registrada e colocada em sua carteira! MULTA: %d!"SpeedRegistred*4);
                
GivePlayerMoney(playerid, -SpeedRegistred*4);
                
SendClientMessage(playerid, -1string);
                
SendClientMessage(playerid, -1string2);
            }
            else if(
SpeedRegistred <= speed )
            {
                
format(stringsizeof(string), "{1E90FF}[ PB ]O radar registrou a velocidade de %d | Permitida: %d!"SpeedRegistredspeed);
                
SendClientMessage(playerid, -1string);
            }
        }
    }
    return 
1;

a stock CheckRadar nгo e chamada!
Reply


Messages In This Thread
Radar - by vitinhosamp - 07.12.2018, 09:46
Re: Radar - by Felipealves - 07.12.2018, 10:25
Re: Radar - by vitinhosamp - 07.12.2018, 10:38
Re: Radar - by Felipealves - 07.12.2018, 10:54
Re: Radar - by vitinhosamp - 07.12.2018, 17:21
Re: Radar - by Felipealves - 07.12.2018, 17:46
Re: Radar - by ipsLuan - 07.12.2018, 17:49
Re: Radar - by vitinhosamp - 08.12.2018, 11:29
Re: Radar - by Felipealves - 08.12.2018, 12:14
Re: Radar - by vitinhosamp - 08.12.2018, 16:37

Forum Jump:


Users browsing this thread: 1 Guest(s)