SA-MP Forums Archive
Speed Camera - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Speed Camera (/showthread.php?tid=577257)



Speed Camera - keyvanik - 10.06.2015

Hi i want to make a speed camera for who has a high speed check and get ticket them i make this can you help me to fix it?


PHP код:
    if(!IsPlayerInRangeOfPoint(playerid501470.543090,-1024.549194,23.828125)
    new 
newcar GetPlayerVehicleID(playerid);
    if(
IsACopCar(newcar))
    {
    if(
OnSpeedc[playerid] == 0)
    {
    if(
EngineSTATE[newcar] == 0)
    {
            new 
speed;
            
speed strval(tmp);
    if(
speed == 100)
    {
    
SCM(playerid,COLOR_ALI,"Error: Use a MaxSpeed 100 KM/H");
    return 
1;
    }
    
SpeedTimer[playerid] = SetTimerEx("speedcheck",5000,1,"ii",playerid,speed);
    
SpeedTimerUsed[playerid] = true;
    }
    else
    }
    return 
1;
    } 



Re: Speed Camera - keyvanik - 10.06.2015

any body cant help me?