OnPlayerUpdate
#1

Hi,

i want to report a bug with OnPlayerUpdate:

If a player has a trailer attached to his vehicle and he is not moving, OnPlayerUpdate won't be called anymore.

I made a little script to test this (only working for playerid 0 if no other players are connected):

pawn Code:
new bool:afk = false;
public OnGameModeInit()
{
    SetGameModeText("Blank Script");
    SetTimer("AFKTimer", 1000, 1);
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    return 1;
}

forward AFKTimer();
public AFKTimer()
{
    if (IsPlayerConnected(0))
    {
        if (afk)
            SendClientMessageToAll(0xFFFFFFAA, "AFK!");
        afk = true;
    }
}

public OnPlayerUpdate(playerid)
{
    afk = false;
    return 1;
}
Reply


Messages In This Thread
OnPlayerUpdate not working when trailer attached and not moving - by Cypog - 23.11.2010, 07:39
Re: OnPlayerUpdate - by Joe_ - 28.11.2010, 10:31
Re: OnPlayerUpdate not working when trailer attached and not moving - by TheHoodRat - 28.11.2010, 17:58
Re: OnPlayerUpdate - by Cypog - 28.11.2010, 23:08
Re: OnPlayerUpdate - by Basicz - 05.12.2010, 22:09
Re: OnPlayerUpdate not working when trailer attached and not moving - by MrDeath537 - 06.12.2010, 02:12
Re: OnPlayerUpdate - by BLAbla93 - 06.12.2010, 11:20
Re: OnPlayerUpdate - by Cypog - 09.12.2010, 18:37

Forum Jump:


Users browsing this thread: 1 Guest(s)