//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); }
public SetPlayerToTeamColor(playerid) { if(gTeam[playerid] == TEAM_GROVE) { SetPlayerColor(playerid,0x33AA33AA); // green } if(gTeam[playerid] == TEAM_COP) { SetPlayerColor(playerid,0x375FFFFF); // blue } }
SetPlayerTeamFromClass(playerid, classid) { if(classid == 0 || classid == 1 || classid == 2) { gTeam[playerid] = TEAM_GROVE; // DONE } if(classid == 3 || classid == 4) { gTeam[playerid] = TEAM_COP; // DONE } }
SetPlayerToTeamColor(playerid);
forward SetPlayerToTeamColor(playerid);
static gTeam[MAX_PLAYERS]; // Tracks the team assignment for each player
Originally Posted by Lajko1
post me your script in pastebin and i will modify it ... if you want ofc
|
Originally Posted by DJDhan
DUDE!!!
if { } "ELSE" if { } Where's else |
Originally Posted by Lajko1
you ever heard for defining COLORS ? lol
http://pastebin.com/m12176ecd i think this should work now i go test |