Page 1 of 1

VIP TAG

Posted: 19 Jun 2019, 14:45
by Spir0x
VIP Tag

Description:
  • A new plugin for VIPs, It's VIP Tag.
    This plugin will give VIPs who have Flag "F" a VIP Prefix, It's Specially for Happy Hours. so at 00:00 player can get a prefix.
Installation & Instructions:
  • Simply install it like any plugin and Don't forget to add flag "f" like: ze_happy_hours_vip_flags "f" into your ze_vips.ini
Downloads:

Re: VIP TAG

Posted: 19 Jun 2019, 18:40
by Muhammet20
Spir0x wrote: 4 years ago
VIP Tag

Description:
  • A new plugin for VIPs, It's VIP Tag.
    This plugin will give VIPs who have Flag "F" a VIP Prefix, It's Specially for Happy Hours. so at 00:00 player can get a prefix.
Installation & Instructions:
  • Simply install it like any plugin and Don't forget to add flag "f" like: ze_happy_hours_vip_flags "f" into your ze_vips.ini

    Downloads:
I already have it but,
great work

Re: VIP TAG

Posted: 20 Jun 2019, 15:15
by Night Fury
Can you tell me what the difference is between your code and THIS CODE

Re: VIP TAG

Posted: 21 Jun 2019, 08:54
by Raheem
Jack GamePlay wrote: 4 years ago Can you tell me what the difference is between your code and THIS CODE
Like he republished it as a plugin only.

Will be tagged as approved, by this it will be easy to be find than in public requests section.

Re: VIP TAG

Posted: 21 Jun 2019, 13:08
by Spir0x
I'm just trying to post all lost codes in public section to Gameplay section. that's it

Re: VIP TAG

Posted: 22 Jul 2019, 18:41
by Luxurious
That`s Have Problem when i type any thing

!n[!gVIP!n] !gNick!n: !t!n[!gVIP!n] !gNick!n: !t
Nick :

Re: VIP TAG

Posted: 22 Jul 2019, 18:57
by Spir0x
idk bro, ask the author of it (Jack Gameplay).. i justed repost it here in general topic. becuz it was in public requests.

Re: VIP TAG

Posted: 24 Jul 2019, 10:57
by Night Fury
Luxurious wrote: 4 years ago That`s Have Problem when i type any thing

!n[!gVIP!n] !gNick!n: !t!n[!gVIP!n] !gNick!n: !t
Nick :
Try this code:

Code: Select all

#include <zombie_escape>
#include <ze_vip>
 
#define VIP_PREFIX_FLAG VIP_A
#define VIP_PREFIX_TAG "!n[!gVIP!n] "
 
public plugin_init()
{
    register_plugin("[ZE] VIP Prefix", "1.0", "Jack")
    register_clcmd("say", "cmd_say")
    register_message(get_user_msgid("SayText"), "BlockDoubleMessages")
}
 
public BlockDoubleMessages()
{
    return PLUGIN_HANDLED
}

 
public cmd_say(id)
{
    if (!is_user_connected(id))
        return
 
    if (ze_get_vip_flags(id) & VIP_PREFIX_FLAG)
    {
        new szMessage[256], szName[32]
        read_args(szMessage, charsmax(szMessage))
        remove_quotes(szMessage)
        trim(szMessage)
        get_user_name(id, szName, charsmax(szName))
 
        for (new iChar = 0; iChar <= charsmax(szMessage); iChar++)
        {
            if (szMessage[iChar] == '^2' || szMessage[iChar] == '^3' || szMessage[iChar] == '^4')
                szMessage[iChar] = '^1'
        }
 
        if (!is_valid_msg(szMessage))
            return
 
        formatex(szMessage, charsmax(szMessage), "%s!g%s!n: !t%s", VIP_PREFIX_TAG, szName, szMessage)
 
        for (new i = 1; i <= get_member_game(m_nMaxPlayers); i++)
        {
            if (!is_user_connected(i))
                continue
 
            message_begin(MSG_ONE, get_user_msgid("SayText"), {0, 0, 0}, i)
            write_byte(id)
            write_string(szMessage)
            message_end()
        }
    }
}
 
bool:is_valid_msg(const szMessage[])
{
    if (szMessage[0] == '@' || !strlen(szMessage) || szMessage[0] == '/' || szMessage[0] == '#')
        return false
       
    return true
}