Hey Com,
Ich faller erneut wieder mal durch die Welt hier der Code:
if(PlayerInfo[playerid][pSpawnanders] == 1)
{
if(PlayerInfo[playerid][pHauskey])
{
new i = PlayerInfo[playerid][pHauskey];
new Float:xasdf, Float:yasdf, Float:zasdf;
new Inter;
xasdf = PlayerHaus[i][AHausx];
yasdf = PlayerHaus[i][AHausy];
zasdf = PlayerHaus[i][AHausz];
Inter = PlayerHaus[i][Interior];
SetPlayerPos(playerid,xasdf,yasdf,zasdf);
SetPlayerInterior(playerid,Inter);
SetPlayerVirtualWorld(playerid,PlayerHaus[i][Hausid]);
}
else if(PlayerInfo[playerid][pMietKey])
{
new i = PlayerInfo[playerid][pMietKey];
new Float:xasdf, Float:yasdf, Float:zasdf;
new Inter;
xasdf = PlayerHaus[i][AHausx];
yasdf = PlayerHaus[i][AHausy];
zasdf = PlayerHaus[i][AHausz];
Inter = PlayerHaus[i][Interior];
SetPlayerPos(playerid,xasdf,yasdf,zasdf);
SetPlayerInterior(playerid,Inter);
SetPlayerVirtualWorld(playerid,PlayerHaus[i][Hausid]);
}
}
Was ist das schon wieder?
Mfg