24.12.2009, 09:11
i used script at the top and in my spawn i did:
the skin gets set but the position has no effect the guy goes to random spawn even that he is ONWG = 1
pawn Код:
public OnPlayerSpawn(playerid)
{
if(ONWG[playerid] == 1)
{
SetPlayerPosToStoredPos(playerid);
SetPlayerSkinToStoredSkin(playerid);
ONWG[playerid] = 0;
SetPlayerInterior(playerid,15);
}
PlayerPlaySound(playerid, 1069, 0.0, 0.0, 0.0);
SetPlayerInterior(playerid,0);
SetPlayerRandomSpawn(playerid);
SetPlayerVirtualWorld(playerid, 0);
return 1;
}

