Post by DoNii on Aug 14, 2016 17:41:47 GMT
So It took me months to learn these things that now you can learn in no more than 100 Seconds. Many questions are asked about VIP Extra Items and ZM Classes. Here's a Tutorial Hope it helps, even though it's been shared on AlliedModders It still might come handy to some Users of this Forum.
Note : This Method Is for VIP Version 1.7.2 By Aarnas.
First Of All To Make A VIP Extra Item Add #include <zmvip> On the code , Like this.
2nd Step ) Find "zp_register_extra_item" (without quotation marks) in the code and change it to "zv_register_extra_item"
3rd Step ) Below zp_register_extra_item there's "ZP_TEAM_HUMAN" change it to "ZV_TEAM_HUMAN"
4th Step ) Slide down and find "public zp_extra_item_selected(id, itemid)" change it to "public zv_extra_item_selected(id, itemid)"
5th Step ) Compile it locally/web and YOU'RE DONE. Note : You Need zmvip.inc In Your INC Folder Of Compiling , Here's it
Now About ZM Classes.
1st Step ) Add #include <zmvip> in the code just like we did before.
2nd Step ) Find zp_register_zombie_class and before that it's Like "g_deimos = zp_register_zombie_class" but It won't be g_deimos , will be different.
3rd Step ) Add this code at the end of Plugin : and replace that g_deimos with the Code You Found near zp_register_zombie_class
Hope It Helps!
Note : This Method Is for VIP Version 1.7.2 By Aarnas.
First Of All To Make A VIP Extra Item Add #include <zmvip> On the code , Like this.
#include <amxmodx>
#include <engine>
#include <fakemeta>
#include <fun>
#include <hamsandwich>
#include <xs>
#include <cstrike>
#include <zombieplague>
#include <zmvip>
2nd Step ) Find "zp_register_extra_item" (without quotation marks) in the code and change it to "zv_register_extra_item"
3rd Step ) Below zp_register_extra_item there's "ZP_TEAM_HUMAN" change it to "ZV_TEAM_HUMAN"
4th Step ) Slide down and find "public zp_extra_item_selected(id, itemid)" change it to "public zv_extra_item_selected(id, itemid)"
5th Step ) Compile it locally/web and YOU'RE DONE. Note : You Need zmvip.inc In Your INC Folder Of Compiling , Here's it
Now About ZM Classes.
1st Step ) Add #include <zmvip> in the code just like we did before.
2nd Step ) Find zp_register_zombie_class and before that it's Like "g_deimos = zp_register_zombie_class" but It won't be g_deimos , will be different.
3rd Step ) Add this code at the end of Plugin : and replace that g_deimos with the Code You Found near zp_register_zombie_class
public zp_user_infected_pre(id) {
if(zv_get_user_flags(id) == 0) {
if(zp_get_user_next_class(id) == g_deimos) {
zp_set_user_zombie_class(id, 0)
client_print(id, print_center, "Your selected class in only for *VIP* members")
client_print(id, print_chat, "Your selected class in only for *VIP* members. Changed to default zombie class.")
}
}
}
Hope It Helps!