21.06.2014, 09:37
Just wanted to share a callback "OnPlayerVirtualWorldChange" that iFarbod asked me to do, I didn't bother denying his request as it was just easy.
basically works the same as OnPlayerInteriorChange
Backup Source: https://gist.github.com/pds2k12/1134a1c5c9f98ae4b397
basically works the same as OnPlayerInteriorChange
pawn Код:
stock pref_SetPlayerVirtualWorld(playerid, worldid)
{
CallLocalFunction("OnPlayerVirtualWorldChange", "iii", playerid, GetPlayerVirtualWorld(playerid), worldid);
SetPlayerVirtualWorld(playerid, worldid);
return 1;
}
#if defined _ALS_SetPlayerVirtualWorld
#undef SetPlayerVirtualWorld
#else
#define _ALS_SetPlayerVirtualWorld
#endif
#define SetPlayerVirtualWorld pref_SetPlayerVirtualWorld
forward OnPlayerVirtualWorldChange(playerid, oldworldid, newworldid);
