Jump to content

Search the Community

Showing results for tags 'plugin welcome message'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Administrativ
    • Forum
    • Zona utilizatorilor
    • Afiliere
    • OldGods - It's fun to be a GOD! ~ Steam Group
    • OldGods - It's fun to be a GOD! ~ GameTracker.com Group
  • Serverele comunitatii
    • TS.OLDGODS.RO
    • CS.OLDGODS.RO # CLASIC
    • RESPAWN.OLDGODS.RO # RESPAWN
    • Servere MIX Counter-Strike 1.6
    • MTA.OLDGODS.RO - Multi Theft Auto: San Andreas
  • Echipe OldGods
    • Dota 2 - EVENING DESTROYERS
  • General
    • Design zone
    • Social
    • Gaming, Multimedia & Tehnologie
    • Resurse jocuri
  • Arhiva
    • Arhiva generala

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Server preferat

Found 2 results

  1. Darian433

    1. Nume plugin: Welcome Message / Welcome info hud v2.0 2. Autor & Versiune: BaD CopY / necunoscuta 3. Comenzi: - 4. Cvar: - 5. Alte detalii: Acest plugin va afisat un mesaj dHud (pe ecran) de bun venit fiecarui jucator, acesta contine si cateva informatii. (vezi poza mai jos). 6. Link download: /* Welcome Message with three colors by [BaD CopY */ #include <amxmodx> #include <amxmisc> #include <csx> #include <csstats> #include <nvault> #include <dhudmessage> #define PLUGIN "Welcome Message" #define VERSION "1.0" #define AUTHOR "[BaD CopY" new gTime[33] new gVault new hostname[64] public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) gVault = nvault_open("TIME") } public client_authorized(id) { loaddata(id) } public client_disconnect(id) { gTime[id] += get_user_time(id) savedata(id) } public client_putinserver(id) { if(is_user_bot(id)) return set_task(10.0, "welcomeHUD", id) set_task(10.0, "hostHUD", id) set_task(5.0, "adminHUD", id) } public welcomeHUD(id) { new stats[8], body[8], nick[32], hostname[64] new rank_pos = get_user_stats(id, stats, body) new rank_max = get_statsnum() get_user_name(id, nick, 31) get_cvar_string("hostname",hostname,63) new iTimeMins = gTime[id] / 60 static Deaths = 0, Kills = 0, Float:Ratio = 0.0 Deaths = stats[1], Kills = stats[0], Ratio = Deaths == 0 ? (float(Kills)) : (float(Kills) / float(Deaths)) set_dhudmessage(0, 255, 0, 0.03, 0.30, 2, 6.0, 8.0 ) show_dhudmessage(id, "Welcome, %s^nRank: %d of %d^nKills: %d Deaths: %d KPD: %.2f^nOnline: %i m^nEnjoY!", nick,rank_pos,rank_max,stats[0], stats[1], Ratio,iTimeMins) } stock savedata(id) { new AuthId[65] get_user_authid(id, AuthId, charsmax(AuthId)) new VaultKey[64], VaultData[256] format(VaultKey, 63, "%s-TIME", AuthId) format(VaultData, 254, "%i", gTime[id]) nvault_set(gVault, VaultKey, VaultData) return PLUGIN_CONTINUE } stock loaddata(id) { new AuthID[35] get_user_authid(id,AuthID,charsmax(AuthID )) new vaultkey[64],vaultdata[256] format(vaultkey,63,"%s-TIME" ,AuthID) format(vaultdata,255,"%i",gTime[id]) nvault_get(gVault,vaultkey,vaultdata,charsmax (vaultdata)) new Time[33] parse(vaultdata, Time, charsmax(Time)) gTime[id] = str_to_num(Time) } public hostHUD(id) { get_cvar_string("hostname", hostname, 63) set_dhudmessage(212, 42, 255, 0.03, 0.5, 2, 6.0, 10.0) show_dhudmessage(id, "%s^nDon't forget to add IP to your favourites!", hostname) } public adminHUD(id) { if (is_user_admin(id)) { set_dhudmessage(0, 255, 255, 0.03, 0.75, 2, 6.0, 3.0); show_dhudmessage(id, "You are now Administrator!"); } } 7. Poze: Sursa: AlliedMods
  2. 1. Nume plugin: Welcome Message (dhudmessage) 2. Autor & Versiune: falseq / 1.0 3. Comenzi: - 4. Cvar: 5. Alte detalii: Cu ajutorul acestui plugin puteti adauga un mesaj care va fi afisat fiecarui jucator in parte in momentul in care se conecteaza, acest mesaj se poate customiza din fisierul de configurare (welcome_msg.ini) cu orice doriti. 6. Link download: ATENTIE! Acest plugin se compileaza cu AMXMODX 1.8.2! Versiunile mai noi nu functioneaza. - functioneaza perfect pe reHLDS (testat). /* 1.0: release cvar: mchat_displaymsg [CVAR][Default: 15.0][Cat sa timp sa tina mesajul] */ #include < amxmodx > #include < amxmisc > #include < dhudmessage > #define PLUGIN_NAME "dhudMessage" #define PLUGIN_VERSION "1.0" #define PLUGIN_AUTHOR "falseq" new g_File[ 128 ], g_Text[ 256 ]; new g_HudDisplay; // Daca doresti ca mesajul sa contina si numele utilizatorului, nu modifici. Daca nu vrei, pui in fata //, gen //#define SHOW_NAME #define SHOW_NAME /* ============================== => Red Green Blue ====================||============= */ #define RRR 50 /* RED */ #define GGG 50 /* GREEN */ #define BBB 130 /* BLUE */ public plugin_init( ) { register_plugin( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR ); register_cvar( "dhudmsg_author", PLUGIN_AUTHOR, FCVAR_SERVER | FCVAR_SPONLY ); set_cvar_string( "dhudmsg_author", PLUGIN_AUTHOR ); g_HudDisplay = register_cvar( "mchat_displaymsg", "15.0" ); } public plugin_cfg( ) { get_configsdir( g_File, sizeof( g_File ) -1 ); formatex( g_File, sizeof( g_File ) -1, "%s/welcome_msg.ini", g_File ); if( !file_exists( g_File ) ) { write_file( g_File, "^"Welcome message^"", -1 ); } set_task( 3.0, "openfile" ); } public openfile( ) { new szFile = fopen( g_File, "r" ); if( !szFile ) return; new szData[ 256 ]; while( !feof( szFile ) ) { fgets( szFile, szData, sizeof( szData ) -1 ); copy( g_Text, sizeof( g_Text ) -1, szData ); break; } fclose( szFile ); return; } public client_putinserver( id ) { set_task( 2.0, "showmsg", id ); } public showmsg( id ) { new szName[ 32 ]; get_user_name( id, szName, sizeof( szName ) -1 ); #if defined SHOW_NAME set_dhudmessage( RRR, GGG, BBB, -1.0, 0.35, 0, get_pcvar_float( g_HudDisplay ) ); show_dhudmessage( id, "[ %s ] %s", szName, g_Text ); #else set_dhudmessage( RRR, GGG, BBB, -1.0, 0.35, 0, get_pcvar_float( g_HudDisplay ) ); show_dhudmessage( id, "%s", g_Text ); #endif } In folderul configs se creeaza un fisier cu numele "welcome_msg.ini" - de aici setati mesajul de bun venit (WELCOME TO OUR SERVER). 7. Poze: Sursa: extreamCS
×
×
  • Create New...