Help with fines script
#5

maybe you can use this? XD dont know if this is what you mean
pawn Код:
SetTimer("10kph", 500, 1);

forward 10kph();
public 10kph()
{
GivePlayerMoney(playerid, -250);
return 1;
}
i dont know if the time of timer is right but you could make something like this.

EDIT: you could also use this to get the speed of the player:
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);
}
Reply


Messages In This Thread
Help with fines script - by thimo - 01.03.2012, 19:58
Re: Help with fines script - by brett7 - 01.03.2012, 20:10
Re: Help with fines script - by thimo - 01.03.2012, 20:32
Re: Help with fines script - by thimo - 02.03.2012, 08:02
Re: Help with fines script - by niels44 - 02.03.2012, 08:12
Re: Help with fines script - by thimo - 02.03.2012, 09:16

Forum Jump:


Users browsing this thread: 1 Guest(s)