Prefix only for VIP
-
- Member
- Posts: 32
- Joined: 6 years ago
- Contact:
Prefix only for VIP
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.
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.
- Night Fury
- Mod Developer
- Posts: 677
- Joined: 7 years ago
- Contact:
As you don't want other features, edit this as you like:
https://forums.alliedmods.net/showpost. ... ostcount=3
https://forums.alliedmods.net/showpost. ... ostcount=3
-
- Member
- Posts: 32
- Joined: 6 years ago
- Contact:
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?
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?
- Night Fury
- Mod Developer
- Posts: 677
- Joined: 7 years ago
- Contact:
On Friday will be done.
-
- Member
- Posts: 32
- Joined: 6 years ago
- Contact:
And? =D where are u...
- Night Fury
- Mod Developer
- Posts: 677
- Joined: 7 years ago
- Contact:
- #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
- }
-
- Veteran Member
- Posts: 407
- Joined: 5 years ago
- Contact:
why not mark as Plugin Available ?
Is it working?
He who fails to plan is planning to fail
It's right here: viewtopic.php?f=15&t=3617
OK, then will be marked as plugin available and locked, and discussion will be in the new topic viewtopic.php?f=15&t=3617.
He who fails to plan is planning to fail
Who is online
Users browsing this forum: Google [Bot] and 1 guest