09.12.2009, 10:46
i have one problem... i'm trying to make gangs (ballas, grove street, los aztecas, vagos)
when i connect to my server, there are problem with team colors (example. ballas have blue color)
classes:
defines:
classid:
when i connect to my server, there are problem with team colors (example. ballas have blue color)
classes:
Код:
//BALLAS AddPlayerClass(102,2202.8977,-1152.3108,29.8044,270.2080,0,0,0,0,0,0); AddPlayerClass(103,2202.8977,-1152.3108,29.8044,270.2080,0,0,0,0,0,0); AddPlayerClass(104,2202.8977,-1152.3108,29.8044,270.2080,0,0,0,0,0,0); //GROVE STREET AddPlayerClass(105,2510.9287,-1691.7239,13.5095,9.3615,0,0,0,0,0,0); AddPlayerClass(106,2510.9287,-1691.7239,13.5095,9.3615,0,0,0,0,0,0); AddPlayerClass(107,2510.9287,-1691.7239,13.5095,9.3615,0,0,0,0,0,0); //VAGOS AddPlayerClass(108,2804.8940,-1427.1069,40.0625,180.4031,0,0,0,0,0,0); AddPlayerClass(109,2804.8940,-1427.1069,40.0625,180.4031,0,0,0,0,0,0); AddPlayerClass(110,2804.8940,-1427.1069,40.0625,180.4031,0,0,0,0,0,0); //LOS AZTECAS AddPlayerClass(114,1808.8962,-1939.7173,13.5469,26.0726,0,0,0,0,0,0); AddPlayerClass(115,1808.8962,-1939.7173,13.5469,26.0726,0,0,0,0,0,0); AddPlayerClass(116,1808.8962,-1939.7173,13.5469,26.0726,0,0,0,0,0,0);
Код:
#define BALLAS 1 #define GROVE 2 #define VAGOS 3 #define LOSAZTECAS 4
Код:
new team; team = GetPlayerTeam(playerid); if(team == BALLAS) { SetPlayerColor(playerid, 0xAD6ECFF); } if(team == GROVE) { SetPlayerColor(playerid, 0x00BF00FF); } if(team == VAGOS) { SetPlayerColor(playerid, 0x39E2FBFF); } if(team == LOSAZTECAS) { SetPlayerColor(playerid, 0xEAEA00FF); }
Код:
if(classid == 0) { SetPlayerTeam(playerid, BALLAS); } if(classid == 1) { SetPlayerTeam(playerid, BALLAS); } if(classid == 2) { SetPlayerTeam(playerid, BALLAS); } if(classid == 3) { SetPlayerTeam(playerid, GROVE); } if(classid == 4) { SetPlayerTeam(playerid, GROVE); } if(classid == 5) { SetPlayerTeam(playerid, GROVE); } if(classid == 6) { SetPlayerTeam(playerid, VAGOS); } if(classid == 7) { SetPlayerTeam(playerid, VAGOS); } if(classid == 8) { SetPlayerTeam(playerid, VAGOS); } if(classid == 9) { SetPlayerTeam(playerid, LOSAZTECAS); } if(classid == 10) { SetPlayerTeam(playerid, LOSAZTECAS); } if(classid == 11) { SetPlayerTeam(playerid, LOSAZTECAS); }