28.05.2009, 15:12
ty i will try this 
Thanks this work
1 little question more, why this doesnt work?
under the command /back i places this :
and this
But for some reason its only change the color/weapon back to the first team

Thanks this work

1 little question more, why this doesnt work?
under the command /back i places this :
Код:
if(gTeam[playerid] == TEAM_LIFEGUARDS) { GivePlayerWeapon(playerid, 4, 1); } else if(gTeam[playerid] == TEAM_GOLFERS) { GivePlayerWeapon(playerid, 2, 1); } else if(gTeam[playerid] == TEAM_FBI) { GivePlayerWeapon(playerid, 3, 1); } else if(gTeam[playerid] == TEAM_TRIADS) { GivePlayerWeapon(playerid,15, 1); } else if(gTeam[playerid] == TEAM_COPS) { GivePlayerWeapon(playerid, 3, 1); } else if(gTeam[playerid] == TEAM_MOBSTERS) { GivePlayerWeapon(playerid, 9, 1); } else if(gTeam[playerid] == TEAM_GROVESTREET) { GivePlayerWeapon(playerid, 6, 1); } else if(gTeam[playerid] == TEAM_VAGOS) { GivePlayerWeapon(playerid, 5, 1); }
Код:
if(gTeam[playerid] == TEAM_LIFEGUARDS) { SetPlayerColor( playerid, LIFEGUARDS_COLOR); } else if(gTeam[playerid] == TEAM_GOLFERS) { SetPlayerColor( playerid, GOLFERS_COLOR); } else if(gTeam[playerid] == TEAM_FBI) { SetPlayerColor( playerid, FBI_COLOR); } else if(gTeam[playerid] == TEAM_TRIADS) { SetPlayerColor( playerid, TRIADS_COLOR); } else if(gTeam[playerid] == TEAM_COPS) { SetPlayerColor( playerid, COPS_COLOR); } else if(gTeam[playerid] == TEAM_MOBSTERS) { SetPlayerColor( playerid, MOBSTERS_COLOR); } else if(gTeam[playerid] == TEAM_GROVESTREET) { SetPlayerColor( playerid, GROVESTREET_COLOR); } else if(gTeam[playerid] == TEAM_VAGOS) { SetPlayerColor( playerid, VAGOS_COLOR);}