NO AWP

Šiame forume vartotojai gali prašyti jiems reikiamo plugino.
Forum rules
Šiame forume galite siūlyti idėjas ar prašyti jums reikalingų pluginų. Jei kas nors pradės jį kurti, tai pasirašys Jūsų sukurtoje temoje. Niekada nepykite, jei niekas neatsako į Jūsų prašymą. Gal tai tiesiog per sudėtinga, arba reikalauja per daug darbo.
Post Reply
Vygandas69
Jau perkopė 10 žinučių ribą !
Posts: 13
Joined: 2014 Jan 31 22:55
Skype: kenn.lt

NO AWP

Post by Vygandas69 »

Sveiki, noreciau paprasyti kad kas nors paredaguotu plugin. Radau alliendmoder. Jo esme kad AWP duotu tik vipams, taciau neduoda ir vipams/admin. Stai kodas :

Code: Select all

#include <amxmodx>#include <amxmisc>#define ADMIN_LEVEL ADMIN_CHAT public check_awp() {     if (get_cvar_num("sv_noawp") != 1)         return PLUGIN_CONTINUE         new id = read_data(0)     if(get_cvar_num("sv_allow_admin_awp") == 1 && access(id, ADMIN_LEVEL))    {        return PLUGIN_CONTINUE    }     client_print(id, print_center, "AWP's are not allowed. Find a real gun!")     client_cmd(id, "weapon_g3sg1;wait;wait;wait;drop")     return PLUGIN_CONTINUE } public check_g3sg1() {     if (get_cvar_num("sv_nog3sg1") != 1)         return PLUGIN_CONTINUE         new id = read_data(0)         if(get_cvar_num("sv_allow_admin_auto") == 1 && access(id, ADMIN_LEVEL))    {        return PLUGIN_CONTINUE    }     client_print(id, print_center, "G3SG1's are not allowed. Find a real gun!")     client_cmd(id, "weapon_g3sg1;wait;wait;wait;drop")     return PLUGIN_CONTINUE } public check_sg550() {     if (get_cvar_num("sv_nosg550") != 1)         return PLUGIN_CONTINUE         new id = read_data(0)         if(get_cvar_num("sv_allow_admin_sg550") == 1 && access(id, ADMIN_LEVEL))    {        return PLUGIN_CONTINUE    }     client_print(id, print_center, "SG550's are not allowed. Find a real gun!")     client_cmd(id, "weapon_g3sg1;wait;wait;wait;drop")     return PLUGIN_CONTINUE }public plugin_init(){   register_plugin("Drop Awp","1.1c","Dynamite")   register_event("WeapPickup","check_awp","b","1=18")   register_event("WeapPickup","check_g3sg1","b","1=24")   register_event("WeapPickup","check_sg550","b","1=13")   register_cvar("sv_allow_admin_g3sg1", "0")   register_cvar("sv_allow_admin_sg550", "0")    register_cvar("sv_allow_admin_awp", "0")   register_cvar("sv_nog3sg1","1")   register_cvar("sv_nosg550","1")    register_cvar("sv_noawp","1")    return PLUGIN_CONTINUE} 

User avatar
beast
AMX Mod X ekspertai
Posts: 509
Joined: 2011 Jan 08 18:44
Skype: thefurious4
Contact:

Re: NO AWP

Post by beast »

Ką reiškia "AWP duotų"? Tu aiškiau rašyk, nes velnias žino ko tu čia nori. Pagal idėją (nors kode abejotinų vietų yra), tavo pateiktas kodas turėtų neleisti pakelti nurodytų ginklų nuo žemės, jei žaidėjas neturi tam tikro flag. Ar tau to ir reikia?

Vygandas69
Jau perkopė 10 žinučių ribą !
Posts: 13
Joined: 2014 Jan 31 22:55
Skype: kenn.lt

Re: NO AWP

Post by Vygandas69 »

Ne. man reikia kad TIK vipai galetu is CSDM menu imt awp ir kitus zoom ginklus. O kitiems player's , parasytu kad jiems negalima. Tai sitas pluginas ir ismeta tokius zodzius ir dropina awp, taciau tai daro ir VIPAMS. Buciau dekingas uz pataisymus

User avatar
beast
AMX Mod X ekspertai
Posts: 509
Joined: 2011 Jan 08 18:44
Skype: thefurious4
Contact:

Re: NO AWP

Post by beast »

Code: Select all

sv_allow_admin_g3sg1 1sv_allow_admin_sg550 1sv_allow_admin_awp 1
Ir nepamiršk #define ADMIN_LEVEL pasikeist į tokį, kokį vipai turi.

Beje kur yra weapon_g3sg1;wait;wait;wait;drop dviejose vietose neteisingi ginklų pavadinimai nurodyti.

Vygandas69
Jau perkopė 10 žinučių ribą !
Posts: 13
Joined: 2014 Jan 31 22:55
Skype: kenn.lt

Re: NO AWP

Post by Vygandas69 »

"Ir nepamiršk #define ADMIN_LEVEL pasikeist į tokį, kokį vipai turi." O kaip paziureti koki turi ir kaip darasyt? naudoju /top15 vip plugin.ten .sma ner, tai nezinau kaip paziuret. Visa kita pakeiciau.

-- 2014 Vas 02 18:54 --

gal galetum tu pakoreaguot truputeli koda? Labai stipriai padetum :)

User avatar
beast
AMX Mod X ekspertai
Posts: 509
Joined: 2011 Jan 08 18:44
Skype: thefurious4
Contact:

Re: NO AWP

Post by beast »

Kai bus serveryje vipas, parašyk amx_who į consolę. Ir nukopijuok eilutę ties jo nicku.

Vygandas69
Jau perkopė 10 žinučių ribą !
Posts: 13
Joined: 2014 Jan 31 22:55
Skype: kenn.lt

Re: NO AWP

Post by Vygandas69 »

Pas mane kazkas susibugine gal. Nes ikeliau is amxmodx.lt /TOP15 vip plugin. Ir esme kad uzdejau kad butu ant IP rank, bet idomiausia , kad kai mapas pasikeicia, jau neberodo jog tas zmogus, kuris yra /top15 vipas, bei keisdamas nick nieko neivyksta, rodo kad esi top15 . Ir pakeites nick raso kad 0 kill 0 death, lyg is naujo rank keltusi... Painu. Gal butu patarimu?

-- 2014 Vas 03 19:31 --

BeasT tavo top15 vip plugin ir naudoju. Tai turetum zinot kas kaip

User avatar
beast
AMX Mod X ekspertai
Posts: 509
Joined: 2011 Jan 08 18:44
Skype: thefurious4
Contact:

Re: NO AWP

Post by beast »

Privėlei tu čia normaliai...
Mano pluginas čia nė prie ko. Pirma susitvarkyk su top15 statistika. Siūlyčiau, išjungus serverį, švariai įsidiegti "Counter-Strike Addon" iš čia: http://www.amxmodx.org/downloads.php . Ir per amxx.cfg nusistatyti: csstats_rank 2

O jei kyla klausimų apie mano pluginą, tai klausk toje temoje, o ne čia.

Vygandas69
Jau perkopė 10 žinučių ribą !
Posts: 13
Joined: 2014 Jan 31 22:55
Skype: kenn.lt

Re: NO AWP

Post by Vygandas69 »

csstats_rank 2 jau yra irasyta. Ne nezinau, gal kazkas uzsibugine. :)

-- 2014 Vas 03 22:19 --

Code: Select all

// AMX Mod X Configuration Fileecho Executing AMX Mod X Configuration File // Default access for all non admin players (see users.ini for access details)//// Default value: "z"amx_default_access "z" // Name of setinfo which should store a password on a client (you should change this)// Note: Always prefix the field with an underscore (aka: "_")// (Example: setinfo _pw "password")//// Default value: "_pw"amx_password_field "_pw" // Mode of logging to a server// 0 - disable logging, players won't be checked (and access won't be set)// 1 - normal mode which obey flags set in accounts// 2 - kick all players not on list//// Default value: 1amx_mode 1 // Show admins activity// 0 - disabled// 1 - show without admin name// 2 - show with name// 3 - show name only to admins, hide name from normal users// 4 - show name only to admins, show nothing to normal users// 5 - hide name only to admins, show nothing to normal users//// Default value: 2amx_show_activity 2 // Frequency in seconds and text of scrolling message//// Default value: "91.211.245.180 ADD TO FAVOURITE" 600amx_scrollmsg "Serverio Svetaine : WWW.KeNN.RIP.LT" 600amx_scrollmsg "/TOP15 GAUNA NEMOKAMUS VIP"600 // Center typed colored messages (last parameter is a color in RRRGGGBBB format)//// Default values: "" "000255100"amx_imessage "/TOP15 GAUNA NEMOKAMUS VIP" "000100255"amx_imessage "Atsibodo fragint? Apsilankyk www.KeNN.RIP.lt Counter-strike portalas" "000100255"amx_imessage "/TOP15 GAUNA NEMOKAMUS VIP" "000100300"amx_imessage "Viskas ko reikia tavo counter-strike 1.6 zaidimui www.KeNN.RIP.lt" "000100300" // Frequency in seconds of colored messages//// Default value: 180amx_freq_imessage 180 // Ban times for the main ban menu (amx_banmenu)// Use 0 for permanent ban// Default values: 0 5 10 15 30 45 60amx_plmenu_bantimes 0 5 10 15 30 45 60 // Max temporary ban time (admins with ADMIN_BAN_TEMP access can't ban more than this time)// time in minutes, 60 is 1 hour, 120 is 2 hours, 1440 is 1 day, and 10080 is 1 week// Default value: 4320 aka 3 daysamx_tempban_maxtime 4320 // Slap damage amounts for the main slap menu (amx_slapmenu)// Slay is automaticall inserted as the last option// Default values: 0 1 5amx_plmenu_slapdmg 0 1 5 // Set in seconds how fast players can chat (chat-flood protection)//// Default value: 0.75amx_flood_time 0.75 // Amount of slots to reserve.//// Default value: 0amx_reservation 0 // If you set this to 1, you can hide slots on your server.// If server "full" of public slots and slots hidden, you must manually connect with connect console command//// Default value: 0amx_hideslots 0 // Displaying of time remaining// a - display white text on bottom// b - use voice// c - don't add "remaining" (only in voice)// d - don't add "hours/minutes/seconds" (only in voice)// e - show/speak if current time is less than this set in parameter//// Default value: "ab 1200" "ab 600" "ab 300" "ab 180" "ab 60" "bcde 11"amx_time_display "ab 1200" "ab 600" "ab 300" "ab 180" "ab 60" "bcde 11" // Announce "say thetime" and "say timeleft" with voice, set to 0 to disable.//// Default value: 1amx_time_voice 1 // Minimum delay in seconds between two voting sessions//// Default value: 10amx_vote_delay 10 // How long voting session goes on//// Default value: 10amx_vote_time 10 // Display who votes for what option, set to 0 to disable, 1 to enable.//// Default value: 1amx_vote_answers 1 // Some ratios for voting success // Default value: 0.40amx_votekick_ratio 0.40 // Default value: 0.40amx_voteban_ratio 0.40 // Default value: 0.40amx_votemap_ratio 0.40 // Default value: 0.02amx_vote_ratio 0.02 // Max. time to which map can be extended//// Default value: 90amx_extendmap_max 90 // Step for each extending//// Default value: 15amx_extendmap_step 15 // If you set this to 0, clients cannot chose their language, instead they use// whatever language the server is configured to use.//// Default value: 1amx_client_languages 1 // Plugin Debug mode// 0 - No debugging (garbage line numbers)// 1 - Plugins with "debug" option in plugins.ini are put into debug mode// 2 - All plugins are put in debug mode// Note - debug mode will affect JIT performance//// Default value: 1amx_debug 1 // Plugin MultiLingual Debug// To debug a language put its 2 letter code between quotes ("en", "de", etc)// "" means disabled//// Default value: ""amx_mldebug "" //// Beginning of Counter-Strike package specific configurations.// // Rank mode// 0 - by nick// 1 - by authid // 2 - by ip//// Default value: 1csstats_rank 2 // Max size of the stats file//// Default value: 3500csstats_maxsize 3500 // Whether or not to rank bots with csstats - set to 1 to rank bots, 0 otherwise.//// Default value: 0csstats_rankbots 0 // Duration of HUD-statistics//// Default value: 12.0amx_statsx_duration 12.0 // HUD-statistics display limit relative round freeze end// Negative time will clear the HUD-statstics before the round freeze time has ended//// Default value: -2.0
stai mano amxx.cfg Realiai turetu ant IP /rank ir nesvarbu koki nick bepakeisi. Nes dabar losi su vienu "nicku" - patenki top 15, tada jau nick nepasikeicia. O jeigu ir pasikeicia tai ir is naujo /rank keli... Painiava didele

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest