Hallo,
Ich weis nicht wie ich es machen soll das meine 4 gTeams Jeweils an einem anderen Ort spawnen sollen. Die Skinnauswahl soll am selben Ort bleiben. Meine Teams sehen so aus
#define TEAM_ALPHA 0
#define TEAM_BETA 1
#define TEAM_GAMMA 2
#define TEAM_DELTA 3
static gTeam[MAX_PLAYERS];
//Team ALPHA
AddPlayerClass(165,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(163,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(166,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
//Team BETA
AddPlayerClass(98,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(127,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(113,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
//Team Gamma
AddPlayerClass(107,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(106,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(269,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
//Team Delta
AddPlayerClass(123,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(120,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
AddPlayerClass(118,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,349.0453,193.2271,1014.1797);
SetPlayerFacingAngle(playerid,286.25);
SetPlayerCameraPos(playerid,352.9164,194.5702,1014.1875);
SetPlayerCameraLookAt(playerid,349.0453,193.2271,1014.1797);
if(classid == 0 || classid == 1 || classid == 2)
{
gTeam[playerid] = TEAM_ALPHA;
GameTextForPlayer(playerid, "~b~TEAM ALPHA", 5000, 4);
SetPlayerColor(playerid, COLOR_GREEN);
}
if(classid == 3 || classid == 4 || classid == 5)
{
gTeam[playerid] = TEAM_BETA;
GameTextForPlayer(playerid, "~b~TEAM BETA", 5000, 4);
SetPlayerColor(playerid, COLOR_PINK);
}
if(classid == 6 || classid == 7 || classid == 8)
{
gTeam[playerid] = TEAM_GAMMA;
GameTextForPlayer(playerid, "~b~TEAM GAMMA", 5000, 4);
SetPlayerColor(playerid, COLOR_BLUE);
}
if(classid == 9 || classid == 10 || classid == 11)
{
gTeam[playerid] = TEAM_DELTA;
GameTextForPlayer(playerid, "~b~TEAM DELTA", 5000, 4);
SetPlayerColor(playerid, COLOR_YELLOW);
}
return 1;
}
Bitte kann mir jemand helfen Danke