Mr.Alien Posted July 17, 2012 Share Posted July 17, 2012 Coucou, Je cherche un chat Admin, c'est à dire qu'il affiche le préfixe "[Admin]" quand un admin parle dans le chat. De plus, je voudrais qu'il soit compatible CSS mais aussi Gmod ! Exemple de sont utilité dans le chat : [color=#ff0000][Admin][/color] Mr.Alien : Coucou tout le monde ! Merci pour votre aide ! :-) Quote Link to comment Share on other sites More sharing options...
Phobie Posted July 17, 2012 Share Posted July 17, 2012 Vu sur mes serveurs ? Le MiniGames : 77.111.239.242:27015 et le PoolParty : 77.111.239.241:27015 ? Désolé du petit coup de pub, je ne pouvais pas m'en empêcher. (a) Cadeau pour toi : http://forums.alliedmods.net/showthread.php?t=167814 Quote Link to comment Share on other sites More sharing options...
Mr.Alien Posted July 18, 2012 Author Share Posted July 18, 2012 Merci ! J'avais complétement oublier que tu l'utilisais aussi car je pensais plus au Brainless. ^^ Profite de faire de la pub ici, c'est mon topic donc je me plaindrais pas ! x) Édite : Le plugin est hélas pas compatible avec Gmod, si quelqu'un a un plugin similaire et compatible, je suis preneur ! :) Quote Link to comment Share on other sites More sharing options...
tom77 Posted July 18, 2012 Share Posted July 18, 2012 ça dois pas être très difficile a coder Si un utilisateur envois un message, ça enregistre le message sans l'envoyer directement puis ça envois un PrintToChatAll("[ADMIN] %N: MESSAGE"); (Ne pas oublier de récupérer le nom de celui qui envois le message pour pouvoir le mettre dans le PrintToChatAll sous la forme de "%N" Quote Link to comment Share on other sites More sharing options...
Kriax Posted July 18, 2012 Share Posted July 18, 2012 Prend cela en attendant. Je verrais pour le modifier vite fais dès que j'ai le temps. http://forum.verygames.net/showthread.php?64295-PARTAGE-Admin-amp-Vip-Name Normalement compatible avec Gmod ;) Kriax. Quote Link to comment Share on other sites More sharing options...
Slayzer Posted July 18, 2012 Share Posted July 18, 2012 ça dois pas être très difficile a coder Si un utilisateur envois un message, ça enregistre le message sans l'envoyer directement puis ça envois un PrintToChatAll("[ADMIN] %N: MESSAGE"); (Ne pas oublier de récupérer le nom de celui qui envois le message pour pouvoir le mettre dans le PrintToChatAll sous la forme de "%N" En effet. #include <sdktools> public Plugin:myinfo = { name = "say admin", description = "Tag Admin say", author = "Slayzer", version = "1.0.0", url = "http://magnetik.verygames.net/forum" }; public OnPluginStart() { AddCommandListener(OnSay, "say"); } public Action:OnSay(client, const String:command[], args) { if (IsClientInGame(client)) { if (client) { decl String:text[128]; GetCmdArg(1, text, sizeof(text)); if (GetUserFlagBits(client) & ADMFLAG_BAN) { if (IsPlayerAlive(client)) { PrintToChatAll("\x04[ADMIN] \x01 %N : %s", client, text); return Plugin_Handled; } else { PrintToChatAll("*MORT* \x04[ADMIN] \x01 %N : %s", client, text); return Plugin_Handled; } } } } return Plugin_Continue; } fait a l'arrache, a testé et dis moi. Quote Link to comment Share on other sites More sharing options...
iNex Posted July 18, 2012 Share Posted July 18, 2012 ça dois pas être très difficile a coder Si un utilisateur envois un message, ça enregistre le message sans l'envoyer directement puis ça envois un PrintToChatAll("[ADMIN] %N: MESSAGE"); (Ne pas oublier de récupérer le nom de celui qui envois le message pour pouvoir le mettre dans le PrintToChatAll sous la forme de "%N" Ya autre chose que tu peux utilisé et qui conviens plus Quote Link to comment Share on other sites More sharing options...
Kriax Posted July 18, 2012 Share Posted July 18, 2012 PrintToChatAll("*MORT* \x04[ADMIN] \x01 %N : %s", client, text); Je pense que sa risque de mettre cela : *MORT* *MORT*[ADMIN] Kriax : Blablabla Ya autre chose que tu peux utilisé et qui conviens plus Comme quoi ? :D Quote Link to comment Share on other sites More sharing options...
Slayzer Posted July 18, 2012 Share Posted July 18, 2012 PrintToChatAll("*MORT* \x04[ADMIN] \x01 %N : %s", client, text); Je pense que sa risque de mettre cela : *MORT* *MORT*[ADMIN] Kriax : Blablabla Comme quoi ? :D sa annule all messages écris et sa met celui la normalement. Quote Link to comment Share on other sites More sharing options...
Marechoux Posted July 18, 2012 Share Posted July 18, 2012 On reste calme svp. Quote Link to comment Share on other sites More sharing options...
Mr.Alien Posted July 18, 2012 Author Share Posted July 18, 2012 Merci pour votre aide, je testerais celui de Slayzer dès que je peut et celui de Kriax par la même occasion ! :) édite : On reste calme svp. Il y a une tension ? Quote Link to comment Share on other sites More sharing options...
Marechoux Posted July 18, 2012 Share Posted July 18, 2012 Il y a une tension ? J'ai du supprimer des messages. Ceux à qui je m'adresse le comprendront. Quote Link to comment Share on other sites More sharing options...
Mr.Alien Posted July 18, 2012 Author Share Posted July 18, 2012 à moins que j'ai pas installé une extension pour SM, les 2 plugins proposé ne marchent pas pour Gmod, j'ai test aussi avec !say mais rien du tout ! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.