Čia galite paskelbti apie naudingus pluginus, kuriuos radote internete ar kur kitur ir manote, kad jie bus naudingi kitiems. Savo kurtus pluginus prašome skelbti "Naujai pateikti pluginai" forume.
Forum rules
1. Pluginai turi turėti išsamius aprašymus.
2. Aprašymai turi būti lietuvių kalba.
laimiukas3
Moderatorius
Posts: 4569 Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:
Post
by laimiukas3 » 2019 Feb 01 19:05
Code: Select all
#include <amxmodx>#include <reapi> public plugin_init(){ if(!is_regamedll()) set_fail_state("Need ReGameDLL"); if(!get_member_game(m_bMapHasVIPSafetyZone)) register_message(get_user_msgid("ScoreAttrib"), "msgScoreAttrib");} public msgScoreAttrib(){ if(get_user_flags(get_msg_arg_int(1)) & ADMIN_LEVEL_H && !get_msg_arg_int(2)) set_msg_arg_int(2, ARG_BYTE, (1<<2));}
Attachments
Untitled.png (22.53 KiB) Viewed 46260 times
laimiukas3
Moderatorius
Posts: 4569 Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:
Post
by laimiukas3 » 2019 Feb 16 07:29
Infamous2017 wrote: need regamedll ?? ? what about linux ?
of course reapi module don't work without regamedll and yes its work whit windows and linux < this only ReHLDS
if your server HLDS try this
Code: Select all
#include <amxmodx> #define SCOREATTRIB_NONE 0#define SCOREATTRIB_VIP (1<<2)#define SCOREATTRIB_DEAD (1<<0)#define SCOREATTRIB_BOMB (1<<1) #define VIP_ACCESS ADMIN_LEVEL_H public plugin_init() register_message(get_user_msgid("ScoreAttrib"), "MessageScoreAttrib") public MessageScoreAttrib(iMsgID, iDest, iReceiver){ new iPlayer = get_msg_arg_int(1) if (is_user_connected(iPlayer) && (get_user_flags(iPlayer) & VIP_ACCESS)) set_msg_arg_int(2, ARG_BYTE, is_user_alive(iPlayer) ? SCOREATTRIB_VIP : SCOREATTRIB_DEAD)}
psychical
Viršininkas
Posts: 2094 Joined: 2011 Mar 12 22:19
Skype: tautvydas11
Location: Linksmakalnis
Contact:
Post
by psychical » 2019 Feb 17 17:18
Dar papildomai gali pridėti check'ą ar map nėra as_* gali susibuginti ir as_ mapuose T būti VIP
laimiukas3
Moderatorius
Posts: 4569 Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:
Post
by laimiukas3 » 2019 Feb 18 08:49
hm niekada nepagalvojau apie tai kas nutu as mapuose rimtai teras tampa vipu?
Users browsing this forum: No registered users and 1 guest