Aller au contenu

[aide] Pour Les Couleur (tab)


thebest

Messages recommandés

Enfaite le truc je c'est que je doit changé des lignes dans le script (gf.pwn).

 

ca serai de mettre des couleurs a chaque faction donc

 

Police : Bleu claire

FBI : Bleu foncé

Cosa nostra : Violet foncé

Yakusa : Violet claire

Tueur a gage : Noir

Taxi : Jaune

Medecin/Pompier : Rouge

Instructeur des permis : Blanc

Civil : Orange

 

Tout sa c'est a modifier dans le script

et ensuite en vois le changement dans [TAB] ou il y a le score et ou il y a les noms des joueurs

 

voila mon + d'expliquation en esperant que vous puissiez m'aider

Lien vers le commentaire
Partager sur d’autres sites

pour mettre une couleure dans une classe de player c'est pas compliqué :

 

tu va ici public OnPlayerSpawn(playerid)

{

 

et la dedasn tu a ça if(gTeam[playerid] == TEAM_TATEAM){

 

SetPlayerColor(playerid,COLOR_BLEUTROUBLE); // bleu foncé ///////////C'est la que tu change la couleur

}

 

et tu as ça comme couleur :

 

#define COLOR_LIGHTGREEN 0x00FF0DFF

 

#define COLOR_GREY 0xAFAFAFAA

 

#define COLOR_GREEN 0x33AA33AA

 

#define COLOR_RED 0xAA3333AA

 

#define COLOR_YELLOW 0xFFFF00AA

 

#define COLOR_PINK 0xFF66FFAA

 

#define COLOR_BLUE 0x0000BBAA

 

#define COLOR_LIGHTBLUE 0x33CCFFAA

 

#define COLOR_DARKRED 0x660000AA

 

#define COLOR_ORANGE 0xFF9900AA

 

#define COLOR_VIOLETCLAIR 0xBD61F1AA

 

#define COLOR_BEAUVERT 0x3CE10AA

 

#define COLOR_BLEUTROUBLE 0x4476DCAA

 

#define COLOR_ROUGEROUGE 0xFF0000AA

 

#define COLOR_ADMIN 0x40404000 // invisible au radar

 

#define COLOR_INDIGO 0x4B00B0AA

 

#define GREY 0xc8bebeAA

 

A savoir que tu peut utiliser "COLOR_ORANGE" ou les suites de chiffres et lettres qui suivent, 0xFF9900AA (pour le orange)

 

Voila ^^

a++

Modifié par superpompier
Lien vers le commentaire
Partager sur d’autres sites

J'ai un probleme c'est que j'ai bien sa : OnPlayerSpawn(playerid) et sa

if(gTeam[playerid] == ICI JE C'EST PAS QUOI METTRE)

 

Mais je n'est pas sa

 

{

 

SetPlayerColor(playerid,COLOR_"");

}

 

Je le met ou alors dans le script voila se que j'ai

 

public OnPlayerSpawn(playerid)<BR>{</P> <P><BR> InitLockDoors(playerid);<BR> STDPlayer[playerid] = 0;<BR> gTeam[playerid] = PlayerInfo[playerid][pTeam]; //Set the Team<BR> if (gTeam[playerid] == 4) //medic / criminal reset team<BR> {<BR>  gTeam[playerid] = 3;<BR> }<BR> if(gPlayerLogged[playerid] == 0)<BR> {<BR>     SendClientMessage(playerid, COLOR_LIGHTRED, "** Pour jouer sur ce serveur, vous devez posseder un compte. **");<BR>        KickPlayer[playerid] = 1;<BR>  }<BR> if(gTeam[playerid] == 11 && PlayerInfo[playerid][pLeader] < 1)<BR> {<BR>     MedicBill[playerid] = 0;<BR>     new rand = random(sizeof(CIV));<BR>  SendClientMessage(playerid, COLOR_LIGHTRED, "Vous n'etes pas un chef approuve, vous etes seulement civil !");<BR>  PlayerInfo[playerid][pTeam] = 3;<BR>  gTeam[playerid] = 3;<BR>  SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);<BR>  PlayerInfo[playerid][pModel] = CIV[rand];<BR>  SpawnPlayer(playerid);<BR> }<BR> if(gTeam[playerid] == 5)<BR> {<BR>     if(PlayerInfo[playerid][pMember] < 1)<BR>     {<BR>         MedicBill[playerid] = 0;<BR>         new rand = random(sizeof(CIV));<BR>   SendClientMessage(playerid, COLOR_LIGHTRED, "Vous ne faites pas partie d'une famille, vous êtes civil !");<BR>   PlayerInfo[playerid][pTeam] = 3;<BR>   gTeam[playerid] = 3;<BR>            SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);<BR>   PlayerInfo[playerid][pModel] = CIV[rand];<BR>   SpawnPlayer(playerid);<BR>  }<BR> }<BR> if(gTeam[playerid] == 10)<BR> {<BR>     if(PlayerInfo[playerid][pMember] != 8)<BR>     {<BR>         MedicBill[playerid] = 0;<BR>         new rand = random(sizeof(CIV));<BR>   SendClientMessage(playerid, COLOR_LIGHTRED, "Vous n'etes pas membre d'une agence, vous etes un civil !");<BR>   PlayerInfo[playerid][pTeam] = 3;<BR>   gTeam[playerid] = 3;<BR>            SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);<BR>   PlayerInfo[playerid][pModel] = CIV[rand];<BR>   SpawnPlayer(playerid);<BR>  }<BR> }<BR> if(gTeam[playerid] == 2 && PlayerInfo[playerid][pMember] > 3)<BR> {<BR>     MedicBill[playerid] = 0;<BR>  new rand = random(sizeof(CIV));<BR>  SendClientMessage(playerid, COLOR_LIGHTRED, "Vous n'avez pas sollicite etre un dirigeant/FBI/Militaire, vous etes maintenant un civil !");<BR>  PlayerInfo[playerid][pTeam] = 3;<BR>  gTeam[playerid] = 3;<BR>  SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);<BR>  PlayerInfo[playerid][pModel] = CIV[rand];<BR>  SpawnPlayer(playerid);<BR> }<BR> if(gTeam[playerid] == 3)<BR> {<BR>     if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pLeader] > 0)<BR>     {<BR>   SendClientMessage(playerid, COLOR_LIGHTRED, "VOus faites partie d'une Famille/Force , vous etes force de choisir la classe appropriee !");<BR>   MedicBill[playerid] = 0;<BR>   new model = PlayerInfo[playerid][pChar];<BR>   if(PlayerInfo[playerid][pMember] == 1) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }<BR>   else if(PlayerInfo[playerid][pMember] == 2) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }<BR>   else if(PlayerInfo[playerid][pMember] == 3) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }<BR>   else if(PlayerInfo[playerid][pMember] == 4) { SetSpawnInfo(playerid, 1, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; PlayerInfo[playerid][pModel] = model; }<BR>   else if(PlayerInfo[playerid][pMember] == 5) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }<BR>   else if(PlayerInfo[playerid][pMember] == 6) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }<BR>   else if(PlayerInfo[playerid][pMember] == 8) { SetSpawnInfo(playerid, 10, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; PlayerInfo[playerid][pModel] = model; }<BR>   else if(PlayerInfo[playerid][pMember] == 9) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }<BR>   else if(PlayerInfo[playerid][pMember] == 10) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }<BR>   else if(PlayerInfo[playerid][pMember] == 11) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }<BR>   else if(PlayerInfo[playerid][pLeader] == 1) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }<BR>   else if(PlayerInfo[playerid][pLeader] == 2) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }<BR>   else if(PlayerInfo[playerid][pLeader] == 3) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }<BR>   else if(PlayerInfo[playerid][pLeader] == 4) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }<BR>   else if(PlayerInfo[playerid][pLeader] == 5) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }<BR>   else if(PlayerInfo[playerid][pLeader] == 6) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }<BR>   else if(PlayerInfo[playerid][pLeader] == 7) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }<BR>   else if(PlayerInfo[playerid][pLeader] == 8) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }<BR>   else if(PlayerInfo[playerid][pLeader] == 9) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }<BR>   else if(PlayerInfo[playerid][pLeader] == 10) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }<BR>   else if(PlayerInfo[playerid][pLeader] == 11) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }<BR>   //SetSpawnInfo(playerid, team, model,0.0,0.0,0.0,0,0,0,0,0,0,0);<BR>   SpawnPlayer(playerid);<BR>  }<BR> }<BR> if(PlayerInfo[playerid][pChar] > 0) { SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]); }<BR> else { SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]); }<BR> SetPlayerWeapons(playerid);<BR> SetPlayerSpawn(playerid);<BR> SetPlayerToTeamColor(playerid);<BR> PlayerFixRadio(playerid);<BR> for(new i = 0; i < sizeof(Turfs); i++)<BR> {<BR>     GangZoneShowForPlayer(playerid, i, TurfInfo[i][zColor]);<BR> }<BR> if(MapIconsShown[playerid] != 1)<BR> {<BR>     MapIconsShown[playerid] = 1;<BR>     for(new i = 0; i < sizeof(BizzInfo); i++)<BR>  {<BR>   SetPlayerMapIcon(playerid,i + 1,BizzInfo[i][bEntranceX],BizzInfo[i][bEntranceY],BizzInfo[i][bEntranceZ],36,COLOR_LIGHTRED);<BR>  }<BR>  for(new i = 0; i < sizeof(SBizzInfo); i++)<BR>  {<BR>      SetPlayerMapIcon(playerid,i + 20,SBizzInfo[i][sbEntranceX],SBizzInfo[i][sbEntranceY],SBizzInfo[i][sbEntranceZ],36,COLOR_LIGHTRED);<BR>  }<BR> }<BR> return 1;<BR>}

 

Voila si tu peux m'aider merci

 

 

Lien vers le commentaire
Partager sur d’autres sites

Rejoindre la conversation

Vous pouvez publier maintenant et vous inscrire plus tard. Si vous avez un compte, connectez-vous maintenant pour publier avec votre compte.

Invité
Répondre à ce sujet…

×   Collé en tant que texte enrichi.   Coller en tant que texte brut à la place

  Seulement 75 émoticônes maximum sont autorisées.

×   Votre lien a été automatiquement intégré.   Afficher plutôt comme un lien

×   Votre contenu précédent a été rétabli.   Vider l’éditeur

×   Vous ne pouvez pas directement coller des images. Envoyez-les depuis votre ordinateur ou insérez-les depuis une URL.

Chargement
×
×
  • Créer...