VIP scoreboard tag

Č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.
Post Reply
User avatar
laimiukas3
Moderatorius
Posts: 4569
Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:

VIP scoreboard tag

Post by laimiukas3 »

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
Untitled.png (22.53 KiB) Viewed 69706 times
Image
Image
Image

User avatar
laimiukas3
Moderatorius
Posts: 4569
Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:

Re: VIP scoreboard tag

Post by laimiukas3 »

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)}
Image
Image
Image

User avatar
psychical
Viršininkas
Posts: 2094
Joined: 2011 Mar 12 22:19
Skype: tautvydas11
Location: Linksmakalnis
Contact:

Re: VIP scoreboard tag

Post by psychical »

Dar papildomai gali pridėti check'ą ar map nėra as_* gali susibuginti ir as_ mapuose T būti VIP :D

User avatar
laimiukas3
Moderatorius
Posts: 4569
Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:

Re: VIP scoreboard tag

Post by laimiukas3 »

hm niekada nepagalvojau apie tai kas nutu as mapuose rimtai teras tampa vipu? :D
Image
Image
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest