Jump to content

eLfix'

Members
  • Content Count

    20
  • Joined

  • Last visited

  1. Descriere: Arata Zile/Ore/Minute jucate pe server. Nume: ore_jucate Versiune: - Autor: DragaN* Link official: delete Link de download: delete Comenzi: Comenzi publice (se tasteaza in joc prin apasarea tastei Y): /orejucate - afiseaza orele/minutele/zilele jucate pe server Cvar-uri: Cvar-uri (se adauga in fisierul amxmodx\configs\amxx.cfg): amx_comanda VALOARE - descrierea comenzii respective show_hud 0 - 0-Nu afiseaza orele in hud/ 1-afiseaza orele in hud Module necesare: - fakemeta - cstrike - .. Module necesare (se sterge ; din fata modulului de mai jos; acestea le gasiti in fisierul amxmodx\configs\modules.ini): - nVault Instalare: 1. Fisierul ore_jucate.sma il puneti in addons/amxmodx/scripting 2. Fisierul ore_jucate.amxx il puneti in addons/amxmodx/plugins 3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma: Cod: ore_jucate.amxx Imagini:(daca aveti) Cod: SPOILER: SHOW #include #include static const PLUGIN[] = "[AMXX]OreJucate", VERSION[] = "2.0", AUTHOR[] = "scosmynnnn"; new iMinutes[33],iHours[33],iDays[33],iHours2[33] new g_vault,pcvar,sync public plugin_init() { register_plugin(PLUGIN,VERSION,AUTHOR) register_cvar("statistici_pe_server",VERSION,FCVAR_SERVER | FCVAR_SPONLY) register_clcmd("say /orejucate","cmdOreJucate") g_vault = nvault_open("OreJucate") pcvar = register_cvar("show_hud","1") if(g_vault == INVALID_HANDLE) set_fail_state("Eroare la deschiderea bazei de date din vault.") sync = CreateHudSyncObj() set_task(5.0,"save_vault",_,_,_,"b") } public save_vault() { new iPlayers[32],iNum,id,i get_players(iPlayers,iNum,"ch") for(i = 0; i < iNum; i++) { id = iPlayers[i] SaveData(id) } } public client_putinserver(id) { if(!is_user_bot(id) || !is_user_hltv(id)) { LoadData(id) set_task(60.0,"hours_count",id,_,_,"b") set_task(1.0,"hud_msg",id+0x436,_,_,"b") } } public hours_count(id) { iMinutes[id]++ if(iMinutes[id] == 60) { iHours[id]++ iHours2[id]++ iMinutes[id] = 0 } if(iHours2[id] == 24) { iDays[id]++ iHours2[id] = 0 } } public hud_msg(id) { id-=0x436 switch(get_pcvar_num(pcvar)) { case 0: return case 1: { if(is_user_alive(id)) { set_hudmessage(24,237,17,0.0,0.35,0,6.0,1.5) ShowSyncHudMsg(id,sync,"---^n--------^n--------------^n--------------------^n--------------------------^n--------------------------------^nAi %i zi%s jucat%s pe server^n[%i or%s si %i minut%s]^n--------------------------------^n--------------------------^n--------------------^n--------------^n--------^n---",iDays[id],iDays[id] == 1 ? "" : "le",iDays[id] == 1 ? "a" : "e",iHours[id],iHours[id] == 1 ? "a" : "e",iMinutes[id],iMinutes[id] == 1 ? "" : "e") } } } } public cmdOreJucate(id) color(id,"!team[OreJucate]!yAi %i zi%s jucat%s pe server !team[%i or%s si %i minut%s]",iDays[id],iDays[id] == 1 ? "" : "le",iDays[id] == 1 ? "a" : "e",iHours[id],iHours[id] == 1 ? "a" : "e",iMinutes[id],iMinutes[id] == 1 ? "" : "e") public client_infochanged(id) { SaveData(id) new oldname[32],newname[32] get_user_name(id,oldname,charsmax(oldname)) get_user_info(id,"name",newname,charsmax(newname)) if(!equal(newname,oldname)) set_task(0.3,"LoadData",id) } public client_disconnect(id) { if(!is_user_bot(id) || !is_user_hltv(id)) { SaveData(id) remove_task(id) if(task_exists(id+0x436)) remove_task(id+0x436) } } public plugin_end() nvault_close(g_vault) public SaveData(id) { new name[32] get_user_name(id,name,charsmax(name)) new vaultkey[64],vaultdata[256] formatex(vaultkey,63,"%s-OreJucate",name) formatex(vaultdata,255,"%i %i %i",iMinutes[id],iHours[id],iHours2[id],iDays[id]) nvault_set(g_vault,vaultkey,vaultdata) } public LoadData(id) { new name[32] new vaultkey[64],vaultdata[256] get_user_info(id,"name",name,charsmax(name)) //credite hamleteagle,m-a ajutat cu sfaturi aici (get_user_info e mai rapid si am evitat un bug) formatex(vaultkey,63,"%s-OreJucate",name) formatex(vaultdata,255,"%i %i %i",iMinutes[id],iHours[id],iHours2[id],iDays[id]) nvault_get(g_vault,vaultkey,vaultdata,255) new minute[32],ore[32],ore2[32],zile[32] parse(vaultdata,minute,31,ore,31,ore2,31,zile,31) iMinutes[id] = str_to_num(minute) iHours[id] = str_to_num(ore) iHours2[id] = str_to_num(ore2) iDays[id] = str_to_num(zile) } stock color( const id, const input[ ], any:... ) { new count = 1, players[ 32 ] static msg[ 191 ] vformat( msg, 190, input, 3 ) replace_all( msg, 190, "!g", "^4" ) //- verde replace_all( msg, 190, "!y", "^1" ) //- galben replace_all( msg, 190, "!team", "^3" ) //- echipa replace_all( msg, 190, "!n", "^0" ) //- normal if( id ) players[ 0 ] = id; else get_players( players, count, "ch" ) { for( new i = 0; i < count; i++ ) { if( is_user_connected( players[ i ] ) ) { message_begin( MSG_ONE_UNRELIABLE, get_user_msgid( "SayText" ), _, players[ i ] ) write_byte( players[ i ] ); write_string( msg ); message_end( ); } } } }
  2. Descriere: Transforma cutitul intr-o ranga. Important nu face lag . Nume: Crowbar Versiune: 0.1 Autor: eLfix Link official: DELETE Link de download: DELETE Instalare: 1. Copiem fisierul crowbar.sma in addons\amxmodx\scripting 2. Copiem fisierul crowbar.amxx in addons\amxmodx\plugins 3. Deschidem addons/amxmodx/configs/plugins.ini si adaugam la urma : Cod: crowbar.amxx Imagini:(daca aveti) Cod: SPOILER: /* Fisier descarcat de pe ********* ! */ #include #include #define PLUGIN "Crowbar" #define VERSION "0.1" #define AUTHOR "eLfix'" #define V_MODEL "models/v_crowbar.mdl" #define W_MODEL "models/w_crowbar.mdl" #define P_MODEL "models/p_crowbar.mdl" #define KNIFE_W_MODEL "models/w_knife.mdl" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) // HL Event CurWeapon register_event("CurWeapon", "Event_CurWeapon", "be","1=1"); // FM_SetModel Fakemeta forward register_forward(FM_SetModel,"fw_setmodel"/*,1*/); } // Plugin Precache forward public plugin_precache() { // precache the required models engfunc(EngFunc_PrecacheModel,V_MODEL); engfunc(EngFunc_PrecacheModel,P_MODEL); engfunc(EngFunc_PrecacheModel,W_MODEL); } public Event_CurWeapon(id) { if(!is_user_alive(id)) return PLUGIN_CONTINUE; new weaponID = read_data(2); if(weaponID != CSW_KNIFE) return PLUGIN_CONTINUE; set_pev(id, pev_viewmodel2, V_MODEL); set_pev(id, pev_weaponmodel2, P_MODEL); return PLUGIN_CONTINUE; } public fw_setmodel(ent,const model[]) { // check if isn't a valid model if(!pev_valid(ent)) return FMRES_IGNORED; // if isn't w_knife model if(strcmp(KNIFE_W_MODEL,model) ) return FMRES_IGNORED; // get ent classname static classname[32] pev(ent,pev_classname,classname,31); if(!strcmp(classname, "weaponbox") || !strcmp(classname, "armoury_entity") || !strcmp(classname, "grenade")) { // set model engfunc(EngFunc_SetModel, ent, W_MODEL); return FMRES_SUPERCEDE; } return FMRES_IGNORED; }
  3. Salut. Vreau sa va prezin un config pentru modul HNS/DR. CFG-ul contine atat developer , bhop cat si setari avansate pentru fps si grafica jocului Counter-Strike 1.6. Singul script ce se afla in cfg este bhop. Nu exista scripturi ilegale, care va poate aduce un ban/destroy pe server. Link1: http://adf.ly/1WSLSM Link2: http://adf.ly/1WSM0N Parola: elfix001HNS Astept parerile voastre. Va multumesc.
×
×
  • Create New...