Hey,
bei mir wird OnPlayerSpawn aufgerufen und ich spawne in Blueberry. Er versucht mich in die Richtige Welt zusetzen schafft es aber nicht warum?
/*
enum fractionsEnum{
f_id,
f_name,
f_spawn_x,
f_spawn_y,
f_spawn_z,
f_spawn_r,
f_interior
}
new fInfo[250][fractionsEnum];*/
public OnPlayerSpawn(playerid)
{
if(!pInfo[playerid][pLoggedIn])return 1;
SetPlayerSkin(playerid, pInfo[playerid][pSkin]);
if(pInfo[playerid][pFraction] > 0) {
SetPlayerInterior(playerid, fInfo[pFraction][f_interior]);
SetPlayerPos(playerid, fInfo[pFraction][f_spawn_x],fInfo[pFraction][f_spawn_y],fInfo[pFraction][f_spawn_z]);
SetPlayerVirtualWorld(playerid, 0);
} else {
SetPlayerPos(playerid, 116.0559,1050.0408,13.6094);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
}
return 1;
}