Quote:
Originally Posted by Shadoww5
OnPlayerVWChange
Funзгo: Detecta troca de VirtualWorld de um jogador
PHP Code:
new OldVW[MAX_PLAYERS];
new NewVW[MAX_PLAYERS];
#define SetPlayerVirtualWorld S_SetPlayerVirtualWorld
stock S_SetPlayerVirtualWorld(playerid, worldid)
{
if(!IsPlayerConnected(playerid)) return 1;
OldVW[playerid] = GetPlayerVirtualWorld(playerid);
NewVW[playerid] = worldid;
SetPlayerVirtualWorld(playerid, worldid);
return CallLocalFunction("OnPlayerVWChange", "iii", playerid, NewVW[playerid], OldVW[playerid]);
}
forward OnPlayerVWChange(playerid, newvw, oldvw);
|
Nгo vai funcionar porque vocк tб chamando a prуpria funзгo na funзгo. tsk tsk.