15.04.2016, 11:21
I'm not sure if this would work, but you can try. Make a timer to check if the player hasn't moved in a specific duration, if so - toggle him.
Something like:
Something like:
pawn Код:
if(GetPVarInt(playerid, "AFK_Time") > 60) {
TogglePlayerControllable(playerid, false);
TogglePlayerControllable(playerid, true);
}