SA-MP Forums Archive
How do I make a fuction notmoving(playerid)? - 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: How do I make a fuction notmoving(playerid)? (/showthread.php?tid=99991)



How do I make a fuction notmoving(playerid)? - Battleskull - 02.10.2009

if the players x and y location doesn't change the notmoving(playerid) will return true other wise it returns false. How do i write a code to do that :S I tried making a timer but failed.


Re: How do I make a fuction notmoving(playerid)? - Abernethy - 02.10.2009

Quote:
Originally Posted by Nrp_RP
dunno!
Don't fucking post than.
Quote:

No SPAM. If you are adding no useful information to a topic, you are spamming.

http://forum.sa-mp.com/index.php?topic=87043.0

Uh, create a timer for X amount of seconds & save the players position to a file.
pawn Код:
if (GetPlayerPos(playerid) == PlayerInfo[playerid][oldPos])
{
// something
}