Hallo Community,
Warum geht es nicht.. Also ich klick auf GSG dann passiert nix, obowhl er LoadMap() ausführen müsste..
if(response == 1){
if(listitem == 0){
gTeam[playerid] = TEAM_GSG;
LoadMap();
return 1;
}
if(listitem == 1){
gTeam[playerid] = TEAM_SPAZ;
LoadMap();
return 1;
}
}
public LoadMap()
{
new Zufallsmsg = random(1),rand = random(sizeof(AirGsg)),ran = random(sizeof(AirSpez));
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(ausge == 1)
{
if(map == 1)
{
if(gTeam[i] == TEAM_GSG)
{
new randomx = random(sizeof skins);
SetSpawnInfo(i,0,skins[randomx],AirGsg[rand][0],AirGsg[rand][1],AirGsg[rand][2],AirGsg[rand][3],0,0,0,0,0,0);
SpawnPlayer(i);
}
else if(gTeam[i] == TEAM_SPAZ)
{
new randomx = random(sizeof skins);
SetSpawnInfo(i,0,skins[randomx],AirSpez[ran][0],AirSpez[ran][1],AirSpez[ran][2],AirSpez[ran][3],0,0,0,0,0,0);
SpawnPlayer(i);
}
}
}
if(Zufallsmsg == 1)
{
if(gTeam[i] == TEAM_GSG)
{
new randomx = random(sizeof skins);
SetSpawnInfo(i,0,skins[randomx],AirGsg[rand][0],AirGsg[rand][1],AirGsg[rand][2],AirGsg[rand][3],0,0,0,0,0,0);
SpawnPlayer(i);
}
else if(gTeam[i] == TEAM_SPAZ)
{
new randomx = random(sizeof skins);
SetSpawnInfo(i,0,skins[randomx],AirSpez[rand][0],AirSpez[rand][1],AirSpez[rand][2],AirSpez[rand][3],0,0,0,0,0,0);
SpawnPlayer(i);
}
Sorry, die Einrückung Failt hier voll
Der jenige der es hinbekommt, kriegt eine 40er PSC.