Page 1 of 1
Prefix only for VIP
Posted: 17 Apr 2019, 09:47
by neverminddw
Tried a lot of things, still haven't stepped on the right one...
Anyone who can create a VIP tag plugin.
Ex: if (ze_get_vip_flags(id) & VIP_A) to have prefix !y[ !gVIP !y] !tplayer !y: msg
And also that it should work with Reset Score plugin.
Thank u.
Re: Prefix only for VIP
Posted: 19 Apr 2019, 05:28
by Night Fury
As you don't want other features, edit this as you like:
https://forums.alliedmods.net/showpost. ... ostcount=3
Re: Prefix only for VIP
Posted: 21 Apr 2019, 12:49
by neverminddw
Doesn't work.
Indeed, it's very very complicated and bugged.
Is it that hard to add a ^01[ ^04VIP ^01] prefix on chat to VIP_A flag users?
Re: Prefix only for VIP
Posted: 22 Apr 2019, 11:28
by Night Fury
On Friday will be done.
Re: Prefix only for VIP
Posted: 26 Apr 2019, 22:14
by neverminddw
And? =D where are u...
Re: Prefix only for VIP
Posted: 16 Jun 2019, 14:32
by Night Fury
#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")
}
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
}
Re: Prefix only for VIP
Posted: 03 Jul 2019, 14:52
by Muhammet20
why not mark as Plugin Available ?
Re: Prefix only for VIP
Posted: 03 Jul 2019, 15:04
by Raheem
Muhammet20 wrote: ↑4 years ago
why not mark as Plugin Available ?
Is it working?
Re: Prefix only for VIP
Posted: 03 Jul 2019, 15:12
by sPe3doN
Muhammet20 wrote: ↑4 years ago
why not mark as Plugin Available ?
It's right here:
viewtopic.php?f=15&t=3617
Re: Prefix only for VIP
Posted: 03 Jul 2019, 15:14
by Raheem
OK, then will be marked as plugin available and locked, and discussion will be in the new topic
viewtopic.php?f=15&t=3617.