Princee 0 Posted September 21, 2016 Share Posted September 21, 2016 Nume : Bun venit Versiune : nu conteaza Descriere detaliata : Vreau un plugin cand intri pe server sa-ti puna un mesaj pe chat - Bun venit pe server <NUMELE TAU> . Iti multumim pentru alegere,forum rangfort.ro etc ! Daca se poate:) Link to comment Share on other sites More sharing options...
marvel_team 278 Posted September 21, 2016 Share Posted September 21, 2016 Incearca asta : #include <amxmodx> static const forumurl[] = "www.rangfort.ro" #if defined _colorchat_included #endinput #endif #define _colorchat_included enum Color { NORMAL = 1, // clients scr_concolor cvar color GREEN, // Green Color TEAM_COLOR, // Red, grey, blue GREY, // grey RED, // Red BLUE, // Blue } new const TeamName[][] = { "", "TERRORIST", "CT", "SPECTATOR" } public plugin_init() { register_plugin("New Welcome Message ", "0.1", "RnL/edit xdNTz"); register_cvar("new_welcome","1") register_cvar("amx_forum",forumurl); } public client_putinserver(id) { set_task(5.0, "new_welcome", id) } public new_welcome(id) { if (get_cvar_num("new_welcome")) { new name[32] get_user_name(id,name,31) set_hudmessage(35, 81, 221, 0.32, 0.19, 0, 6.0, 12.0) show_hudmessage(id, " Salut %s^n Bun venit pe Serverul Nostru^n Forum : %s^n Distreaza-te!",name,forumurl); ColorChat(id, GREEN,"Bun Venit %s^x03! Bafta la fraguri ^x03!",name); if(is_user_connecting(id)) set_hudmessage(102, 188, 36, 0.33, 0.12, 0, 6.0, 12.0) show_hudmessage(id, "Atentie! Jucatorul %s s-a conectat pe Server-ul nostru!",name,forumurl); ColorChat(id, GREEN,"Uratii bun venit noului jucator %s^x03 ! Have Fun^x03!",name); } } ColorChat(id, Color:type, const msg[], any:...) { new message[256]; switch(type) { case NORMAL: // clients scr_concolor cvar color { 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) { MSG_Type = MSG_ONE_UNRELIABLE; index = id; } else { index = FindPlayer(); MSG_Type = MSG_BROADCAST; } 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[]) { static msgSayText; if(!msgSayText) { msgSayText = get_user_msgid("SayText"); } message_begin(type, msgSayText, _, id); write_byte(id) write_string(message); message_end(); } Team_Info(id, type, team[]) { static msgTeamInfo; if(!msgTeamInfo) { msgTeamInfo = get_user_msgid("TeamInfo"); } message_begin(type, msgTeamInfo, _, 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 <= get_maxplayers()) { if(is_user_connected(++i)) return i; } return -1; } /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE *{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0\\ deflang1033{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par } */ Salut ! Bun venit pe Serverul Nostru ! Forum : Distreaza-te! Bun Venit Bafta la fraguri Atentie! Jucatorul x s-a conectat pe Server-ul nostru! Uratii bun venit noului jucator x ! Have Fun x Link to comment Share on other sites More sharing options...
Bulgaru 2 Posted September 22, 2016 Share Posted September 22, 2016 Poftim ceva mai simplu ii arata si rank-ul jucatorului apare doar in HUD . #include < amxmodx > #include < amxmisc > #include < csx > #include < csstats > public plugin_init( ) { register_plugin( "Connect Info Hud", "0.1", "x" ) } public client_putinserver( id ) { if( is_user_bot( id ) ) return set_task( 10.0, "go_info", id ) } public go_info(id) { new stats[ 8 ], body[ 8 ], hostname[ 64 ], name[ 32 ] new rank_pos = get_user_stats( id, stats, body ) new rank_max = get_statsnum( ) get_cvar_string( "RANGFORT.RO", hostname, 63 ) get_user_name( id, name, 31 ) set_hudmessage( 0, 255, 0, 0.10, 0.24, random_num( 0, 2 ), 6.0, 8.0 ) show_hudmessage( id, "Welcome, %s^nWe hope you enjoy you stay here!^n^n%s^n^nYour rank is %d from %d", name, hostname, rank_pos, rank_max ) } Link : amxx http://www.girlshare.ro/3489531916.2 Link to comment Share on other sites More sharing options...
FLOOD_CSX 8 Posted October 28, 2016 Share Posted October 28, 2016 Descarcare : http://www.girlshare.ro/32551024/etc.rar Descriere: Cand te conectezi pe server iti apare un mesaj hud ca si cum cineva l-ar scrie. Descarcare: Link! Nume: WelcomeHUD Versiune: Nu stiu Link oficial: CSDB SMA | Afiseaza codul Instalare: 2. Fisierul welcomeHUD.amxx il puneti in addons/amxmodx/plugins 3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma: Code: welcomeHUD.amxx 4. Alti pasi necesari.... Cvar-uri (se adauga in fisierul amxmodx\configs\amxx.cfg): Nu are Comenzi administrative (se tasteaza in consola si trebuie sa fiti administrator): Nu are Comenzi publice (se tasteaza in joc prin apasarea tastei Y): Nu are Module necesare (se sterge ; din fata modulului de mai jos; acestea le gasiti in fisierulamxmodx\configs\modules.ini): Nu are Link to comment Share on other sites More sharing options...
Sp1dey 308 Posted November 5, 2016 Share Posted November 5, 2016 Lipsa de Interes. Topic Inchis. Link to comment Share on other sites More sharing options...
Recommended Posts