[FilterScript] AFK System
#2

pawn Code:
new Float:x, Float:y, Float:z;
...
GetPlayerPos(playerid, x,y,z);
...
SetPlayerPos(playerid, x,y,z);
if some players go to afk, they will be teleported to the last player's oldposition when they come back.

Use this:
pawn Code:
new Float:positions[MAX_PLAYERS][3];
...
GetPlayerPos(playerid, positions[playerid][0], positions[playerid][1], positions[playerid][2]);
...
SetPlayerPos(playerid, positions[playerid][0], positions[playerid][1], positions[playerid][2]);
Reply


Messages In This Thread
AFK System - by dahley5 - 03.09.2011, 12:16
Re: AFK System - by KoczkaHUN - 03.09.2011, 12:22
Re: AFK System - by dahley5 - 03.09.2011, 12:23
Re: AFK System - by KoczkaHUN - 03.09.2011, 12:29
Re: AFK System - by dahley5 - 03.09.2011, 12:31
Re: AFK System - by niels44 - 16.09.2011, 14:45

Forum Jump:


Users browsing this thread: 1 Guest(s)