OnPlayerWirtualWorldChange
#3

Use a variable to contain the player's virtual world.

pawn Код:
new g_VirtualWorld[MAX_PLAYERS];
Then under OnPlayerUpdate, check if the value within the array doesn't match the player's current virtual world.

pawn Код:
public OnPlayerUpdate(playerid)
{
    new worldid = GetPlayerVirtualWorld(playerid);
 
    if (g_VirtualWorld[playerid] != worldid)
    {
        g_VirtualWorld[playerid] = worldid;

        // Player changed virtual worlds.
    }
    return 1;
}
Only way to do this, AFAIK.
Reply


Messages In This Thread
OnPlayerWirtualWorldChange - by NoDi522 - 29.05.2015, 13:21
Re: OnPlayerWirtualWorldChange - by Gammix - 29.05.2015, 13:22
Re: OnPlayerWirtualWorldChange - by Emmet_ - 29.05.2015, 13:30
AW: OnPlayerWirtualWorldChange - by Mellnik - 29.05.2015, 13:40

Forum Jump:


Users browsing this thread: 1 Guest(s)