Hallo Leute,
Ich habe mir ein Frak spawn gemacht. Aber wenn ich jetzt egal welche FRak bin und ich spawne bin ich bei der LSPD. Was ist hier falsch.
public FrakSpawn(playerid)
{
if(IsInFrak(playerid))
{
if(pInfo[playerid][pLeader] == 1 || pInfo[playerid][pMember] == 1) { SetPlayerColor(playerid,COLOR_LIGHTBLUE); SetSpawnInfo(playerid,0,pInfo[playerid][pSkin],439.5149,-1753.2469,8.6953,237.7462, 0, 0, 0, 0, 0, 0); SpawnPlayer(playerid); } <-- LSPD
else if(pInfo[playerid][pLeader] == 2 || pInfo[playerid][pMember] == 2) { SetPlayerColor(playerid,COLOR_BLUE); SetSpawnInfo(playerid,0,pInfo[playerid][pSkin],439.5149,-1753.2469,8.6953,237.7462, 0, 0, 0, 0, 0, 0); SpawnPlayer(playerid); }
else if(pInfo[playerid][pLeader] == 3 || pInfo[playerid][pMember] == 3) { SetPlayerColor(playerid,COLOR_RED); SetSpawnInfo(playerid,0,pInfo[playerid][pSkin],1174.3109,-1323.8938,14.7891,278.5905, 0, 0, 0, 0, 0, 0); SpawnPlayer(playerid); }
else if(pInfo[playerid][pLeader] == 4 || pInfo[playerid][pMember] == 4) { SetPlayerColor(playerid,COLOR_ORANGE); SetSpawnInfo(playerid,0,pInfo[playerid][pSkin],912.4631,-1235.2947,17.2109,2.3330, 0, 0, 0, 0, 0, 0); SpawnPlayer(playerid); }
else if(pInfo[playerid][pLeader] == 5 || pInfo[playerid][pMember] == 5) { SetPlayerColor(playerid,COLOR_WHITE); SetSpawnInfo(playerid,0,pInfo[playerid][pSkin],2496.4177,-1684.2083,13.3746,358.6855, 28, 5000, 22, 1000, 4, 1); SpawnPlayer(playerid); }
}
else { SetPlayerColor(playerid,COLOR_WHITE); SetSpawnInfo(playerid,0,pInfo[playerid][pSkin],1544.3560,-1675.4216,13.5582,91.2592, 0, 0, 0, 0, 0, 0); SpawnPlayer(playerid); }
}
Wäre nett wenn ihr mir helft.