Available Big request of VIP plugin

Unpaid Requests, Public Plugins
Post Reply
czirimbolo
Veteran Member
Veteran Member
Poland
Posts: 598
Joined: 7 years ago
Contact:

Big request of VIP plugin

#1

Post by czirimbolo » 5 years ago

Hello, I have a huge request of VIP plugin. Its really important to me bacause my server needs this. Anyway, below are the 'instuctions'
I use vip plugin from this forum of course:

I was looking for these guns long time so please take it seriously.
Spoiler!
VIP:
- double jump
- parachute
- unlimited ammo without reloading (but vip player need to buy it for coins)
- little bit more faster than normal, but just a little bit (example, normal player's speed is 200 so VIP speed is like 220)
- more dmg by weapons
- extra guns (player need to buy it for coins):
Avalance
tornado
janus 3
skull 11
tau cannon
https://www75.zippyshare.com/v/oLXIDcpP/file.html

and extra addons for zombie VIP:
- jump grenade ----> https://www80.zippyshare.com/v/ROsZG2Np/file.html
- concussion grenade https://forums.alliedmods.net/showthread.php?t=113328


Also, I would like guns only FOR ADMINS:
https://www108.zippyshare.com/v/ySfuRpW1/file.html
Please, can somebody help me? I can even pay for that because I need it really quick (till Sunday would be good)
Image

Rain1153
Senior Member
Senior Member
India
Posts: 278
Joined: 6 years ago
Contact:

#2

Post by Rain1153 » 5 years ago

the zombie plugins are already available viewtopic.php?f=14&t=2786 and viewtopic.php?p=5233#p5233
and viewtopic.php?f=17&t=2751
LOL

czirimbolo
Veteran Member
Veteran Member
Poland
Posts: 598
Joined: 7 years ago
Contact:

#3

Post by czirimbolo » 5 years ago

Its not the same
Image

Rain1153
Senior Member
Senior Member
India
Posts: 278
Joined: 6 years ago
Contact:

#4

Post by Rain1153 » 5 years ago

well you can change it according to your desire
LOL

czirimbolo
Veteran Member
Veteran Member
Poland
Posts: 598
Joined: 7 years ago
Contact:

#5

Post by czirimbolo » 5 years ago

Any coders can help?
Image

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#6

Post by Raheem » 5 years ago

OK, for weapons post every weapon as a request to be converted to ZE, or if you can do it so it will be great.

I'll try help in other things if i got time, these things is simple and already made most of them.
He who fails to plan is planning to fail

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#7

Post by Raheem » 5 years ago

1. Parachute & Multijump 2. Unlimited clip extra-item
  • You can change the flag from: ze_set_item_vip(g_itemid_infammo, "VIP_A") or change it from ze_extraitems.ini after you start the plugin. For more info read: Extra-Items For VIP
    1. #include <zombie_escape>
    2.  
    3. new const g_item_name[] = {"Unlimited Clip \r(One Round)"}
    4. const g_item_cost = 10
    5.  
    6. // CS Offsets
    7. #if cellbits == 32
    8. const OFFSET_CLIPAMMO = 51
    9. #else
    10. const OFFSET_CLIPAMMO = 65
    11. #endif
    12. const OFFSET_LINUX_WEAPONS = 4
    13.  
    14. // Max Clip for weapons
    15. new const MAXCLIP[] = { -1, 13, -1, 10, 1, 7, -1, 30, 30, 1, 30, 20, 25, 30, 35, 25, 12, 20,
    16.             10, 30, 100, 8, 30, 30, 20, 2, 7, 30, 30, -1, 50 }
    17.  
    18. new g_itemid_infammo, g_has_unlimited_clip[33]
    19.  
    20. public plugin_init()
    21. {
    22.     register_plugin("[ZE] Extra: Unlimited Clip", "1.0", "MeRcyLeZZ")
    23.    
    24.     g_itemid_infammo = ze_register_item(g_item_name, g_item_cost, 0)
    25.     ze_set_item_vip(g_itemid_infammo, "VIP_A")
    26.  
    27.     register_message(get_user_msgid("CurWeapon"), "message_cur_weapon")
    28. }
    29.  
    30. public ze_select_item_pre(id, itemid)
    31. {
    32.     // Return Available and we will block it in Post, So it dosen't affect other plugins
    33.     if (itemid != g_itemid_infammo)
    34.         return ZE_ITEM_AVAILABLE
    35.    
    36.     // Available for Humans only, So don't show it for zombies
    37.     if (ze_is_user_zombie(id))
    38.         return ZE_ITEM_DONT_SHOW
    39.    
    40.     return ZE_ITEM_AVAILABLE
    41. }
    42.  
    43. // Player buys our upgrade, set the unlimited ammo flag
    44. public ze_select_item_post(player, itemid)
    45. {
    46.     if (itemid != g_itemid_infammo)
    47.         return
    48.    
    49.     g_has_unlimited_clip[player] = true
    50. }
    51.  
    52. // Reset flags for all players on newround
    53. public ze_user_humanized(id)
    54. {
    55.     g_has_unlimited_clip[id] = false;
    56. }
    57.  
    58. // Unlimited clip code
    59. public message_cur_weapon(msg_id, msg_dest, msg_entity)
    60. {
    61.     // Player doesn't have the unlimited clip upgrade
    62.     if (!g_has_unlimited_clip[msg_entity])
    63.         return;
    64.    
    65.     // Player not alive or not an active weapon
    66.     if (!is_user_alive(msg_entity) || get_msg_arg_int(1) != 1)
    67.         return;
    68.    
    69.     static weapon, clip
    70.     weapon = get_msg_arg_int(2) // get weapon ID
    71.     clip = get_msg_arg_int(3) // get weapon clip
    72.    
    73.     // Unlimited Clip Ammo
    74.     if (MAXCLIP[weapon] > 2) // skip grenades
    75.     {
    76.         set_msg_arg_int(3, get_msg_argtype(3), MAXCLIP[weapon]) // HUD should show full clip all the time
    77.        
    78.         if (clip < 2) // refill when clip is nearly empty
    79.         {
    80.             // Get the weapon entity
    81.             static wname[32], weapon_ent
    82.             get_weaponname(weapon, wname, sizeof wname - 1)
    83.             weapon_ent = fm_find_ent_by_owner(-1, wname, msg_entity)
    84.            
    85.             // Set max clip on weapon
    86.             fm_set_weapon_ammo(weapon_ent, MAXCLIP[weapon])
    87.         }
    88.     }
    89. }
    90.  
    91. // Find entity by its owner (from fakemeta_util)
    92. stock fm_find_ent_by_owner(entity, const classname[], owner)
    93. {
    94.     while ((entity = engfunc(EngFunc_FindEntityByString, entity, "classname", classname)) && pev(entity, pev_owner) != owner) {}
    95.    
    96.     return entity;
    97. }
    98.  
    99. // Set Weapon Clip Ammo
    100. stock fm_set_weapon_ammo(entity, amount)
    101. {
    102.     set_pdata_int(entity, OFFSET_CLIPAMMO, amount, OFFSET_LINUX_WEAPONS);
    103. }
3. VIP Speed
    1. #include <zombie_escape>
    2. #include <ze_vip>
    3.  
    4. #define HUMAN_INCREASE  20
    5. #define ZOMBIE_INCREASE 20
    6.  
    7. #define SPEED_ACCESS VIP_D
    8.  
    9. new g_pCvarZombieSpeed, g_pCvarHumanSpeed
    10. new g_iMaxPlayers
    11.  
    12. public plugin_init()
    13. {
    14.     register_plugin("VIP Speed", "1.0", "Raheem")
    15.    
    16.     // Get human speed factor and zombie speed
    17.     g_pCvarZombieSpeed = get_cvar_pointer("ze_zombie_speed")
    18.     g_pCvarHumanSpeed = get_cvar_pointer("ze_human_speed_factor")
    19.    
    20.     g_iMaxPlayers = get_member_game(m_nMaxPlayers)
    21. }
    22.  
    23. public ze_user_humanized(id)
    24. {
    25.     // Set human speed at the round start
    26.     if (ze_get_vip_flags(id) & SPEED_ACCESS)
    27.     {
    28.         // Get the factor in zombie_escape.cfg + this factor
    29.         ze_set_human_speed_factor(id, get_pcvar_num(g_pCvarHumanSpeed) + HUMAN_INCREASE)
    30.     }
    31. }
    32.  
    33. public ze_user_infected(iVictim, iInfector)
    34. {
    35.     // If this is first infection by server, we wait and not set speed here as zombie will be frozen
    36.     // We will set the speed when zombie released for these players infected by server
    37.     if (iInfector == 0)
    38.         return;
    39.    
    40.     // This case if zombie infect a human so we increase zombie speed
    41.     if (ze_get_vip_flags(iVictim) & SPEED_ACCESS)
    42.     {
    43.         // Get the zombie speed in zombie_escape.cfg + increase value
    44.         ze_set_zombie_speed(iVictim, get_pcvar_num(g_pCvarZombieSpeed) + ZOMBIE_INCREASE)
    45.     }
    46. }
    47.  
    48. public ze_zombie_release()
    49. {
    50.     // Here we set speed for those players who infected by server
    51.     for(new id = 1; id <= g_iMaxPlayers; id++)
    52.     {
    53.         if (!ze_is_user_zombie(id) && !(ze_get_vip_flags(id) & SPEED_ACCESS))
    54.             continue
    55.        
    56.         // Get the zombie speed in zombie_escape.cfg + increase value
    57.         ze_set_zombie_speed(id, get_pcvar_num(g_pCvarZombieSpeed) + ZOMBIE_INCREASE)
    58.     }
    59. }
  • You can change the speed for human and zombie and the VIP flag from the code and compile:

    1. #define HUMAN_INCREASE  20
    2. #define ZOMBIE_INCREASE 20
    3.  
    4. #define SPEED_ACCESS VIP_D
4. VIP Damage
    1. #include <zombie_escape>
    2. #include <ze_vip>
    3.  
    4. #define DAMAGE_ACCESS VIP_D
    5.  
    6. new g_pCvarDamageIncrease
    7.  
    8. public plugin_init()
    9. {
    10.     register_plugin("VIP Damage", "1.0", "Raheem")
    11.    
    12.     // HookChains
    13.     RegisterHookChain(RG_CBasePlayer_TakeDamage, "Fw_TakeDamage_Post", 1)
    14.    
    15.     g_pCvarDamageIncrease = register_cvar("vip_damage", "1.5") // Multiply Weapon Damage by 1.5
    16. }
    17.  
    18. public Fw_TakeDamage_Post(iVictim, iInflictor, iAttacker, Float:flDamage, bitsDamageType)
    19. {
    20.     // Not Vaild Victim or Attacker
    21.     if (!is_user_connected(iVictim) || !is_user_connected(iAttacker) || !(ze_get_vip_flags(iAttacker) & DAMAGE_ACCESS))
    22.         return HC_CONTINUE
    23.    
    24.     // Set the damage
    25.     SetHookChainArg(4 , ATYPE_FLOAT, flDamage * get_pcvar_float(g_pCvarDamageIncrease))
    26.    
    27.     return HC_CONTINUE
    28. }
  • You can change the VIP flag from the code: #define DAMAGE_ACCESS VIP_D
  • You can also change the damage with this cvar: vip_damage 1.5
5. VIP Extra-Items
  • Try to convert it or post public request for each. After this it will be very easy to be converted to VIP.
He who fails to plan is planning to fail

czirimbolo
Veteran Member
Veteran Member
Poland
Posts: 598
Joined: 7 years ago
Contact:

#8

Post by czirimbolo » 5 years ago

Thanks Raheem, but I got probles with VIP speed:

// by the AMX Mod X Dev Team


//// ze_vip_more_speed.sma
//
// C:\Users\bukowy\Desktop\Compiler v1.8.3\scripting\ze_vip_more_speed.sma(41) :
error 017: undefined symbol "id"
// C:\Users\bukowy\Desktop\Compiler v1.8.3\scripting\ze_vip_more_speed.sma(44) :
error 017: undefined symbol "id"
// C:\Users\bukowy\Desktop\Compiler v1.8.3\scripting\ze_vip_more_speed.sma(44) :
error 001: expected token: ";", but found ")"
// C:\Users\bukowy\Desktop\Compiler v1.8.3\scripting\ze_vip_more_speed.sma(44) :
error 029: invalid expression, assumed zero
// C:\Users\bukowy\Desktop\Compiler v1.8.3\scripting\ze_vip_more_speed.sma(44) :
fatal error 107: too many error messages on one line
//
// Compilation aborted.
// 5 Errors.
// Could not locate output file compiled\ze_vip_more_speed.amx (compile failed).

//
// Compilation Time: 1,14 sec
Image

Rain1153
Senior Member
Senior Member
India
Posts: 278
Joined: 6 years ago
Contact:

#9

Post by Rain1153 » 5 years ago

fixed
  1. #include <zombie_escape>
  2. #include <ze_vip>
  3.  
  4. #define HUMAN_INCREASE  20
  5. #define ZOMBIE_INCREASE 20
  6.  
  7. #define SPEED_ACCESS VIP_D
  8.  
  9. new g_pCvarZombieSpeed, g_pCvarHumanSpeed
  10. new g_iMaxPlayers
  11.  
  12. public plugin_init()
  13. {
  14.     register_plugin("VIP Speed", "1.0", "Raheem")
  15.    
  16.     // Get human speed factor and zombie speed
  17.     g_pCvarZombieSpeed = get_cvar_pointer("ze_zombie_speed")
  18.     g_pCvarHumanSpeed = get_cvar_pointer("ze_human_speed_factor")
  19.    
  20.     g_iMaxPlayers = get_member_game(m_nMaxPlayers)
  21. }
  22.  
  23. public ze_user_humanized(id)
  24. {
  25.     // Set human speed at the round start
  26.     if (ze_get_vip_flags(id) & SPEED_ACCESS)
  27.     {
  28.         // Get the factor in zombie_escape.cfg + this factor
  29.         ze_set_human_speed_factor(id, get_pcvar_num(g_pCvarHumanSpeed) + HUMAN_INCREASE)
  30.     }
  31. }
  32.  
  33. public ze_user_infected(id, iInfector)
  34. {
  35.     // If this is first infection by server, we wait and not set speed here as zombie will be frozen
  36.     // We will set the speed when zombie released for these players infected by server
  37.     if (iInfector == 0)
  38.         return;
  39.    
  40.     // This case if zombie infect a human so we increase zombie speed
  41.     if (ze_get_vip_flags(id) & SPEED_ACCESS)
  42.     {
  43.         // Get the zombie speed in zombie_escape.cfg + increase value
  44.         ze_set_zombie_speed(id, get_pcvar_num(g_pCvarZombieSpeed) + ZOMBIE_INCREASE)
  45.     }
  46. }
  47.  
  48. public ze_zombie_release()
  49. {
  50.     // Here we set speed for those players who infected by server
  51.     for(new id = 1; id <= g_iMaxPlayers; id++)
  52.     {
  53.         if (!ze_is_user_zombie(id) && !(ze_get_vip_flags(id) & SPEED_ACCESS))
  54.             continue
  55.        
  56.         // Get the zombie speed in zombie_escape.cfg + increase value
  57.         ze_set_zombie_speed(id, get_pcvar_num(g_pCvarZombieSpeed) + ZOMBIE_INCREASE)
  58.     }
  59. }
LOL

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#10

Post by Raheem » 5 years ago

Updated
He who fails to plan is planning to fail

czirimbolo
Veteran Member
Veteran Member
Poland
Posts: 598
Joined: 7 years ago
Contact:

#11

Post by czirimbolo » 5 years ago

Thanks guys
Image

czirimbolo
Veteran Member
Veteran Member
Poland
Posts: 598
Joined: 7 years ago
Contact:

#12

Post by czirimbolo » 5 years ago

 
L 08/05/2018 - 22:50:40: [AMXX] Run time error 10 (plugin "ze_vip_more_speed.amxx") (native "ze_set_zombie_speed") - debug not enabled!
L 08/05/2018 - 22:50:40: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

L 08/05/2018 - 23:11:58: [AMXX] Displaying debug trace (plugin "ze_vip_more_speed.amxx", version "1.0")
L 08/05/2018 - 23:11:58: [AMXX] Run time error 10: native error (native "ze_set_zombie_speed")
L 08/05/2018 - 23:11:58: [AMXX] [0] ze_vip_more_speed.sma::ze_zombie_release (line 57)

can you fix it?
Image

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#13

Post by Raheem » 5 years ago

Try:
    1. #include <zombie_escape>
    2. #include <ze_vip>
    3.  
    4. #define HUMAN_INCREASE  20
    5. #define ZOMBIE_INCREASE 20
    6.  
    7. #define SPEED_ACCESS VIP_D
    8.  
    9. new g_pCvarZombieSpeed, g_pCvarHumanSpeed
    10. new g_iMaxPlayers
    11.  
    12. public plugin_init()
    13. {
    14.     register_plugin("VIP Speed", "1.0", "Raheem")
    15.    
    16.     // Get human speed factor and zombie speed
    17.     g_pCvarZombieSpeed = get_cvar_pointer("ze_zombie_speed")
    18.     g_pCvarHumanSpeed = get_cvar_pointer("ze_human_speed_factor")
    19.    
    20.     g_iMaxPlayers = get_member_game(m_nMaxPlayers)
    21. }
    22.  
    23. public ze_user_humanized(id)
    24. {
    25.     // Set human speed at the round start
    26.     if (ze_get_vip_flags(id) & SPEED_ACCESS)
    27.     {
    28.         // Get the factor in zombie_escape.cfg + this factor
    29.         ze_set_human_speed_factor(id, get_pcvar_num(g_pCvarHumanSpeed) + HUMAN_INCREASE)
    30.     }
    31. }
    32.  
    33. public ze_user_infected(iVictim, iInfector)
    34. {
    35.     // If this is first infection by server, we wait and not set speed here as zombie will be frozen
    36.     // We will set the speed when zombie released for these players infected by server
    37.     if (iInfector == 0)
    38.         return;
    39.    
    40.     // This case if zombie infect a human so we increase zombie speed
    41.     if (ze_get_vip_flags(iVictim) & SPEED_ACCESS)
    42.     {
    43.         // Get the zombie speed in zombie_escape.cfg + increase value
    44.         ze_set_zombie_speed(iVictim, get_pcvar_num(g_pCvarZombieSpeed) + ZOMBIE_INCREASE)
    45.     }
    46. }
    47.  
    48. public ze_zombie_release()
    49. {
    50.     // Here we set speed for those players who infected by server
    51.     for(new id = 1; id <= g_iMaxPlayers; id++)
    52.     {
    53.         if (!is_user_connected(id))
    54.             continue;
    55.        
    56.         if (!ze_is_user_zombie(id) && !(ze_get_vip_flags(id) & SPEED_ACCESS))
    57.             continue
    58.        
    59.         // Get the zombie speed in zombie_escape.cfg + increase value
    60.         ze_set_zombie_speed(id, get_pcvar_num(g_pCvarZombieSpeed) + ZOMBIE_INCREASE)
    61.     }
    62. }
He who fails to plan is planning to fail

czirimbolo
Veteran Member
Veteran Member
Poland
Posts: 598
Joined: 7 years ago
Contact:

#14

Post by czirimbolo » 5 years ago

Solved. Thanks guys
Image

Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Who is online

Users browsing this forum: No registered users and 1 guest