thebest Posté(e) le 30 décembre 2007 Signaler Partager Posté(e) le 30 décembre 2007 Bonjour a tous J'aimerais bien de votre aide pour crée des couleurs dans un mode GF comme par example Police : Bleu Taxi : Jaune du genre comme sa merci de votre futur aide salutation Citer Lien vers le commentaire Partager sur d’autres sites More sharing options...
Babounet Posté(e) le 30 décembre 2007 Signaler Partager Posté(e) le 30 décembre 2007 J'ai pas trop compris, tu veux donner des couleurs à la voiture de police et taxi ou bien la couleur de l'icône sur la mini carte ? Citer Lien vers le commentaire Partager sur d’autres sites More sharing options...
StAfF MaN Posté(e) le 30 décembre 2007 Signaler Partager Posté(e) le 30 décembre 2007 Oui, plus d'infos auraient été les bienvenues ^^ Sinon c'est pour des véhicules, des class de players, des icons de minimap, des textes s'affichant a l'écran ?? Citer Lien vers le commentaire Partager sur d’autres sites More sharing options...
Vicolaships Posté(e) le 31 décembre 2007 Signaler Partager Posté(e) le 31 décembre 2007 Non il veut modifier la couleur des pseudo d'ou le "(tab)" dans le sujet ! En fait Police et Taxi sont des classes de joueurs, donc pour modifier leur couleur: http://www.clubic.com/telecharger-fiche14962-colorpic.html Citer Lien vers le commentaire Partager sur d’autres sites More sharing options...
thebest Posté(e) le 2 janvier 2008 Auteur Signaler Partager Posté(e) le 2 janvier 2008 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 Citer Lien vers le commentaire Partager sur d’autres sites More sharing options...
StAfF MaN Posté(e) le 2 janvier 2008 Signaler Partager Posté(e) le 2 janvier 2008 (modifié) 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é le 2 janvier 2008 par superpompier Citer Lien vers le commentaire Partager sur d’autres sites More sharing options...
thebest Posté(e) le 2 janvier 2008 Auteur Signaler Partager Posté(e) le 2 janvier 2008 Merci je vais faire sa de suite je te redit si sa marche ou pas encore merci a toi Citer Lien vers le commentaire Partager sur d’autres sites More sharing options...
thebest Posté(e) le 3 janvier 2008 Auteur Signaler Partager Posté(e) le 3 janvier 2008 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 Citer Lien vers le commentaire Partager sur d’autres sites More sharing options...
Messages recommandés
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.