Just a small problem.(confused.) - 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)
+--- Thread: Just a small problem.(confused.) (
/showthread.php?tid=371158)
Just a small problem.(confused.) -
TaLhA XIV - 22.08.2012
Hello,
I never went on this side so I want to ask that where I would add the thing like I want to add a point like if a player passes through it,it records player speed.It uses no command so I am confused that where should be the codes like under which callback the codes should go.
Re: Just a small problem.(confused.) -
_Vortex - 22.08.2012
Probabaly under OnPlayerConnect or OnPlayerSpawn.
Re: Just a small problem.(confused.) -
TaLhA XIV - 22.08.2012
Nah that will only check when a player spawns or connect,anyways thanks.Anyone else?
Re: Just a small problem.(confused.) -
FalconX - 22.08.2012
Quote:
Originally Posted by TaLhA XIV
Nah that will only check when a player spawns or connect,anyways thanks.Anyone else?
|
Make a timer and use IsPlayerIsInRangeOfPoint(playerid, float:r, float

,float:y,float:z)
And as far as I know people here in forum have made a function like GetVehicleSpeed or GetPlayerSpeed or something similar. Use that to get players speed.
Good luck.
Re: Just a small problem.(confused.) -
TaLhA XIV - 22.08.2012
I don't want to use timers,can I do it like putting it under gamemodeint and setrange there?
Re: Just a small problem.(confused.) -
TaLhA XIV - 23.08.2012
bump....
AW: Just a small problem.(confused.) -
Mellnik - 23.08.2012
no there is not
Re: Just a small problem.(confused.) -
IceMeteor - 23.08.2012
This Maybe Help
gCamera Filterscript version