Hallo, ich brauche für meinen Server eine neue Fraktion (ARMY) doch ich weiß nicht besonders wie das geht.
Im Internet habe ich leider auch nichts gefunden. Hier sind ein paar angaben:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,1326.1104,-877.1648,46.3461);
SetPlayerFacingAngle(playerid, 130.4790);
SetPlayerCameraPos(playerid,1323.0771,-880.0206,45.2266);
SetPlayerCameraLookAt(playerid,1326.1104,-877.1648,46.3461);
switch(classid)
{
case 0,1,2,3,4,5,6: gTeam[playerid] = TEAM_COP; // 1. bis 7. Skins
case 7,8,9: gTeam[playerid] = TEAM_RUSSIA; // 8. bis 10. Skins
case 10,11,12: gTeam[playerid] = TEAM_TRIADEN; // 11. bis 13. Skins
case 13,14,15,16: gTeam[playerid] = TEAM_ITAL; // 14. bis 17. Skins
case 17,18,19: gTeam[playerid] = TEAM_BIKER; // 18. bis 20. Skins
case 20,21,22: gTeam[playerid] = TEAM_GROVE; // 20. bis 22. Skins
case 23,24,25: gTeam[playerid] = TEAM_BALLAS; // 23. bis 25. Skins
case 26,27,28: gTeam[playerid] = TEAM_AZTECAS; // 26. bis 28. Skins
case 29,30,31: gTeam[playerid] = TEAM_VAGOS; // 29. bis 31. Skins
case 32,33,34: gTeam[playerid] = TEAM_RIFA; // 32. bis 34. Skins
default: gTeam[playerid] = TEAM_ZIVI; // alle restlichen Skins, die hier drüber nicht abgefragt wurden (zum Beispiel: 38. bis 40. Skin)
}
if(classid == 0 || classid == 1 || classid == 2 || classid == 3 || classid == 4 || classid == 5 || classid == 6){
SetPlayerColor(playerid,COLOR_DBLUE);
GameTextForPlayer(playerid, "~w~LS-Polizei", 1500, 6);}//-
else if(classid == 7 || classid == 8 || classid == 9){
SetPlayerColor(playerid,COLOR_RED);
GameTextForPlayer(playerid, "~w~Russische Mafia", 1500, 6);}
else if(classid == 10 || classid == 11 || classid == 12){
SetPlayerColor(playerid,COLOR_YELLOW);
GameTextForPlayer(playerid, "~w~Triaden", 1500, 6);}
else if(classid == 13 || classid == 14 || classid == 15 || classid == 16){
SetPlayerColor(playerid,COLOR_PINK);
GameTextForPlayer(playerid, "~w~Italenische Mafia", 1500, 6);}//-
else if(classid == 17 || classid == 18 || classid == 19){
SetPlayerColor(playerid,COLOR_ORANGE);
GameTextForPlayer(playerid, "~w~Biker", 1500, 6);}//-
else if(classid == 20 || classid == 21 || classid == 22){
SetPlayerColor(playerid,COLOR_GREEN);
GameTextForPlayer(playerid, "~w~Grove Street", 1500, 6);}//-
else if(classid == 23 || classid == 24 || classid == 25){
SetPlayerColor(playerid,COLOR_PURPLE);
GameTextForPlayer(playerid, "~w~Ballas", 1500, 6);}//-
else if(classid == 26 || classid == 27 || classid == 28){
SetPlayerColor(playerid,COLOR_GREY);
GameTextForPlayer(playerid, "~w~Los Aztecas", 1500, 6);}
else if(classid == 29 || classid == 30 || classid == 31){
SetPlayerColor(playerid,COLOR_BLACK);
GameTextForPlayer(playerid, "~w~Vagos", 1500, 6);}
else if(classid == 32 || classid == 33 || classid == 34){
SetPlayerColor(playerid,COLOR_BLUE);
GameTextForPlayer(playerid, "~w~Rifa", 1500, 6);}
else if(classid == 35 || classid == 36 || classid == 37){
SetPlayerColor(playerid,COLOR_BLUE);
GameTextForPlayer(playerid, "~w~Zivilist", 1500, 6);}
return 1;
}
// Player Class's 18
AddPlayerClass(280,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(281,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(282,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(283,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(288,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(284,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(285,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(111,2132.1079,-2282.2371,20.6719,43.3022,22,500,30,2500,28,2000); //RUSSIA
AddPlayerClass(112,2132.1079,-2282.2371,20.6719,43.3022,22,500,30,2500,28,2000); //RUSSIA
AddPlayerClass(113,2132.1079,-2282.2371,20.6719,43.3022,22,500,30,2500,28,2000); //RUSSIA
AddPlayerClass(117,-2174.1616,632.4750,49.4375,356.1274,30,2500,23,500,8,1); //TRIADEN
AddPlayerClass(118,-2174.1616,632.4750,49.4375,356.1274,30,2500,23,500,8,1); //TRIADEN
AddPlayerClass(120,-2174.1616,632.4750,49.4375,356.1274,30,2500,23,500,8,1); //TRIADEN
AddPlayerClass(124,2610.9324,-2178.9529,-0.2188,96.2671,34,200,32,2000,31,3000); //ITAL
AddPlayerClass(125,2610.9324,-2178.9529,-0.2188,96.2671,34,200,32,2000,31,3000); //ITAL
AddPlayerClass(126,2610.9324,-2178.9529,-0.2188,96.2671,34,200,32,2000,31,3000); //ITAL
AddPlayerClass(127,2610.9324,-2178.9529,-0.2188,96.2671,34,200,32,2000,31,3000); //ITAL
AddPlayerClass(247,1510.6865,-1480.3364,9.5000,311.8584,5,1,22,750,28,1500); //BIKER
AddPlayerClass(248,1510.6865,-1480.3364,9.5000,311.8584,5,1,22,750,28,1500); //BIKER
AddPlayerClass(254,1510.6865,-1480.3364,9.5000,311.8584,5,1,22,750,28,1500); //BIKER
AddPlayerClass(105,2530.0439,-1668.2301,15.1693,85.4215,5,1,22,750,32,2000); //GROVE
AddPlayerClass(106,2530.0439,-1668.2301,15.1693,85.4215,5,1,22,750,32,2000); //GROVE
AddPlayerClass(107,2530.0439,-1668.2301,15.1693,85.4215,5,1,22,750,32,2000); //GROVE
AddPlayerClass(102,2070.6494,-1550.3933,13.4284,186.6098,18,35,22,750,32,2000); //BALLAS
AddPlayerClass(103,2070.6494,-1550.3933,13.4284,186.6098,18,35,22,750,32,2000); //BALLAS
AddPlayerClass(104,2070.6494,-1550.3933,13.4284,186.6098,18,35,22,750,32,2000); //BALLAS
AddPlayerClass(114,1831.6841,-1681.8323,13.5466,92.3014,22,500,26,250,28,1500); //AZTECAS
AddPlayerClass(115,1831.6841,-1681.8323,13.5466,92.3014,22,500,26,250,28,1500); //AZTECAS
AddPlayerClass(116,1831.6841,-1681.8323,13.5466,92.3014,22,500,26,250,28,1500); //AZTECAS
AddPlayerClass(108,2794.8557,-1087.5179,30.7188,272.3829,28,500,22,250,4,1); //VAGOS
AddPlayerClass(109,2794.8557,-1087.5179,30.7188,272.3829,28,500,22,250,4,1); //VAGOS
AddPlayerClass(110,2794.8557,-1087.5179,30.7188,272.3829,28,500,22,250,4,1); //VAGOS
AddPlayerClass(173,-2476.9763,-197.9508,25.6237,272.3829,32,1250,26,250,22,750); //RIFA
AddPlayerClass(174,-2476.9763,-197.9508,25.6237,272.3829,32,1250,26,250,22,750); //RIFA
AddPlayerClass(175,-2476.9763,-197.9508,25.6237,272.3829,32,1250,26,250,22,750); //RIFA
AddPlayerClass(10,1217.0851,-1813.7845,16.5938,272.3829,0,0,0,0,0,0); //ZIVI
AddPlayerClass(12,1217.0851,-1813.7845,16.5938,272.3829,0,0,0,0,0,0); //ZIVI
AddPlayerClass(184,1217.0851,-1813.7845,16.5938,272.3829,0,0,0,0,0,0); //ZIVI
public OnPlayerSpawn(playerid)
{
GangZoneShowForPlayer(playerid, RIFA, 0x00FFFF9B);
GangZoneShowForPlayer(playerid, TRIADEN, 0xFFFF009B);
GangZoneShowForPlayer(playerid, GROVE, 0x0080009B);
GangZoneShowForPlayer(playerid, BIKER, 0xFF8000A0);
GangZoneShowForPlayer(playerid, BALLAS, 0x8000FFAA);
GangZoneShowForPlayer(playerid, RUSSIA, 0xFF0000AA);
GangZoneShowForPlayer(playerid, COP, 0x0000FFA1);
GangZoneShowForPlayer(playerid, ITAL, 0xFF80FFA5);
GangZoneShowForPlayer(playerid, VAGOS, 0x0000009C);
GangZoneShowForPlayer(playerid, AZTECAS, 0x00000096);
return 1;
}
//Gang Zonen
RIFA = GangZoneCreate(-2510.563, -218.6009, -2402.408, -33.18756);
TRIADEN = GangZoneCreate(-2271.077, 574.337, -2124.295, 767.6402);
GROVE = GangZoneCreate(2398.743, -1745.026, 2531.842, -1614.75);
BIKER = GangZoneCreate(1474.654, -1488.423, 1603.95, -1425.259);
BALLAS = GangZoneCreate(2018.459, -1634.489, 2121.136, -1523.952);
RUSSIA = GangZoneCreate(2094.516, -2431.933, 2315.081, -2171.382);
COP = GangZoneCreate(1520.288, -1752.921, 1634.373, -1579.221);
ITAL = GangZoneCreate(2497.617, -2281.919, 2630.716, -2100.323);
VAGOS = GangZoneCreate(2740.998, -1176.551, 2839.872, -1018.641);
AZTECAS = GangZoneCreate(1790.289, -1772.66, 1950.008, -1595.012);
//Gang Zonen Ende
Ich hoffe jmd kann mir sagen, wie ich das jetzt dazufügen muss, das die Fraktion army dabei ist.
Danke im voraus