26.11.2011, 14:18
pawn Code:
Strong_SetPlayerVirtualWorld ( playerid, id ) {
if ( IsPlayerConnected ( playerid ) ) {
new vw = GetPlayerVirtualWorld ( playerid );
SetPlayerVirtualWorld ( playerid, id );
CallRemoteFunction ( "OnPlayerVirtualWorldChange", "iii", playerid, id, vw );
}
}
forward OnPlayerVirtualWorldChange(playerid, newworld, oldworld);
#define SetPlayerVirtualWorld Strong_SetPlayerVirtualWorld