ICh möchte das man wenn man z.B. in der Fraktion 1 ist das man dann wo anders spawn ich habe es versucht geht aber net
hir mal OnPlayerSpawn:
public OnPlayerSpawn(playerid)
{
if(GetPVarInt(playerid, "Eingeloggt") == 0)
{
SetPlayerPos(playerid, 0,0,100);
TogglePlayerControllable(playerid, 0);
return 1;
}
else
{
if(PlayerInfo[playerid][pGangJail] == 1)
{
SetPlayerPos(playerid,-367.5871,-1428.7167,25.7266);
SetPlayerSkin(playerid,PlayerInfo[playerid][pSkin]);
SetPlayerFacingAngle(playerid,86.4917);
SetCameraBehindPlayer(playerid);
return 1;
}
else if(PlayerInfo[playerid][pFraktionsMember] == 1 || PlayerInfo[playerid][pFraktionsLeader] == 1)
{
SetPlayerPos(playerid,1526.8649,-1677.8384,5.8906);
SetPlayerSkin(playerid,PlayerInfo[playerid][pSkin]);
SetPlayerFacingAngle(playerid,266.3489);
SetPlayerInterior(playerid,0);
}
else if(PlayerInfo[playerid][pFraktionsMember] == 4 || PlayerInfo[playerid][pFraktionsLeader] == 4)
{
SetPlayerPos(playerid,1492.0387,1305.3848,1093.2964);
SetPlayerSkin(playerid,PlayerInfo[playerid][pSkin]);
SetPlayerFacingAngle(playerid,269.7934);
SetPlayerInterior(playerid,3);
}
else
{
SetPlayerPos(playerid,1107.3007,-1796.3503,16.5938);
SetPlayerSkin(playerid,PlayerInfo[playerid][pSkin]);
SetPlayerFacingAngle(playerid,92.1999);
SetPlayerInterior(playerid,0);
}
}
return 1;
}