a na razie mi wyszlo tylko cos takiego;/
#include <amxmodx> #include <csx> #define MAXSLOTS 32 enum Color{ GREEN = 1, // Yellow YELLOW, // Green Color TEAM_COLOR, // Red, grey, blue GREY, // grey RED, // Red BLUE, // Blue } new TeamName[][] = { "", "TERRORIST", "CT", "SPECTATOR" } public plugin_init() { register_plugin("plg <img src='http://images.amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue.gif' class='bbc_emoticon' alt=':P' />","0.1","emblaze") register_logevent("Round_Start", 2, "1=Round_Start") return PLUGIN_CONTINUE } /* Color Chat */ public ColorChat(id, Color:type, const msg[], {Float,Sql,Result,_}:...) { static message[256]; switch(type) { case YELLOW:{ // Yellow message[0] = 0x01; } case GREEN:{// Green message[0] = 0x04; } default:{ // White, Red, Blue message[0] = 0x03; } } vformat(message[1], 251, msg, 4); // Make sure message is not longer than 192 character. Will crash the server. message[192] = '^0'; new team, ColorChange, index, MSG_Type; if(!id) { index = FindPlayer(); MSG_Type = MSG_ALL; } else { MSG_Type = MSG_ONE; index = id; } team = get_user_team(index); ColorChange = ColorSelection(index, MSG_Type, type); ShowColorMessage(index, MSG_Type, message); if(ColorChange){ Team_Info(index, MSG_Type, TeamName[team]); } } ShowColorMessage(id, type, message[]){ message_begin(type, 76, _, id); write_byte(id) write_string(message); message_end(); } Team_Info(id, type, team[]){ message_begin(type, 86, _, id); write_byte(id); write_string(team); message_end(); return 1; } ColorSelection(index, type, Color:Type){ switch(Type) { case RED: { return Team_Info(index, type, TeamName[1]); } case BLUE: { return Team_Info(index, type, TeamName[2]); } case GREY: { return Team_Info(index, type, TeamName[0]); } } return 0; } FindPlayer(){ new i = -1; while(i <= MAXSLOTS){ if(is_user_connected(++i)){ return i; } } return -1; } /* Info */ public Round_Start() { new izStats[8], izBody[8] new iRankPos, iRankMax new Players[32], playerCount; get_players(Players, playerCount); new id2; for (new i=0; i<playerCount; i++) { id2 = Players[i]; iRankPos = get_user_stats(id2, izStats, izBody) iRankMax = get_statsnum() ColorChat(id2, GREEN, "**^x01 Twoj rank wynosi:^x04 %d^x01/^x04%d", iRankPos, iRankMax) } }
a i dodam link jak ktos widzial lub da rade napisac inny z tych plugow Szukam pluginów zamieszczonych na screenach - Nieoficjalny polski support AMX Mod X
Dodano 04 styczeń 2011 - 15:40:
odswiezam
Dodano 05 styczeń 2011 - 20:10:
odswiezam.
Użytkownik gameman edytował ten post 02.01.2011 15:16