[HELP] cops recive message if people drive to fast
#1

i wanna make a script that if players drive to fast then the cops receive a Message that people are driving to fast.
i wanna know if that is posible to make and how.
i know its something with the GetPlayerSpeed but i cannot work with it.
can someone help me ?
Reply
#2

GetVehicleVelocity?
Reply
#3

Or

pawn Код:
stock GetPlayerSpeed(playerid, bool:kmh) // by misco
{
  new Float:Vx,Float:Vy,Float:Vz,Float:rtn;
  if(IsPlayerInAnyVehicle(playerid)) GetVehicleVelocity(GetPlayerVehicleID(playerid),Vx,Vy,Vz); else GetPlayerVelocity(playerid,Vx,Vy,Vz);
  rtn = floatsqroot(floatabs(floatpower(Vx + Vy + Vz,2)));
  return kmh?floatround(rtn * 100 * 1.61):floatround(rtn * 100);
}
(Created By 'Misco')
Reply
#4

but how to make it that its showing to cops ?
Reply
#5

1. Use Miokie's GetPlayerSpeed to see what a players speed is
2. If its higher than X, loop through all players
3. if the player currently being looped is a cop, send a message
Reply
#6

ok thanks
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)