10.06.2015, 10:58
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(playerid, 50, 1470.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;
}