jeder player hat kein team obwohl ich das eingestellt habe das 4 in polizei team sind und ander in andere teams halt aber in game habe ich ja ein befehl das nur polizei das polizei gate öffnen kann aber dann steht da nur der text was ich gegeben habe wen er nicht in den team ist was habe ich falsch gemacht
AddPlayerClassEx(TEAM_Mafia, 298, 1365.3500,-1279.0601,13.5469,90.0000, 4, 0, 12, 0, 28, 980); //Maffia Girl
AddPlayerClassEx(TEAM_Mafia, 124, 1365.3500,-1279.0601,13.5469,90.0000, 4, 0, 12, 0, 28, 980); //Maffia Boy
AddPlayerClassEx(TEAM_POLICE, 285, 1580.0315,-1634.4843,13.5622,156.0369, 44, 0, 34, 980, 31, 980); //SWAT
AddPlayerClassEx(TEAM_POLICE, 286, 1580.0315,-1634.4843,13.5622,156.0369, 30, 980, 28, 980, 27, 980); //fbi
AddPlayerClassEx(TEAM_POLICE, 287, 1580.0315,-1634.4843,13.5622,156.0369, 35, 980, 27, 980, 32, 980); //army
AddPlayerClassEx(TEAM_POLICE, 280, 1580.0315,-1634.4843,13.5622,156.0369, 24, 980, 3, 0, 26, 980); //(Polizist)
AddPlayerClassEx(TEAM_Ballas, 104, 1958.3783, 1343.1572, 15.3746, 269.1425, 24, 980, 0, 0, 0, 0); //( Ballas)
AddPlayerClassEx(TEAM_Drogen_Dealer, 28, 1532.3652,-1003.6458,24.0781,194.6327, 8, 0, 30, 980, 0, 0); //DRogen dealer
AddPlayerClassEx(TEAM_Gangster, 249, 1958.3783, 1343.1572, 15.3746, 269.1425, 32, 980, 18, 10, 0, 0); //Gangster
AddPlayerClassEx(TEAM_Noob, 32, 1097.4971,-1521.0577,22.7494,341.9435, 2, 0, 23, 980, 0, 0); //noob
AddPlayerClassEx(TEAM_FW,277,1031.2700,-1431.8636,13.5546,149.9718, 4, 0, 12, 0, 28, 980); // feuerwehr
AddPlayerClassEx(TEAM_Air,105,1953.5559,-2183.2971,17.0000,264.1664, 4, 0, 12, 0, 28, 980); // airport
AddPlayerClassEx(TEAM_Air,106,-1542.2012,-442.9303,9.5150,66.0413, 4, 0, 12, 0, 28, 980); // airport lv
AddPlayerClassEx(TEAM_Air,107,1715.8761,1619.0885,13.5313,187.5555, 4, 0, 12, 0, 28, 980); // airport sf
#define TEAM_POLICE 0
#define TEAM_SWAT 1
#define TEAM_FBI 2
#defineTEAM_Drogen_Dealer 3
#define TEAM_Mafia 4
#define TEAM_Air 5
#define TEAM_FW 6
#define TEAM_Gangster 7
#define TEAM_Ballas 8
#define TEAM_Noob 9
#define TEAM_Army 10
#define TEAM_SANI 11
case 0,1,2,10: gTeam[playerid] = TEAM_POLICE; // 1.2.3.10. Skin
case 5: gTeam[playerid] = TEAM_Air; // 6 Skin
case 4: gTeam[playerid] = TEAM_Mafia; // 5. Skin
case 6: gTeam[playerid] = TEAM_FW; // 7. Skin
case 7: gTeam[playerid] = TEAM_Gangster; // 8. Skin
case 8: gTeam[playerid] = TEAM_Ballas; // 9. Skin
case 9: gTeam[playerid] = TEAM_Noob; // 10. Skin
case 3: gTeam[playerid] = TEAM_Drogen_Dealer; // 4. Skin
case 11: gTeam[playerid] = TEAM_SANI; // 4. Skin
if(strcmp(cmdtext,"/open1", true) == 0)
{
if(gTeam[playerid] == TEAM_POLICE)
{
MoveObject(LSPDGATE1, 1530.3999023438, -1627.6740722656, 15.156204223633,2);
SendClientMessage(playerid, 0x4682B4AA,"Das Tor ist offen");
}
else
{
SendClientMessage(playerid, 0x4682B4AA,"Du bist kein LSPD Officers");
}
return 1;
}
EDIT
kennt sich den keiner mit gteam aus oder wieso schreibt keiner zurück ill das gate nur mit den cop offnen