SA-MP Forums Archive
afk problem - 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: afk problem (/showthread.php?tid=156030)



afk problem - TheNuttyScientist - 20.06.2010

I have a problem with an afk script I am creating.

Instead of just simply freezing the player where they typed /afk, mine teleports them somewhere else.

Although, when I type /afk, it only teleports the player to the SetPlayerPos area.

Here's the script:

http://pastebin.com/fhcHRCnR


Re: afk problem - Hiddos - 20.06.2010

Use SetVehiclePos for vehicles.


Re: afk problem - Vince - 20.06.2010

Line 37 and 38:
Код:
SetPlayerPos(playerid,1872.3262,-1683.7574,58.2235);
GetPlayerPos(playerid, Float:storex[playerid], Float:storey[playerid], Float:storez[playerid]);
Switch those two. Now you're just storing the coordinates of the 'afk area' instead of the current player's pos.