SA-MP Forums Archive
is possible? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: is possible? (/showthread.php?tid=168317)



is possible? - Francesco_Totti - 15.08.2010

i have a speedometer and i want to edit this filescript when a player reaches 80 km/h all cops recive a message with name a player and his speed?


Re: is possible? - FireCat - 15.08.2010

well as i dont know to script of ur speedometer i cant help O.o


Re: is possible? - Kitten - 15.08.2010

Quote:

well as i dont know to script of ur speedometer i cant help O.o

hes actually trying to get hes script


Re: is possible? - Francesco_Totti - 15.08.2010

thanks.i will try


Re: is possible? - Francesco_Totti - 15.08.2010

dont work help me pls


Re: is possible? - Francesco_Totti - 15.08.2010

anyone


Re: is possible? - Vince - 15.08.2010

Why don't you show use some code? Posts like 'Don't work' are not very informative.
WHAT doesn't work? Do you have errors? How did you code it?


Re: is possible? - Mike Garber - 15.08.2010

Quote:
Originally Posted by Vince
Посмотреть сообщение
Why don't you show use some code? Posts like 'Don't work' are not very informative.
WHAT doesn't work? Do you have errors? How did you code it?
He didn't code nothing, he tried
pawn Код:
stock GetPlayerSpeed(playerid,bool:kmh)
{
  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);
}
and thought that would be his answer...


Re: is possible? - Guest3598475934857938411 - 15.08.2010

[quate]well as i dont know to script of ur speedometer i cant help O.o [/quate]
You just won't fool him


Re: is possible? - Francesco_Totti - 16.08.2010

so..this is the script http://pastebin.com/YkRLyhV9
i want to edit this script...when a player reach 100 km/h all cops recive a message with speed of player