SA-MP Forums Archive
[question]GetPlayerSpeed? SetPlayerSpeed? - 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: [question]GetPlayerSpeed? SetPlayerSpeed? (/showthread.php?tid=61514)



[question]GetPlayerSpeed? SetPlayerSpeed? - OmeRinG - 13.01.2009

there is any include for those functions?

GetPlayerSpeed
SetPlayerSpeed

if there is not can someone bild it for me.... im good but not pro....

sorry for my bad english im' from israel


Re: [question]GetPlayerSpeed? SetPlayerSpeed? - AiVAMAN - 13.01.2009

I dont think so...


Re: [question]GetPlayerSpeed? SetPlayerSpeed? - kaisersouse - 13.01.2009

getplayerspeed would be easy (check out R@fs speedo and modify from there). Setplayerspeed would involve a 50 - 100ms timer and it would look hokey and stupid as hell.

Short version: get can be made, set cannot


Re: [question]GetPlayerSpeed? SetPlayerSpeed? - hamptonin - 13.01.2009

Quote:
Originally Posted by Lt_Aivariux
I dont think so...
No/Yes

No: not possible to set the speed (only ped)
Yes: to download/create a speedo meter


Re: [question]GetPlayerSpeed? SetPlayerSpeed? - Serbish - 13.01.2009

Quote:
Originally Posted by Hamptonin
Quote:
Originally Posted by Lt_Aivariux
I dont think so...
No/Yes

No: not possible to set the speed (only ped)
Yes: to download/create a speedo meter
It has nothing to do with a "speedo-meter".


Re: [question]GetPlayerSpeed? SetPlayerSpeed? - hamptonin - 13.01.2009

Quote:
Originally Posted by -=[Serbish
=- ]
Quote:
Originally Posted by Hamptonin
Quote:
Originally Posted by Lt_Aivariux
I dont think so...
No/Yes

No: not possible to set the speed (only ped)
Yes: to download/create a speedo meter
It has nothing to do with a "speedo-meter".
Yes you can edit a speedo meter and create a function of it to get the speed


Re: [question]GetPlayerSpeed? SetPlayerSpeed? - kaisersouse - 13.01.2009

Getting someones speed has nothing to do with telling them how fast they're going? Interesting...

Quote:
Originally Posted by -=[Serbish
=- ]
Quote:
Originally Posted by Hamptonin
Quote:
Originally Posted by Lt_Aivariux
I dont think so...
No/Yes

No: not possible to set the speed (only ped)
Yes: to download/create a speedo meter
It has nothing to do with a "speedo-meter".



Re: [question]GetPlayerSpeed? SetPlayerSpeed? - OmeRinG - 13.01.2009

ok... if SetPlayerSpeed canot be dune so haw can i make GetPlayerSpeed?

someone told me that i need to find the distance between the plae i am now and the place i was half second ago somethink like that and do somethink whith it...
i would like to know how....
can someone biuld it for me and show me? plaese?


Re: [question]GetPlayerSpeed? SetPlayerSpeed? - Joe Staff - 13.01.2009

hmm
floatsqroot(floatpower(newx-oldx,2)+floatpower(newy-oldy,2)+floatpower(newz-oldz,2))
per half second = so much speed per half second lol

EDIT*
floatsqroot(floatpower(oldx-newx,2)+floatpower(oldy-newy,2)+floatpower(oldz-newz,2))

Had it backwards lol


Re: [question]GetPlayerSpeed? SetPlayerSpeed? - Serbish - 13.01.2009

Quote:
Originally Posted by kaisersouse
Getting someones speed has nothing to do with telling them how fast they're going? Interesting...

Quote:
Originally Posted by -=[Serbish
=- ]
Quote:
Originally Posted by Hamptonin
Quote:
Originally Posted by Lt_Aivariux
I dont think so...
No/Yes

No: not possible to set the speed (only ped)
Yes: to download/create a speedo meter
It has nothing to do with a "speedo-meter".
Heh, learn what a speedo-meter is then you'll know the answer.