hab hier eins mit gTeam, solltes du normal Problemlos ändern können
Unter Ongamemode init
Textdraw0 = TextDrawCreate(447.000000,308.000000,"Team Info:");
Textdraw1 = TextDrawCreate(415.000000,320.000000," /");
Textdraw2 = TextDrawCreate(419.000000,352.000000,"- Team: ");
Textdraw3 = TextDrawCreate(419.000000,373.000000,"- Waffen: ");
Textdraw4 = TextDrawCreate(419.000000,391.000000,"- Spawn: ");
Textdraw5 = TextDrawCreate(419.000000,406.000000,"- Farbe: ");
TextDrawUseBox(Textdraw1,1);
TextDrawBoxColor(Textdraw1,0x00000099);
TextDrawTextSize(Textdraw1,589.000000,-1.000000);
TextDrawAlignment(Textdraw0,0);
TextDrawAlignment(Textdraw1,0);
TextDrawAlignment(Textdraw2,0);
TextDrawAlignment(Textdraw3,0);
TextDrawAlignment(Textdraw4,0);
TextDrawAlignment(Textdraw5,0);
TextDrawBackgroundColor(Textdraw0,0x000000ff);
TextDrawBackgroundColor(Textdraw1,0x000000ff);
TextDrawBackgroundColor(Textdraw2,0x000000ff);
TextDrawBackgroundColor(Textdraw3,0x000000ff);
TextDrawBackgroundColor(Textdraw4,0x000000ff);
TextDrawBackgroundColor(Textdraw5,0x000000ff);
TextDrawFont(Textdraw0,3);
TextDrawLetterSize(Textdraw0,0.599999,1.800000);
TextDrawFont(Textdraw1,3);
TextDrawLetterSize(Textdraw1,-1.099999,129.599990);
TextDrawFont(Textdraw2,3);
TextDrawLetterSize(Textdraw2,0.199999,1.400000);
TextDrawFont(Textdraw3,3);
TextDrawLetterSize(Textdraw3,0.199999,1.400000);
TextDrawFont(Textdraw4,3);
TextDrawLetterSize(Textdraw4,0.199999,1.400000);
TextDrawFont(Textdraw5,3);
TextDrawLetterSize(Textdraw5,0.199999,1.400000);
TextDrawColor(Textdraw0,0xffffffff);
TextDrawColor(Textdraw1,0xffffffff);
TextDrawColor(Textdraw2,0xffffffff);
TextDrawColor(Textdraw3,0xffffffff);
TextDrawColor(Textdraw4,0xffffffff);
TextDrawColor(Textdraw5,0xffffffff);
TextDrawSetOutline(Textdraw0,1);
TextDrawSetOutline(Textdraw1,1);
TextDrawSetOutline(Textdraw2,1);
TextDrawSetOutline(Textdraw3,1);
TextDrawSetOutline(Textdraw4,1);
TextDrawSetOutline(Textdraw5,1);
TextDrawSetProportional(Textdraw0,1);
TextDrawSetProportional(Textdraw1,1);
TextDrawSetProportional(Textdraw2,1);
TextDrawSetProportional(Textdraw3,1);
TextDrawSetProportional(Textdraw4,1);
TextDrawSetProportional(Textdraw5,1);
TextDrawSetShadow(Textdraw0,1);
TextDrawSetShadow(Textdraw1,1);
TextDrawSetShadow(Textdraw2,1);
TextDrawSetShadow(Textdraw3,1);
TextDrawSetShadow(Textdraw4,1);
TextDrawSetShadow(Textdraw5,1);
public HideTeamInfo(playerid)
{
if(IsPlayerConnected(playerid))
{
TextDrawHideForPlayer(playerid, Text:Textdraw0);
TextDrawHideForPlayer(playerid, Text:Textdraw1);
TextDrawHideForPlayer(playerid, Text:Textdraw2);
TextDrawHideForPlayer(playerid, Text:Textdraw3);
TextDrawHideForPlayer(playerid, Text:Textdraw4);
TextDrawHideForPlayer(playerid, Text:Textdraw5);
}
}
public Teaminfo(playerid)
{
if(IsPlayerConnected(playerid))
{
new TeamInfo[61], Team[61];
new WeaponInfo[61], Waffen[61];
new SpawnInfo[61], Spawn[61];
new ColorInfo[61], Farbe[61];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof name);
if(gTeam[playerid] == TEAM_CAMPER) { Team = "~r~Camper"; }
else if(gTeam[playerid] == TEAM_WHORE) { Team = "~r~Whore"; }
else if(gTeam[playerid] == TEAM_FARMER) { Team = "~r~Farmer"; }
else if(gTeam[playerid] == TEAM_PIMP) { Team = "~r~Pimp"; }
else if(gTeam[playerid] == TEAM_HOMELESS) { Team = "~r~Homeless"; }
format(TeamInfo, sizeof(TeamInfo), "- Team: %s", Team);
if(gTeam[playerid] == TEAM_CAMPER) { Waffen = "~r~Sd-Pistole, MP5, Messer, Rifle"; }
else if(gTeam[playerid] == TEAM_WHORE) { Waffen = "~r~Sniper, Tec9, Shotgun, Messer"; }
else if(gTeam[playerid] == TEAM_FARMER) { Waffen = "~r~Granate, Schlagring, Uzi, Ak47"; }
else if(gTeam[playerid] == TEAM_PIMP) { Waffen = "~r~Deagle, M4, ShawnOff, Raketenwerfer"; }
else if(gTeam[playerid] == TEAM_HOMELESS) { Waffen = "~r~Deagle, M4, ShawnOff, Raketenwerfer"; }
format(WeaponInfo, sizeof(WeaponInfo), "- Waffen: %s", Waffen);
if(gTeam[playerid] == TEAM_CAMPER) { Spawn = "~r~San Fierro"; }
else if(gTeam[playerid] == TEAM_WHORE) { Spawn = "~r~Las Venturas"; }
else if(gTeam[playerid] == TEAM_FARMER) { Spawn = "~r~Los Santos"; }
else if(gTeam[playerid] == TEAM_PIMP) { Spawn = "~r~Las Venturas"; }
else if(gTeam[playerid] == TEAM_HOMELESS) { Spawn = "~r~San Fierro"; }
format(SpawnInfo, sizeof(SpawnInfo), "- Waffen: %s", Spawn);
if(gTeam[playerid] == TEAM_CAMPER) { Farbe = "~r~Orange"; }
else if(gTeam[playerid] == TEAM_WHORE) { Farbe = "~r~Pink"; }
else if(gTeam[playerid] == TEAM_FARMER) { Farbe = "~r~Braun"; }
else if(gTeam[playerid] == TEAM_PIMP) { Farbe = "~r~Lila"; }
else if(gTeam[playerid] == TEAM_HOMELESS) { Farbe = "~r~Hell Braun"; }
format(ColorInfo, sizeof(ColorInfo), "- Farbe: %s", Farbe);
HideTeamInfo(playerid);
TextDrawShowForPlayer(playerid, Text:Textdraw0);
TextDrawShowForPlayer(playerid, Text:Textdraw1);
TextDrawSetString(Text:Textdraw2, TeamInfo);
TextDrawShowForPlayer(playerid, Text:Textdraw2);
TextDrawSetString(Text:Textdraw3, WeaponInfo);
TextDrawShowForPlayer(playerid, Text:Textdraw3);
TextDrawSetString(Text:Textdraw4, SpawnInfo);
TextDrawShowForPlayer(playerid, Text:Textdraw4);
TextDrawSetString(Text:Textdraw5, ColorInfo);
TextDrawShowForPlayer(playerid, Text:Textdraw5);
}
Unter jedem Team in der SKinauswahl setzt du dann einfach Teaminfo(playerid);
}