Plugin Available Prefix only for VIP

Unpaid Requests, Public Plugins
Locked
neverminddw
Member
Member
Posts: 30
Joined: 2 Years Ago
Has thanked: 0
Been thanked: 2 times
Contact:

Prefix only for VIP

#1

Post by neverminddw » 5 Months Ago

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.

User avatar
Mohamed Alaa
Mod Developer
Mod Developer
Egypt
Posts: 609
Joined: 2 Years Ago
Location: Egypt
Has thanked: 34 times
Been thanked: 48 times
Age: 19
Contact:

#2

Post by Mohamed Alaa » 5 Months Ago

As you don't want other features, edit this as you like:
https://forums.alliedmods.net/showpost. ... ostcount=3

[ Post made via Android ]
Want your own mod edition? PM me.
Accepting web projects.

neverminddw
Member
Member
Posts: 30
Joined: 2 Years Ago
Has thanked: 0
Been thanked: 2 times
Contact:

#3

Post by neverminddw » 5 Months Ago

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?

User avatar
Mohamed Alaa
Mod Developer
Mod Developer
Egypt
Posts: 609
Joined: 2 Years Ago
Location: Egypt
Has thanked: 34 times
Been thanked: 48 times
Age: 19
Contact:

#4

Post by Mohamed Alaa » 5 Months Ago

On Friday will be done.

[ Post made via Android ]
Want your own mod edition? PM me.
Accepting web projects.

neverminddw
Member
Member
Posts: 30
Joined: 2 Years Ago
Has thanked: 0
Been thanked: 2 times
Contact:

#5

Post by neverminddw » 4 Months Ago

And? =D where are u...

User avatar
Mohamed Alaa
Mod Developer
Mod Developer
Egypt
Posts: 609
Joined: 2 Years Ago
Location: Egypt
Has thanked: 34 times
Been thanked: 48 times
Age: 19
Contact:

#6

Post by Mohamed Alaa » 3 Months Ago

  1. #include <zombie_escape>
  2. #include <ze_vip>
  3.  
  4. #define VIP_PREFIX_FLAG VIP_A
  5. #define VIP_PREFIX_TAG "!n[!gVIP!n] "
  6.  
  7. public plugin_init()
  8. {
  9.     register_plugin("[ZE] VIP Prefix", "1.0", "Jack")
  10.     register_clcmd("say", "cmd_say")
  11. }
  12.  
  13. public cmd_say(id)
  14. {
  15.     if (!is_user_connected(id))
  16.         return
  17.  
  18.     if (ze_get_vip_flags(id) & VIP_PREFIX_FLAG)
  19.     {
  20.         new szMessage[256], szName[32]
  21.         read_args(szMessage, charsmax(szMessage))
  22.         remove_quotes(szMessage)
  23.         trim(szMessage)
  24.         get_user_name(id, szName, charsmax(szName))
  25.  
  26.         for (new iChar = 0; iChar <= charsmax(szMessage); iChar++)
  27.         {
  28.             if (szMessage[iChar] == '^2' || szMessage[iChar] == '^3' || szMessage[iChar] == '^4')
  29.                 szMessage[iChar] = '^1'
  30.         }
  31.  
  32.         if (!is_valid_msg(szMessage))
  33.             return
  34.  
  35.         formatex(szMessage, charsmax(szMessage), "%s!g%s!n: !t%s", VIP_PREFIX_TAG, szName, szMessage)
  36.  
  37.         for (new i = 1; i <= get_member_game(m_nMaxPlayers); i++)
  38.         {
  39.             if (!is_user_connected(i))
  40.                 continue
  41.  
  42.             message_begin(MSG_ONE, get_user_msgid("SayText"), {0, 0, 0}, i)
  43.             write_byte(id)
  44.             write_string(szMessage)
  45.             message_end()
  46.         }
  47.     }
  48. }
  49.  
  50. bool:is_valid_msg(const szMessage[])
  51. {
  52.     if (szMessage[0] == '@' || !strlen(szMessage) || szMessage[0] == '/' || szMessage[0] == '#')
  53.         return false
  54.        
  55.     return true
  56. }
Want your own mod edition? PM me.
Accepting web projects.

User avatar
Muhammet20
Veteran Member
Veteran Member
Syria
Posts: 391
Joined: 1 Year Ago
Location: Turkey
Has thanked: 36 times
Been thanked: 5 times
Age: 13
Contact:

#7

Post by Muhammet20 » 2 Months Ago

why not mark as Plugin Available ?
.::Kaya Gaming || Never Give Up || Zombie Escape::. [Server is Under The Work]
https://kaya-gaming.ga/

I just believe in two things, First thing is who i see in the mirror, second thing is who i don't see in the sky.

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1962
Joined: 2 Years Ago
Location: Egypt
Has thanked: 32 times
Been thanked: 108 times
Age: 21
Contact:

#8

Post by Raheem » 2 Months Ago

Muhammet20 wrote:
2 Months Ago
why not mark as Plugin Available ?
Is it working?
You don't know? Learn and you will know.

User avatar
sPe3doN
Senior Member
Senior Member
Algeria
Posts: 202
Joined: 2 Years Ago
Has thanked: 14 times
Been thanked: 7 times
Age: 20
Contact:

#9

Post by sPe3doN » 2 Months Ago

Muhammet20 wrote:
2 Months Ago
why not mark as Plugin Available ?
It's right here: viewtopic.php?f=15&t=3617

[ Post made via Android ]

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1962
Joined: 2 Years Ago
Location: Egypt
Has thanked: 32 times
Been thanked: 108 times
Age: 21
Contact:

#10

Post by Raheem » 2 Months Ago

OK, then will be marked as plugin available and locked, and discussion will be in the new topic viewtopic.php?f=15&t=3617.
You don't know? Learn and you will know.

Locked

Who is online

Users browsing this forum: No registered users and 2 guests