[Help] UnfreezeTimer
#1

Hello.. I was making unfreeze timer when people enter building and after timer ends.. server unfreeze him.

pawn Код:
forward UnfreezeTimer( playerid );

public UnfreezeTimer( playerid )
{
    TogglePlayerControllable(playerid, true);
    return 1;
}
// this goes under OnPlayerKeyStateChange
if(IsPlayerInRangeOfPoint( playerid, 2, 1772.0117, -1548.0527, 9.9070) )
            {
                SetPlayerPos( playerid, 2534.3948, -1366.6055, 1041.4506);
                SetPlayerInterior( playerid, 2);
                TogglePlayerControllable(playerid, false);
                SetTimer("UnfreezeTimer", 3000, false);
            }
If one player enter and 2nd enter after him.. server unfreezes player who entered 2nd and 1st is frozen perm.
Whats wrong?
Reply


Messages In This Thread
[Help] UnfreezeTimer - by MartinDee - 10.11.2010, 08:47
Re: [Help] UnfreezeTimer - by MartinDee - 10.11.2010, 10:52
Re: [Help] UnfreezeTimer - by Lenny the Cup - 10.11.2010, 10:55
Re: [Help] UnfreezeTimer - by lameguy - 10.11.2010, 13:27

Forum Jump:


Users browsing this thread: 2 Guest(s)