Resolved Skin Menu with VIP

Coding Help/Re-API Supported
User avatar
Mark
Senior Member
Senior Member
United States of America
Posts: 274
Joined: 9 Months Ago
Location: Des Moines/USA
Donation: 1x donated in total €10.00
Has thanked: 6 times
Been thanked: 20 times
Age: 33
Contact:

Skin Menu with VIP

#1

Post by Mark » 9 Months Ago

Im trying to make this show the VIP item only to VIP with access VIP_H is this possible?
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <cstrike>
  4. #include <zombie_escape>
  5. #include <ze_vip>
  6.  
  7.  
  8. #define PLUGIN "Admin Model Menu"
  9. #define VERSION "1.0"
  10. #define AUTHOR "?"
  11.  
  12. new g_pCvarUseTimes
  13. new g_iUsedTimes[33]
  14.  
  15.  
  16. public plugin_natives()
  17. {
  18.     register_native("ze_open_skin_menu", "native_ze_open_skin_menu", 1)
  19. }
  20.  
  21. public plugin_init()
  22. {
  23.     register_plugin(PLUGIN, VERSION, AUTHOR)
  24.     g_pCvarUseTimes = register_cvar("ze_skin_menu_used", "1")
  25. }
  26.  
  27. public plugin_precache()
  28. {
  29.         precache_model("models/player/Asasin/Asasin.mdl")
  30.         precache_model("models/player/Death/Death.mdl")
  31.         precache_model("models/player/Dobby/Dobby.mdl")
  32.         precache_model("models/player/Sonic/Sonic.mdl")
  33.         precache_model("models/player/50cent/50cent.mdl")
  34.         precache_model("models/player/Joker/Joker.mdl")
  35.         precache_model("models/player/Iron/Iron.mdl")
  36.         precache_model("models/player/DeadSpace2/DeadSpace2.mdl")
  37.         precache_model("models/player/Trump/Trump.mdl")
  38. }
  39.  
  40. public ze_user_humanized(id)
  41. {
  42.   g_iUsedTimes[id] = 0
  43. }
  44.  
  45. public ze_select_item_pre(id, itemid)
  46. {
  47.     if(!(ze_get_vip_flags(id) & VIP_H))
  48.         return ZE_ITEM_DONT_SHOW
  49.    
  50.     return ZE_ITEM_AVAILABLE
  51. }
  52.  
  53. public model_menu(id)
  54. {
  55.     if (ze_is_user_zombie(id))
  56.     {
  57.         ze_colored_print(id, "!tYou can't change your skin while zombie!y.")
  58.         return PLUGIN_HANDLED
  59.     }
  60.     if (g_iUsedTimes[id] >= get_pcvar_num(g_pCvarUseTimes))
  61.     {
  62.         ze_colored_print(id, "!tMaximum have been reached !y[!g%d!y]!", get_pcvar_num(g_pCvarUseTimes))
  63.         return PLUGIN_HANDLED
  64.     }
  65.     else
  66.     {
  67.         new menu = menu_create("\r[\wSkin Models\r]\r", "menu_skins")
  68.    
  69.         menu_additem(menu, "\wAsasin", "1", 0)
  70.         menu_additem(menu, "\wDeath", "2", 0)
  71.         menu_additem(menu, "\wDobby", "3", 0)
  72.         menu_additem(menu, "\wSonic", "4", 0)
  73.         menu_additem(menu, "\w50cent", "5", 0)
  74.         menu_additem(menu, "\wJoker", "6", 0)
  75.         menu_additem(menu, "\wIronMan", "7", 0)
  76.         menu_additem(menu, "\wDead Space", "8", 0)
  77.         menu_additem(menu, "\wTrump \r[VIP]", "9", VIP_H)
  78.    
  79.         menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
  80.         menu_display(id, menu, 0)
  81.     }
  82.     return PLUGIN_HANDLED
  83. }
  84. public menu_skins(id, menu, item)
  85. {
  86.     if(item == MENU_EXIT)
  87.     {
  88.         menu_destroy(menu)
  89.         return PLUGIN_HANDLED
  90.     }
  91.  
  92.     new data[20], iName[500]
  93.     new acces, callback
  94.     menu_item_getinfo(menu, item, acces, data,20, iName, 500, callback)
  95.  
  96.     new key = str_to_num(data)
  97.  
  98.     switch(key)
  99.     {
  100.         case 1 :
  101.         {
  102.             rg_set_user_model(id, "Asasin")
  103.             ze_colored_print(id, "You picked the Assassin skin", id)
  104.             g_iUsedTimes[id]++
  105.         }
  106.  
  107.         case 2 :
  108.         {
  109.             rg_set_user_model(id, "Death")
  110.             ze_colored_print(id, "You picked the Death skin", id)
  111.             g_iUsedTimes[id]++
  112.         }
  113.  
  114.         case 3 :
  115.         {
  116.             rg_set_user_model(id, "Dobby")
  117.             ze_colored_print(id, "You picked the Dobby skin", id)
  118.             g_iUsedTimes[id]++
  119.         }
  120.  
  121.         case 4 :
  122.         {
  123.             rg_set_user_model(id, "Sonic")
  124.             ze_colored_print(id, "You picked the Sonic skin", id)
  125.             g_iUsedTimes[id]++
  126.         }
  127.  
  128.         case 5 :
  129.         {
  130.             rg_set_user_model(id, "50cent")
  131.             ze_colored_print(id, "You picked the 50cent skin", id)
  132.             g_iUsedTimes[id]++
  133.         }
  134.  
  135.         case 6 :
  136.         {
  137.             rg_set_user_model(id, "Joker")
  138.             ze_colored_print(id, "You picked the Joker skin", id)
  139.             g_iUsedTimes[id]++
  140.         }
  141.  
  142.         case 7 :
  143.         {
  144.             rg_set_user_model(id, "Iron")
  145.             ze_colored_print(id, "You picked the Iron Man skin", id)
  146.             g_iUsedTimes[id]++
  147.         }
  148.  
  149.         case 8 :
  150.         {
  151.             rg_set_user_model(id, "DeadSpace2")
  152.             ze_colored_print(id, "You picked the Dead Space skin", id)
  153.             g_iUsedTimes[id]++
  154.         }
  155.  
  156.         case 9 :              [b]<<<<<<<<<<<<<<<<<<<<<<<HERE ONLY SHOW TO VIP_H>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>[/b]
  157.         {
  158.             if (!(ze_get_vip_flags(id) & VIP_H))
  159.             {
  160.                 return ZE_ITEM_DONT_SHOW
  161.             }
  162.             else
  163.  
  164.             cs_set_user_model(id, "Trump")
  165.             ze_colored_print(id, "You picked the Trump skin", id)
  166.             g_iUsedTimes[id]++            
  167.         }
  168.  
  169.     }    
  170.        
  171.     g_iUsedTimes[id]++
  172.     menu_destroy(menu)
  173.     return PLUGIN_HANDLED
  174. }
  175.  
  176. public native_ze_open_skin_menu(id)
  177. {
  178.     model_menu(id)
  179. }

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1792
Joined: 2 Years Ago
Location: Egypt
Has thanked: 31 times
Been thanked: 88 times
Age: 21
Contact:

#2

Post by Raheem » 9 Months Ago

I don't get you, this what you posted not item. You mean you need to make this plugin for VIPs only?
You don't know? Learn and you will know.

User avatar
Mark
Senior Member
Senior Member
United States of America
Posts: 274
Joined: 9 Months Ago
Location: Des Moines/USA
Donation: 1x donated in total €10.00
Has thanked: 6 times
Been thanked: 20 times
Age: 33
Contact:

#3

Post by Mark » 9 Months Ago

Raheem wrote:
9 Months Ago
I don't get you, this what you posted not item. You mean you need to make this plugin for VIPs only?
No look at code.

Models in case 1-8 when they use the skins menu anyone can see them in the list and choose them.
Everyone can see below in menu and use.

precache_model("models/player/Asasin/Asasin.mdl")
precache_model("models/player/Death/Death.mdl")
precache_model("models/player/Dobby/Dobby.mdl")
precache_model("models/player/Sonic/Sonic.mdl")
precache_model("models/player/50cent/50cent.mdl")
precache_model("models/player/Joker/Joker.mdl")
precache_model("models/player/Iron/Iron.mdl")
precache_model("models/player/DeadSpace2/DeadSpace2.mdl")


Model in case 9 is hidden when they are not VIP_H.
Only people with VIP_H Will see this one.
precache_model("models/player/Trump/Trump.mdl")

I don't know how else to explain it but i want to hide in the menu vip only models unless they have the flag to see it.

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1792
Joined: 2 Years Ago
Location: Egypt
Has thanked: 31 times
Been thanked: 88 times
Age: 21
Contact:

#4

Post by Raheem » 9 Months Ago

You are missing somethings.

First is that these returns like: return ZE_ITEM_DONT_SHOW is used only with extra-items.

What i got is you need to make this model only for VIPs, so the steps as follow:

1. Formatting text that will appear for VIPs and Non-VIPs [This is just a text]
2. Handle case, means when player choose this if he VIP what to do? And if he is not what to do? [Not related to text]

- Good formatting i always like is to appear the item for VIP normally and for Non-VIPs grayed:
    1.         // Formatting text that will appear in menu for VIP/NonVIP
    2.         if (ze_get_vip_flags(id) & VIP_H)
    3.         {
    4.             // He is VIP so we show him normally
    5.             menu_additem(menu, "\wTrump \r[VIP]", "9", 0)
    6.         }
    7.         else
    8.         {
    9.             // If he does not have this flag, show him grayed
    10.             menu_additem(menu, "\dTrump [VIP]", "9", 0)
    11.         }
- Now the handler for the two cases:
    1.         case 9 :
    2.         {
    3.             // Here we handle the two cases
    4.             if (ze_get_vip_flags(id) & VIP_H)
    5.             {
    6.                 cs_set_user_model(id, "Trump")
    7.                 ze_colored_print(id, "You picked the Trump skin")
    8.                 g_iUsedTimes[id]++
    9.             }
    10.             else
    11.             {
    12.                 ze_colored_print(id, "!gYou must be VIP to use this skin!y!")
    13.             }
    14.         }
Full code:
  • Code: Select all

    #include <amxmodx>
    #include <amxmisc>
    #include <cstrike>
    #include <zombie_escape>
    #include <ze_vip>
     
     
    #define PLUGIN "Admin Model Menu"
    #define VERSION "1.0"
    #define AUTHOR "?"
     
    new g_pCvarUseTimes
    new g_iUsedTimes[33]
     
     
    public plugin_natives()
    {
        register_native("ze_open_skin_menu", "native_ze_open_skin_menu", 1)
    }
     
    public plugin_init()
    {
        register_plugin(PLUGIN, VERSION, AUTHOR)
        g_pCvarUseTimes = register_cvar("ze_skin_menu_used", "1")
    }
     
    public plugin_precache()
    {
    	precache_model("models/player/Asasin/Asasin.mdl")
    	precache_model("models/player/Death/Death.mdl")
    	precache_model("models/player/Dobby/Dobby.mdl")
    	precache_model("models/player/Sonic/Sonic.mdl")
    	precache_model("models/player/50cent/50cent.mdl")
    	precache_model("models/player/Joker/Joker.mdl")
    	precache_model("models/player/Iron/Iron.mdl")
    	precache_model("models/player/DeadSpace2/DeadSpace2.mdl")
    	precache_model("models/player/Trump/Trump.mdl")
    }
     
    public ze_user_humanized(id)
    {
      g_iUsedTimes[id] = 0
    }
    
    public model_menu(id)
    {
        if (ze_is_user_zombie(id))
        {
            ze_colored_print(id, "!tYou can't change your skin while zombie!y.")
            return PLUGIN_HANDLED
        }
    	
        if (g_iUsedTimes[id] >= get_pcvar_num(g_pCvarUseTimes))
        {
            ze_colored_print(id, "!tMaximum have been reached !y[!g%d!y]!", get_pcvar_num(g_pCvarUseTimes))
            return PLUGIN_HANDLED
        }
        else
        {
            new menu = menu_create("\r[\wSkin Models\r]\r", "menu_skins")
       
            menu_additem(menu, "\wAsasin", "1", 0)
            menu_additem(menu, "\wDeath", "2", 0)
            menu_additem(menu, "\wDobby", "3", 0)
            menu_additem(menu, "\wSonic", "4", 0)
            menu_additem(menu, "\w50cent", "5", 0)
            menu_additem(menu, "\wJoker", "6", 0)
            menu_additem(menu, "\wIronMan", "7", 0)
            menu_additem(menu, "\wDead Space", "8", 0)
    		
    		// Formatting text that will appear in menu for VIP/NonVIP
    		if (ze_get_vip_flags(id) & VIP_H)
    		{
    			// He is VIP so we show him normally
    			menu_additem(menu, "\wTrump \r[VIP]", "9", 0)
    		}
    		else
    		{
    			// If he does not have this flag, show him grayed
    			menu_additem(menu, "\dTrump [VIP]", "9", 0)
    		}
       
            menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
            menu_display(id, menu, 0)
        }
    	
        return PLUGIN_HANDLED
    }
    public menu_skins(id, menu, item)
    {
        if(item == MENU_EXIT)
        {
            menu_destroy(menu)
            return PLUGIN_HANDLED
        }
     
        new data[20], iName[500]
        new acces, callback
        menu_item_getinfo(menu, item, acces, data,20, iName, 500, callback)
     
        new key = str_to_num(data)
     
        switch(key)
        {
            case 1 :
            {
                rg_set_user_model(id, "Asasin")
                ze_colored_print(id, "You picked the Assassin skin")
                g_iUsedTimes[id]++
            }
            case 2 :
            {
                rg_set_user_model(id, "Death")
                ze_colored_print(id, "You picked the Death skin", id)
                g_iUsedTimes[id]++
            }
            case 3 :
            {
                rg_set_user_model(id, "Dobby")
                ze_colored_print(id, "You picked the Dobby skin")
                g_iUsedTimes[id]++
            }
            case 4 :
            {
                rg_set_user_model(id, "Sonic")
                ze_colored_print(id, "You picked the Sonic skin")
                g_iUsedTimes[id]++
            }
            case 5 :
            {
                rg_set_user_model(id, "50cent")
                ze_colored_print(id, "You picked the 50cent skin")
                g_iUsedTimes[id]++
            }
            case 6 :
            {
                rg_set_user_model(id, "Joker")
                ze_colored_print(id, "You picked the Joker skin")
                g_iUsedTimes[id]++
            }
            case 7 :
            {
                rg_set_user_model(id, "Iron")
                ze_colored_print(id, "You picked the Iron Man skin")
                g_iUsedTimes[id]++
            }
            case 8 :
            {
                rg_set_user_model(id, "DeadSpace2")
                ze_colored_print(id, "You picked the Dead Space skin")
                g_iUsedTimes[id]++
            }
            case 9 :
            {
    			// Here we handle the two cases
    			if (ze_get_vip_flags(id) & VIP_H)
    			{
    				cs_set_user_model(id, "Trump")
    				ze_colored_print(id, "You picked the Trump skin")
    				g_iUsedTimes[id]++
    			}
    			else
    			{
    				ze_colored_print(id, "!gYou must be VIP to use this skin!y!")
    			}
            }
        }
           
        g_iUsedTimes[id]++
        menu_destroy(menu)
        return PLUGIN_HANDLED
    }
     
    public native_ze_open_skin_menu(id)
    {
        model_menu(id)
    }
You don't know? Learn and you will know.

User avatar
Mark
Senior Member
Senior Member
United States of America
Posts: 274
Joined: 9 Months Ago
Location: Des Moines/USA
Donation: 1x donated in total €10.00
Has thanked: 6 times
Been thanked: 20 times
Age: 33
Contact:

#5

Post by Mark » 9 Months Ago

So there no way to not show it at all not even grayed out?

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1792
Joined: 2 Years Ago
Location: Egypt
Has thanked: 31 times
Been thanked: 88 times
Age: 21
Contact:

#6

Post by Raheem » 9 Months Ago

Possible, here it's:
  • Code: Select all

    #include <amxmodx>
    #include <amxmisc>
    #include <cstrike>
    #include <zombie_escape>
    #include <ze_vip>
     
     
    #define PLUGIN "Admin Model Menu"
    #define VERSION "1.0"
    #define AUTHOR "?"
     
    new g_pCvarUseTimes
    new g_iUsedTimes[33]
     
     
    public plugin_natives()
    {
        register_native("ze_open_skin_menu", "native_ze_open_skin_menu", 1)
    }
     
    public plugin_init()
    {
        register_plugin(PLUGIN, VERSION, AUTHOR)
        g_pCvarUseTimes = register_cvar("ze_skin_menu_used", "1")
    }
     
    public plugin_precache()
    {
    	precache_model("models/player/Asasin/Asasin.mdl")
    	precache_model("models/player/Death/Death.mdl")
    	precache_model("models/player/Dobby/Dobby.mdl")
    	precache_model("models/player/Sonic/Sonic.mdl")
    	precache_model("models/player/50cent/50cent.mdl")
    	precache_model("models/player/Joker/Joker.mdl")
    	precache_model("models/player/Iron/Iron.mdl")
    	precache_model("models/player/DeadSpace2/DeadSpace2.mdl")
    	precache_model("models/player/Trump/Trump.mdl")
    }
     
    public ze_user_humanized(id)
    {
      g_iUsedTimes[id] = 0
    }
    
    public model_menu(id)
    {
        if (ze_is_user_zombie(id))
        {
            ze_colored_print(id, "!tYou can't change your skin while zombie!y.")
            return PLUGIN_HANDLED
        }
    	
        if (g_iUsedTimes[id] >= get_pcvar_num(g_pCvarUseTimes))
        {
            ze_colored_print(id, "!tMaximum have been reached !y[!g%d!y]!", get_pcvar_num(g_pCvarUseTimes))
            return PLUGIN_HANDLED
        }
        else
        {
            new menu = menu_create("\r[\wSkin Models\r]\r", "menu_skins")
       
            menu_additem(menu, "\wAsasin", "1", 0)
            menu_additem(menu, "\wDeath", "2", 0)
            menu_additem(menu, "\wDobby", "3", 0)
            menu_additem(menu, "\wSonic", "4", 0)
            menu_additem(menu, "\w50cent", "5", 0)
            menu_additem(menu, "\wJoker", "6", 0)
            menu_additem(menu, "\wIronMan", "7", 0)
            menu_additem(menu, "\wDead Space", "8", 0)
    		
    		// Formatting text that will appear in menu for VIP/NonVIP
    		if (ze_get_vip_flags(id) & VIP_H)
    		{
    			// He is VIP so we show him normally
    			menu_additem(menu, "\wTrump \r[VIP]", "9", 0)
    		}
    		/*else
    		{
    			// If he does not have this flag, show him grayed
    			menu_additem(menu, "\dTrump [VIP]", "9", 0)
    		}*/
       
            menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
            menu_display(id, menu, 0)
        }
    	
        return PLUGIN_HANDLED
    }
    public menu_skins(id, menu, item)
    {
        if(item == MENU_EXIT)
        {
            menu_destroy(menu)
            return PLUGIN_HANDLED
        }
     
        new data[20], iName[500]
        new acces, callback
        menu_item_getinfo(menu, item, acces, data,20, iName, 500, callback)
     
        new key = str_to_num(data)
     
        switch(key)
        {
            case 1 :
            {
                rg_set_user_model(id, "Asasin")
                ze_colored_print(id, "You picked the Assassin skin")
                g_iUsedTimes[id]++
            }
            case 2 :
            {
                rg_set_user_model(id, "Death")
                ze_colored_print(id, "You picked the Death skin", id)
                g_iUsedTimes[id]++
            }
            case 3 :
            {
                rg_set_user_model(id, "Dobby")
                ze_colored_print(id, "You picked the Dobby skin")
                g_iUsedTimes[id]++
            }
            case 4 :
            {
                rg_set_user_model(id, "Sonic")
                ze_colored_print(id, "You picked the Sonic skin")
                g_iUsedTimes[id]++
            }
            case 5 :
            {
                rg_set_user_model(id, "50cent")
                ze_colored_print(id, "You picked the 50cent skin")
                g_iUsedTimes[id]++
            }
            case 6 :
            {
                rg_set_user_model(id, "Joker")
                ze_colored_print(id, "You picked the Joker skin")
                g_iUsedTimes[id]++
            }
            case 7 :
            {
                rg_set_user_model(id, "Iron")
                ze_colored_print(id, "You picked the Iron Man skin")
                g_iUsedTimes[id]++
            }
            case 8 :
            {
                rg_set_user_model(id, "DeadSpace2")
                ze_colored_print(id, "You picked the Dead Space skin")
                g_iUsedTimes[id]++
            }
            case 9 :
            {
    			// Here we handle the two cases
    			if (ze_get_vip_flags(id) & VIP_H)
    			{
    				cs_set_user_model(id, "Trump")
    				ze_colored_print(id, "You picked the Trump skin")
    				g_iUsedTimes[id]++
    			}
    			/*else
    			{
    				ze_colored_print(id, "!gYou must be VIP to use this skin!y!")
    			}*/
            }
        }
           
        g_iUsedTimes[id]++
        menu_destroy(menu)
        return PLUGIN_HANDLED
    }
     
    public native_ze_open_skin_menu(id)
    {
        model_menu(id)
    }
We just only add the text to menu if he is VIP, so this way it will not show for Non-VIPs.
These users thanked the author Raheem for the post:
Mark (9 Months Ago)
You don't know? Learn and you will know.

User avatar
Mark
Senior Member
Senior Member
United States of America
Posts: 274
Joined: 9 Months Ago
Location: Des Moines/USA
Donation: 1x donated in total €10.00
Has thanked: 6 times
Been thanked: 20 times
Age: 33
Contact:

#7

Post by Mark » 9 Months Ago

Raheem wrote:
9 Months Ago
Possible, here it's:
  • Code: Select all

    #include <amxmodx>
    #include <amxmisc>
    #include <cstrike>
    #include <zombie_escape>
    #include <ze_vip>
     
     
    #define PLUGIN "Admin Model Menu"
    #define VERSION "1.0"
    #define AUTHOR "?"
     
    new g_pCvarUseTimes
    new g_iUsedTimes[33]
     
     
    public plugin_natives()
    {
        register_native("ze_open_skin_menu", "native_ze_open_skin_menu", 1)
    }
     
    public plugin_init()
    {
        register_plugin(PLUGIN, VERSION, AUTHOR)
        g_pCvarUseTimes = register_cvar("ze_skin_menu_used", "1")
    }
     
    public plugin_precache()
    {
    	precache_model("models/player/Asasin/Asasin.mdl")
    	precache_model("models/player/Death/Death.mdl")
    	precache_model("models/player/Dobby/Dobby.mdl")
    	precache_model("models/player/Sonic/Sonic.mdl")
    	precache_model("models/player/50cent/50cent.mdl")
    	precache_model("models/player/Joker/Joker.mdl")
    	precache_model("models/player/Iron/Iron.mdl")
    	precache_model("models/player/DeadSpace2/DeadSpace2.mdl")
    	precache_model("models/player/Trump/Trump.mdl")
    }
     
    public ze_user_humanized(id)
    {
      g_iUsedTimes[id] = 0
    }
    
    public model_menu(id)
    {
        if (ze_is_user_zombie(id))
        {
            ze_colored_print(id, "!tYou can't change your skin while zombie!y.")
            return PLUGIN_HANDLED
        }
    	
        if (g_iUsedTimes[id] >= get_pcvar_num(g_pCvarUseTimes))
        {
            ze_colored_print(id, "!tMaximum have been reached !y[!g%d!y]!", get_pcvar_num(g_pCvarUseTimes))
            return PLUGIN_HANDLED
        }
        else
        {
            new menu = menu_create("\r[\wSkin Models\r]\r", "menu_skins")
       
            menu_additem(menu, "\wAsasin", "1", 0)
            menu_additem(menu, "\wDeath", "2", 0)
            menu_additem(menu, "\wDobby", "3", 0)
            menu_additem(menu, "\wSonic", "4", 0)
            menu_additem(menu, "\w50cent", "5", 0)
            menu_additem(menu, "\wJoker", "6", 0)
            menu_additem(menu, "\wIronMan", "7", 0)
            menu_additem(menu, "\wDead Space", "8", 0)
    		
    		// Formatting text that will appear in menu for VIP/NonVIP
    		if (ze_get_vip_flags(id) & VIP_H)
    		{
    			// He is VIP so we show him normally
    			menu_additem(menu, "\wTrump \r[VIP]", "9", 0)
    		}
    		/*else
    		{
    			// If he does not have this flag, show him grayed
    			menu_additem(menu, "\dTrump [VIP]", "9", 0)
    		}*/
       
            menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
            menu_display(id, menu, 0)
        }
    	
        return PLUGIN_HANDLED
    }
    public menu_skins(id, menu, item)
    {
        if(item == MENU_EXIT)
        {
            menu_destroy(menu)
            return PLUGIN_HANDLED
        }
     
        new data[20], iName[500]
        new acces, callback
        menu_item_getinfo(menu, item, acces, data,20, iName, 500, callback)
     
        new key = str_to_num(data)
     
        switch(key)
        {
            case 1 :
            {
                rg_set_user_model(id, "Asasin")
                ze_colored_print(id, "You picked the Assassin skin")
                g_iUsedTimes[id]++
            }
            case 2 :
            {
                rg_set_user_model(id, "Death")
                ze_colored_print(id, "You picked the Death skin", id)
                g_iUsedTimes[id]++
            }
            case 3 :
            {
                rg_set_user_model(id, "Dobby")
                ze_colored_print(id, "You picked the Dobby skin")
                g_iUsedTimes[id]++
            }
            case 4 :
            {
                rg_set_user_model(id, "Sonic")
                ze_colored_print(id, "You picked the Sonic skin")
                g_iUsedTimes[id]++
            }
            case 5 :
            {
                rg_set_user_model(id, "50cent")
                ze_colored_print(id, "You picked the 50cent skin")
                g_iUsedTimes[id]++
            }
            case 6 :
            {
                rg_set_user_model(id, "Joker")
                ze_colored_print(id, "You picked the Joker skin")
                g_iUsedTimes[id]++
            }
            case 7 :
            {
                rg_set_user_model(id, "Iron")
                ze_colored_print(id, "You picked the Iron Man skin")
                g_iUsedTimes[id]++
            }
            case 8 :
            {
                rg_set_user_model(id, "DeadSpace2")
                ze_colored_print(id, "You picked the Dead Space skin")
                g_iUsedTimes[id]++
            }
            case 9 :
            {
    			// Here we handle the two cases
    			if (ze_get_vip_flags(id) & VIP_H)
    			{
    				cs_set_user_model(id, "Trump")
    				ze_colored_print(id, "You picked the Trump skin")
    				g_iUsedTimes[id]++
    			}
    			/*else
    			{
    				ze_colored_print(id, "!gYou must be VIP to use this skin!y!")
    			}*/
            }
        }
           
        g_iUsedTimes[id]++
        menu_destroy(menu)
        return PLUGIN_HANDLED
    }
     
    public native_ze_open_skin_menu(id)
    {
        model_menu(id)
    }
We just only add the text to menu if he is VIP, so this way it will not show for Non-VIPs.
You the man works great!

User avatar
Mark
Senior Member
Senior Member
United States of America
Posts: 274
Joined: 9 Months Ago
Location: Des Moines/USA
Donation: 1x donated in total €10.00
Has thanked: 6 times
Been thanked: 20 times
Age: 33
Contact:

#8

Post by Mark » 9 Months Ago

@Raheem

When i choose a Model and become zombie it does not change my model to zombie skin how can i fix this?

What i want is if you choose a model you always have that model until you pick another or infected.

Im going to make another Skin Menu for zombies skins so im unsure how to let the server know to change to whatever zombie/human skin they pick based off of round start infections. I don't want them to have to pick a skin every round.

Hope this make sense.

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1792
Joined: 2 Years Ago
Location: Egypt
Has thanked: 31 times
Been thanked: 88 times
Age: 21
Contact:

#9

Post by Raheem » 9 Months Ago

RapidFlush wrote:
9 Months Ago
@Raheem

When i choose a Model and become zombie it does not change my model to zombie skin how can i fix this?

What i want is if you choose a model you always have that model until you pick another or infected.

Im going to make another Skin Menu for zombies skins so im unsure how to let the server know to change to whatever zombie/human skin they pick based off of round start infections. I don't want them to have to pick a skin every round.

Hope this make sense.
See bold, underlined.

We can use our Mod forwards to do this, like on zombie infection if player choosed another model then change his model to the one he choosed.

How we do this?

You will need to make a boolean variables with number of models you have. And when the player choose a model you make it true and on mod forwards you check if it's true then set him this model. Try this and if you failed i'll give example.
You don't know? Learn and you will know.

User avatar
Mark
Senior Member
Senior Member
United States of America
Posts: 274
Joined: 9 Months Ago
Location: Des Moines/USA
Donation: 1x donated in total €10.00
Has thanked: 6 times
Been thanked: 20 times
Age: 33
Contact:

#10

Post by Mark » 9 Months Ago

Raheem wrote:
9 Months Ago
RapidFlush wrote:
9 Months Ago
@Raheem

When i choose a Model and become zombie it does not change my model to zombie skin how can i fix this?

What i want is if you choose a model you always have that model until you pick another or infected.

Im going to make another Skin Menu for zombies skins so im unsure how to let the server know to change to whatever zombie/human skin they pick based off of round start infections. I don't want them to have to pick a skin every round.

Hope this make sense.
See bold, underlined.

We can use our Mod forwards to do this, like on zombie infection if player choosed another model then change his model to the one he choosed.

How we do this?

You will need to make a boolean variables with number of models you have. And when the player choose a model you make it true and on mod forwards you check if it's true then set him this model. Try this and if you failed i'll give example.
Yeah im going to need an example i tried this but not working....
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <cstrike>
  4. #include <zombie_escape>
  5. #include <ze_vip>
  6.  
  7.  
  8. #define PLUGIN "Admin Model Menu"
  9. #define VERSION "1.0"
  10. #define AUTHOR "Mark"
  11.  
  12. new const Asasin_Models[][] =
  13. {
  14.     "models/player/Asasin/Asasin.mdl"
  15. }
  16.  
  17. new const Death_Models[][] =
  18. {
  19.     "models/player/Death/Death.mdl"
  20. }
  21.  
  22. new const Dobby_Models[][] =
  23. {
  24.     "models/player/Dobby/Dobby.mdl"
  25. }
  26.  
  27. new const Sonic_Models[][] =
  28. {
  29.     "models/player/Sonic/Sonic.mdl"
  30. }
  31.  
  32. new const Fiftycent_Models[][] =
  33. {
  34.     "models/player/50cent/50cent.mdl"
  35. }
  36.  
  37. new const Joker_Models[][] =
  38. {
  39.     "models/player/Joker/Joker.mdl"
  40. }
  41.  
  42. new const Iron_Models[][] =
  43. {
  44.     "models/player/Iron/Iron.mdl"
  45. }
  46.  
  47. new const DeadSpace2_Models[][] =
  48. {
  49.     "models/player/DeadSpace2/DeadSpace2.mdl"
  50. }
  51.  
  52. new const Trump_Models[][] =
  53. {
  54.     "models/player/Trump/Trump.mdl"
  55. }
  56.  
  57. new const Trollface_Models[][] =
  58. {
  59.     "models/player/Trollface/Trollface.mdl"
  60. }
  61.  
  62. new const Phantom_Models[][] =
  63. {
  64.     "models/player/Phantom/Phantom.mdl"
  65. }
  66.  
  67. new const Pirategirl_Models[][] =
  68. {
  69.     "models/player/Pirategirl/Pirategirl.mdl"
  70. }
  71.  
  72. new const Leo_Models[][] =
  73. {
  74.     "models/player/leo/leo.mdl"
  75. }
  76.  
  77. new const Mike_Models[][] =
  78. {
  79.     "models/player/mike/mike.mdl"
  80. }
  81.  
  82. new const Donatello_Models[][] =
  83. {
  84.     "models/player/don/don.mdl"
  85. }
  86.  
  87. new const Raphael_Models[][] =
  88. {
  89.     "models/player/raphael/raphael.mdl"
  90. }
  91.  
  92. new const Capamerica_Models[][] =
  93. {
  94.     "models/player/capamerica/capamerica.mdl"
  95. }
  96.  
  97. new const Batman_Models[][] =
  98. {
  99.     "models/player/batman/batman.mdl"
  100. }
  101.  
  102. new g_pCvarUseTimes
  103. new g_iUsedTimes[33]
  104.  
  105. new bool:g_bAssasin[33], bool:g_bDeath[33], bool:g_bDobby[33], bool:g_bSonic[33],
  106. bool:g_b50cent[33], bool:g_bJoker[33], bool:g_bIron[33], bool:g_bDeadSpace2[33],
  107. bool:g_bTrump[33], bool:g_bTrollface[33], bool:g_bPhantom[33], bool:g_bPirategirl[33],
  108. bool:g_bLeo[33], bool:g_bMike[33],bool:g_bDon[33], bool:g_bRaphael[33], bool:g_bCapamerica[33],
  109. bool:g_bBatman[33]
  110.  
  111.  
  112. public plugin_natives()
  113. {
  114.     register_native("ze_open_hskin_menu", "native_ze_open_hskin_menu", 1)
  115. }
  116.  
  117. public plugin_precache()
  118. {
  119.     new i
  120.  
  121.     for (i = 0; i <= charsmax(Asasin_Models); i++)
  122.         precache_model(Asasin_Models[i])
  123.  
  124.     for (i = 0; i <= charsmax(Death_Models); i++)
  125.         precache_model(Death_Models[i])
  126.  
  127.     for (i = 0; i <= charsmax(Dobby_Models); i++)
  128.         precache_model(Dobby_Models[i])
  129.  
  130.     for (i = 0; i <= charsmax(Sonic_Models); i++)
  131.         precache_model(Sonic_Models[i])
  132.  
  133.     for (i = 0; i <= charsmax(Fiftycent_Models); i++)
  134.         precache_model(Fiftycent_Models[i])
  135.  
  136.     for (i = 0; i <= charsmax(Joker_Models); i++)
  137.         precache_model(Joker_Models[i])
  138.  
  139.     for (i = 0; i <= charsmax(Iron_Models); i++)
  140.         precache_model(Iron_Models[i])
  141.  
  142.     for (i = 0; i <= charsmax(DeadSpace2_Models); i++)
  143.         precache_model(DeadSpace2_Models[i])
  144.  
  145.     for (i = 0; i <= charsmax(Trump_Models); i++)
  146.         precache_model(Trump_Models[i])
  147.  
  148.     for (i = 0; i <= charsmax(Trollface_Models); i++)
  149.         precache_model(Trollface_Models[i])
  150.  
  151.     for (i = 0; i <= charsmax(Phantom_Models); i++)
  152.         precache_model(Phantom_Models[i])
  153.  
  154.     for (i = 0; i <= charsmax(Pirategirl_Models); i++)
  155.         precache_model(Pirategirl_Models[i])
  156.        
  157.     for (i = 0; i <= charsmax(Leo_Models); i++)
  158.         precache_model(Leo_Models[i])
  159.  
  160.     for (i = 0; i <= charsmax(Mike_Models); i++)
  161.         precache_model(Mike_Models[i])
  162.  
  163.     for (i = 0; i <= charsmax(Donatello_Models); i++)
  164.         precache_model(Donatello_Models[i])
  165.  
  166.     for (i = 0; i <= charsmax(Raphael_Models); i++)
  167.         precache_model(Raphael_Models[i])
  168.  
  169.     for (i = 0; i <= charsmax(Capamerica_Models); i++)
  170.         precache_model(Capamerica_Models[i])
  171.  
  172.     for (i = 0; i <= charsmax(Batman_Models); i++)
  173.         precache_model(Batman_Models[i])
  174. }
  175.  
  176. public plugin_init()
  177. {
  178.     register_plugin(PLUGIN, VERSION, AUTHOR)
  179.     g_pCvarUseTimes = register_cvar("ze_hskin_menu_used", "1")
  180. }
  181.  
  182. public ze_user_humanized(id)
  183. {
  184.     g_iUsedTimes[id] = 0
  185. }
  186.  
  187. public ze_user_infected(Victim)
  188. {
  189.     g_bAssasin[Victim] = false
  190.     g_bDeath[Victim] = false
  191.     g_bDobby[Victim] = false
  192.     g_bSonic[Victim] = false
  193.     g_b50cent[Victim] = false
  194.     g_bJoker[Victim] = false
  195.     g_bIron[Victim] = false
  196.     g_bDeadSpace2[Victim] = false
  197.     g_bTrump[Victim] = false
  198.     g_bTrollface[Victim] = false
  199.     g_bPhantom[Victim] = false
  200.     g_bPirategirl[Victim] = false
  201.     g_bLeo[Victim] = false
  202.     g_bMike[Victim] = false
  203.     g_bDon[Victim] = false
  204.     g_bRaphael[Victim] = false
  205.     g_bCapamerica[Victim] = false
  206.     g_bBatman[Victim] = false
  207.     g_iUsedTimes[Victim] = 0
  208. }
  209.  
  210. public client_putinserver(id)
  211. {
  212.     g_bAssasin[id] = false
  213.     g_bDeath[id] = false
  214.     g_bDobby[id] = false
  215.     g_bSonic[id] = false
  216.     g_b50cent[id] = false
  217.     g_bJoker[id] = false
  218.     g_bIron[id] = false
  219.     g_bDeadSpace2[id] = false
  220.     g_bTrump[id] = false
  221.     g_bTrollface[id] = false
  222.     g_bPhantom[id] = false
  223.     g_bPirategirl[id] = false
  224.     g_bLeo[id] = false
  225.     g_bMike[id] = false
  226.     g_bDon[id] = false
  227.     g_bRaphael[id] = false
  228.     g_bCapamerica[id] = false
  229.     g_bBatman[id] = false
  230.     g_iUsedTimes[id] = 0
  231. }
  232.  
  233. public client_disconnected(id)
  234. {
  235.     g_bAssasin[id] = false
  236.     g_bDeath[id] = false
  237.     g_bDobby[id] = false
  238.     g_bSonic[id] = false
  239.     g_b50cent[id] = false
  240.     g_bJoker[id] = false
  241.     g_bIron[id] = false
  242.     g_bDeadSpace2[id] = false
  243.     g_bTrump[id] = false
  244.     g_bTrollface[id] = false
  245.     g_bPhantom[id] = false
  246.     g_bPirategirl[id] = false
  247.     g_bLeo[id] = false
  248.     g_bMike[id] = false
  249.     g_bDon[id] = false
  250.     g_bRaphael[id] = false
  251.     g_bCapamerica[id] = false
  252.     g_bBatman[id] = false
  253.     g_iUsedTimes[id] = 0
  254. }
  255.  
  256. public Show_Hmodel_Menu(id)
  257. {
  258.     if (!is_user_connected(id))
  259.     {
  260.         return PLUGIN_CONTINUE
  261.     }
  262.     if (ze_is_user_zombie(id))
  263.     {
  264.         ze_colored_print(id, "!tYou can't change your skin while zombie!y.")
  265.         return PLUGIN_HANDLED
  266.     }
  267.     if (g_iUsedTimes[id] >= get_pcvar_num(g_pCvarUseTimes))
  268.     {
  269.         ze_colored_print(id, "!tMaximum have been reached !y[!g%d!y]!", get_pcvar_num(g_pCvarUseTimes))
  270.         return PLUGIN_HANDLED
  271.     }
  272.     if (!is_user_alive(id))
  273.     {
  274.         ze_colored_print(id, "!tDead can't open knife menu!y.")
  275.         return PLUGIN_HANDLED
  276.     }
  277. Hmodel_Menu(id)
  278. return PLUGIN_CONTINUE
  279. }
  280.  
  281. public Hmodel_Menu(id)
  282. {
  283.     new hmenu = menu_create("\r[\wHuman Models\r]\r", "menu_hskins")
  284.     menu_additem(hmenu, "\wAssasin", "", 0)
  285.     menu_additem(hmenu, "\wDeath", "", 0)
  286.     menu_additem(hmenu, "\wDobby", "", 0)
  287.     menu_additem(hmenu, "\wSonic", "", 0)
  288.     menu_additem(hmenu, "\w50cent", "", 0)
  289.     menu_additem(hmenu, "\wJoker", "", 0)
  290.     menu_additem(hmenu, "\wIronMan", "", 0)
  291.     menu_additem(hmenu, "\wDead Space", "", 0)
  292.  
  293.     if (ze_get_vip_flags(id) & VIP_D)
  294.     {
  295.         menu_additem(hmenu, "\wTrump \r[VIP]", "", 0)
  296.         menu_additem(hmenu, "\wTrollFace \r[VIP]", "", 0)
  297.         menu_additem(hmenu, "\wPhantom \r[VIP]", "", 0)
  298.         menu_additem(hmenu, "\wPirategirl \r[VIP]", "", 0)
  299.     }
  300.  
  301.     if (ze_get_vip_flags(id) & VIP_E)
  302.     {
  303.         menu_additem(hmenu, "\wLeo \r[VIP]", "", 0)
  304.         menu_additem(hmenu, "\wMike \r[VIP]", "", 0)
  305.         menu_additem(hmenu, "\wDon \r[VIP]", "", 0)
  306.         menu_additem(hmenu, "\wRaphael \r[VIP]", "", 0)
  307.         menu_additem(hmenu, "\wCaptain America \r[VIP]", "", 0)
  308.         menu_additem(hmenu, "\wBatman \r[VIP]", "", 0)
  309.     }
  310.  
  311.     menu_setprop(hmenu, MPROP_EXIT, MEXIT_ALL)
  312.     menu_display(id, hmenu, 0)
  313. }
  314.  
  315. public menu_hskins(id, hmenu, item)
  316. {
  317.     if(!is_user_alive(id) || ze_is_user_zombie(id))
  318.         return PLUGIN_HANDLED
  319.  
  320.     switch(item)
  321.     {
  322.         case 0 : // Assassin
  323.         {
  324.             g_bAssasin[id] = true
  325.             g_bDeath[id] = false
  326.             g_bDobby[id] = false
  327.             g_bSonic[id] = false
  328.             g_b50cent[id] = false
  329.             g_bJoker[id] = false
  330.             g_bIron[id] = false
  331.             g_bDeadSpace2[id] = false
  332.             g_bTrump[id] = false
  333.             g_bTrollface[id] = false
  334.             g_bPhantom[id] = false
  335.             g_bPirategirl[id] = false
  336.             g_bLeo[id] = false
  337.             g_bMike[id] = false
  338.             g_bDon[id] = false
  339.             g_bRaphael[id] = false
  340.             g_bCapamerica[id] = false
  341.             g_bBatman[id] = false
  342.             rg_set_user_model(id, "Asasin")
  343.             ze_colored_print(id, "You picked the Assassin skin", id)
  344.             g_iUsedTimes[id]++
  345.         }
  346.         case 1 : // Death
  347.         {
  348.             g_bAssasin[id] = false
  349.             g_bDeath[id] = true
  350.             g_bDobby[id] = false
  351.             g_bSonic[id] = false
  352.             g_b50cent[id] = false
  353.             g_bJoker[id] = false
  354.             g_bIron[id] = false
  355.             g_bDeadSpace2[id] = false
  356.             g_bTrump[id] = false
  357.             g_bTrollface[id] = false
  358.             g_bPhantom[id] = false
  359.             g_bPirategirl[id] = false
  360.             g_bLeo[id] = false
  361.             g_bMike[id] = false
  362.             g_bDon[id] = false
  363.             g_bRaphael[id] = false
  364.             g_bCapamerica[id] = false
  365.             g_bBatman[id] = false
  366.             rg_set_user_model(id, "Death")
  367.             ze_colored_print(id, "You picked the Death skin", id)
  368.             g_iUsedTimes[id]++
  369.         }
  370.         case 2 : // Dobby
  371.         {
  372.             g_bAssasin[id] = false
  373.             g_bDeath[id] = false
  374.             g_bDobby[id] = true
  375.             g_bSonic[id] = false
  376.             g_b50cent[id] = false
  377.             g_bJoker[id] = false
  378.             g_bIron[id] = false
  379.             g_bDeadSpace2[id] = false
  380.             g_bTrump[id] = false
  381.             g_bTrollface[id] = false
  382.             g_bPhantom[id] = false
  383.             g_bPirategirl[id] = false
  384.             g_bLeo[id] = false
  385.             g_bMike[id] = false
  386.             g_bDon[id] = false
  387.             g_bRaphael[id] = false
  388.             g_bCapamerica[id] = false
  389.             g_bBatman[id] = false
  390.             rg_set_user_model(id, "Dobby")
  391.             ze_colored_print(id, "You picked the Dobby skin", id)
  392.             g_iUsedTimes[id]++
  393.         }
  394.         case 3 : // Sonic
  395.         {
  396.             g_bAssasin[id] = false
  397.             g_bDeath[id] = false
  398.             g_bDobby[id] = false
  399.             g_bSonic[id] = true
  400.             g_b50cent[id] = false
  401.             g_bJoker[id] = false
  402.             g_bIron[id] = false
  403.             g_bDeadSpace2[id] = false
  404.             g_bTrump[id] = false
  405.             g_bTrollface[id] = false
  406.             g_bPhantom[id] = false
  407.             g_bPirategirl[id] = false
  408.             g_bLeo[id] = false
  409.             g_bMike[id] = false
  410.             g_bDon[id] = false
  411.             g_bRaphael[id] = false
  412.             g_bCapamerica[id] = false
  413.             g_bBatman[id] = false
  414.             rg_set_user_model(id, "Sonic")
  415.             ze_colored_print(id, "You picked the Sonic skin", id)
  416.             g_iUsedTimes[id]++
  417.         }
  418.         case 4 : // 50cent
  419.         {
  420.             g_bAssasin[id] = false
  421.             g_bDeath[id] = false
  422.             g_bDobby[id] = false
  423.             g_bSonic[id] = false
  424.             g_b50cent[id] = true
  425.             g_bJoker[id] = false
  426.             g_bIron[id] = false
  427.             g_bDeadSpace2[id] = false
  428.             g_bTrump[id] = false
  429.             g_bTrollface[id] = false
  430.             g_bPhantom[id] = false
  431.             g_bPirategirl[id] = false
  432.             g_bLeo[id] = false
  433.             g_bMike[id] = false
  434.             g_bDon[id] = false
  435.             g_bRaphael[id] = false
  436.             g_bCapamerica[id] = false
  437.             g_bBatman[id] = false
  438.             rg_set_user_model(id, "50cent")
  439.             ze_colored_print(id, "You picked the 50cent skin", id)
  440.             g_iUsedTimes[id]++
  441.         }
  442.         case 5 : // Joker
  443.         {
  444.             g_bAssasin[id] = false
  445.             g_bDeath[id] = false
  446.             g_bDobby[id] = false
  447.             g_bSonic[id] = false
  448.             g_b50cent[id] = false
  449.             g_bJoker[id] = true
  450.             g_bIron[id] = false
  451.             g_bDeadSpace2[id] = false
  452.             g_bTrump[id] = false
  453.             g_bTrollface[id] = false
  454.             g_bPhantom[id] = false
  455.             g_bPirategirl[id] = false
  456.             g_bLeo[id] = false
  457.             g_bMike[id] = false
  458.             g_bDon[id] = false
  459.             g_bRaphael[id] = false
  460.             g_bCapamerica[id] = false
  461.             g_bBatman[id] = false
  462.             rg_set_user_model(id, "Joker")
  463.             ze_colored_print(id, "You picked the Joker skin", id)
  464.             g_iUsedTimes[id]++
  465.         }
  466.         case 6 : //Iron
  467.         {
  468.             g_bAssasin[id] = false
  469.             g_bDeath[id] = false
  470.             g_bDobby[id] = false
  471.             g_bSonic[id] = false
  472.             g_b50cent[id] = false
  473.             g_bJoker[id] = false
  474.             g_bIron[id] = true
  475.             g_bDeadSpace2[id] = false
  476.             g_bTrump[id] = false
  477.             g_bTrollface[id] = false
  478.             g_bPhantom[id] = false
  479.             g_bPirategirl[id] = false
  480.             g_bLeo[id] = false
  481.             g_bMike[id] = false
  482.             g_bDon[id] = false
  483.             g_bRaphael[id] = false
  484.             g_bCapamerica[id] = false
  485.             g_bBatman[id] = false
  486.             rg_set_user_model(id, "Iron")
  487.             ze_colored_print(id, "You picked the Iron Man skin", id)
  488.             g_iUsedTimes[id]++
  489.         }
  490.         case 7 : // DeadSpace2
  491.         {
  492.             g_bAssasin[id] = false
  493.             g_bDeath[id] = false
  494.             g_bDobby[id] = false
  495.             g_bSonic[id] = false
  496.             g_b50cent[id] = false
  497.             g_bJoker[id] = false
  498.             g_bIron[id] = false
  499.             g_bDeadSpace2[id] = true
  500.             g_bTrump[id] = false
  501.             g_bTrollface[id] = false
  502.             g_bPhantom[id] = false
  503.             g_bPirategirl[id] = false
  504.             g_bLeo[id] = false
  505.             g_bMike[id] = false
  506.             g_bDon[id] = false
  507.             g_bRaphael[id] = false
  508.             g_bCapamerica[id] = false
  509.             g_bBatman[id] = false
  510.             rg_set_user_model(id, "DeadSpace2")
  511.             ze_colored_print(id, "You picked the Dead Space skin", id)
  512.             g_iUsedTimes[id]++
  513.         }
  514.         case 8 : // Trump
  515.         {      
  516.             if (ze_get_vip_flags(id) & VIP_D)
  517.             {
  518.                 g_bAssasin[id] = false
  519.                 g_bDeath[id] = false
  520.                 g_bDobby[id] = false
  521.                 g_bSonic[id] = false
  522.                 g_b50cent[id] = false
  523.                 g_bJoker[id] = false
  524.                 g_bIron[id] = false
  525.                 g_bDeadSpace2[id] = false
  526.                 g_bTrump[id] = true
  527.                 g_bTrollface[id] = false
  528.                 g_bPhantom[id] = false
  529.                 g_bPirategirl[id] = false
  530.                 g_bLeo[id] = false
  531.                 g_bMike[id] = false
  532.                 g_bDon[id] = false
  533.                 g_bRaphael[id] = false
  534.                 g_bCapamerica[id] = false
  535.                 g_bBatman[id] = false
  536.                 cs_set_user_model(id, "Trump")
  537.                 ze_colored_print(id, "You picked the Trump skin", id)
  538.                 g_iUsedTimes[id]++
  539.             }            
  540.         }
  541.         case 9 : // Trollface
  542.         {
  543.             if (ze_get_vip_flags(id) & VIP_D)
  544.             {
  545.                 g_bAssasin[id] = false
  546.                 g_bDeath[id] = false
  547.                 g_bDobby[id] = false
  548.                 g_bSonic[id] = false
  549.                 g_b50cent[id] = false
  550.                 g_bJoker[id] = false
  551.                 g_bIron[id] = false
  552.                 g_bDeadSpace2[id] = false
  553.                 g_bTrump[id] = false
  554.                 g_bTrollface[id] = true
  555.                 g_bPhantom[id] = false
  556.                 g_bPirategirl[id] = false
  557.                 g_bLeo[id] = false
  558.                 g_bMike[id] = false
  559.                 g_bDon[id] = false
  560.                 g_bRaphael[id] = false
  561.                 g_bCapamerica[id] = false
  562.                 g_bBatman[id] = false
  563.                 cs_set_user_model(id, "Trollface")
  564.                 ze_colored_print(id, "You picked the Trollface skin", id)
  565.                 g_iUsedTimes[id]++
  566.             }              
  567.         }
  568.         case 10 : // Phantom
  569.         {
  570.             if (ze_get_vip_flags(id) & VIP_D)
  571.             {
  572.                 g_bAssasin[id] = false
  573.                 g_bDeath[id] = false
  574.                 g_bDobby[id] = false
  575.                 g_bSonic[id] = false
  576.                 g_b50cent[id] = false
  577.                 g_bJoker[id] = false
  578.                 g_bIron[id] = false
  579.                 g_bDeadSpace2[id] = false
  580.                 g_bTrump[id] = false
  581.                 g_bTrollface[id] = false
  582.                 g_bPhantom[id] = true
  583.                 g_bPirategirl[id] = false
  584.                 g_bLeo[id] = false
  585.                 g_bMike[id] = false
  586.                 g_bDon[id] = false
  587.                 g_bRaphael[id] = false
  588.                 g_bCapamerica[id] = false
  589.                 g_bBatman[id] = false
  590.                 cs_set_user_model(id, "Phantom")
  591.                 ze_colored_print(id, "You picked the Phantom skin", id)
  592.                 g_iUsedTimes[id]++
  593.             }            
  594.         }
  595.         case 11 : // Pirategirl
  596.         {
  597.             if (ze_get_vip_flags(id) & VIP_D)
  598.             {
  599.                 g_bAssasin[id] = false
  600.                 g_bDeath[id] = false
  601.                 g_bDobby[id] = false
  602.                 g_bSonic[id] = false
  603.                 g_b50cent[id] = false
  604.                 g_bJoker[id] = false
  605.                 g_bIron[id] = false
  606.                 g_bDeadSpace2[id] = false
  607.                 g_bTrump[id] = false
  608.                 g_bTrollface[id] = false
  609.                 g_bPhantom[id] = false
  610.                 g_bPirategirl[id] = true
  611.                 g_bLeo[id] = false
  612.                 g_bMike[id] = false
  613.                 g_bDon[id] = false
  614.                 g_bRaphael[id] = false
  615.                 g_bCapamerica[id] = false
  616.                 g_bBatman[id] = false
  617.                 cs_set_user_model(id, "Pirategirl")
  618.                 ze_colored_print(id, "You picked the Pirategirl skin", id)
  619.                 g_iUsedTimes[id]++
  620.             }                      
  621.         }
  622.         case 12 : //Leonardo
  623.         {
  624.             if (ze_get_vip_flags(id) & VIP_E)
  625.             {
  626.                 g_bAssasin[id] = false
  627.                 g_bDeath[id] = false
  628.                 g_bDobby[id] = false
  629.                 g_bSonic[id] = false
  630.                 g_b50cent[id] = false
  631.                 g_bJoker[id] = false
  632.                 g_bIron[id] = false
  633.                 g_bDeadSpace2[id] = false
  634.                 g_bTrump[id] = false
  635.                 g_bTrollface[id] = false
  636.                 g_bPhantom[id] = false
  637.                 g_bPirategirl[id] = false
  638.                 g_bLeo[id] = true
  639.                 g_bMike[id] = false
  640.                 g_bDon[id] = false
  641.                 g_bRaphael[id] = false
  642.                 g_bCapamerica[id] = false
  643.                 g_bBatman[id] = false
  644.                 cs_set_user_model(id, "leo")
  645.                 ze_colored_print(id, "You picked the Leonardo skin", id)
  646.                 g_iUsedTimes[id]++
  647.             }              
  648.         }
  649.         case 13 : // Michelangelo
  650.         {
  651.             if (ze_get_vip_flags(id) & VIP_E)
  652.             {
  653.                 g_bAssasin[id] = false
  654.                 g_bDeath[id] = false
  655.                 g_bDobby[id] = false
  656.                 g_bSonic[id] = false
  657.                 g_b50cent[id] = false
  658.                 g_bJoker[id] = false
  659.                 g_bIron[id] = false
  660.                 g_bDeadSpace2[id] = false
  661.                 g_bTrump[id] = false
  662.                 g_bTrollface[id] = false
  663.                 g_bPhantom[id] = false
  664.                 g_bPirategirl[id] = false
  665.                 g_bLeo[id] = false
  666.                 g_bMike[id] = true
  667.                 g_bDon[id] = false
  668.                 g_bRaphael[id] = false
  669.                 g_bCapamerica[id] = false
  670.                 g_bBatman[id] = false
  671.                 cs_set_user_model(id, "mike")
  672.                 ze_colored_print(id, "You picked the Michelangelo skin", id)
  673.                 g_iUsedTimes[id]++
  674.             }      
  675.         }
  676.         case 14 : // Donatello
  677.         {
  678.             if (ze_get_vip_flags(id) & VIP_E)
  679.             {
  680.                 g_bAssasin[id] = false
  681.                 g_bDeath[id] = false
  682.                 g_bDobby[id] = false
  683.                 g_bSonic[id] = false
  684.                 g_b50cent[id] = false
  685.                 g_bJoker[id] = false
  686.                 g_bIron[id] = false
  687.                 g_bDeadSpace2[id] = false
  688.                 g_bTrump[id] = false
  689.                 g_bTrollface[id] = false
  690.                 g_bPhantom[id] = false
  691.                 g_bPirategirl[id] = false
  692.                 g_bLeo[id] = false
  693.                 g_bMike[id] = false
  694.                 g_bDon[id] = true
  695.                 g_bRaphael[id] = false
  696.                 g_bCapamerica[id] = false
  697.                 g_bBatman[id] = false
  698.                 cs_set_user_model(id, "don")
  699.                 ze_colored_print(id, "You picked the Donatello skin", id)
  700.                 g_iUsedTimes[id]++
  701.             }            
  702.         }
  703.         case 15 : // Raphael
  704.         {
  705.             if (ze_get_vip_flags(id) & VIP_E)
  706.             {
  707.                 g_bAssasin[id] = false
  708.                 g_bDeath[id] = false
  709.                 g_bDobby[id] = false
  710.                 g_bSonic[id] = false
  711.                 g_b50cent[id] = false
  712.                 g_bJoker[id] = false
  713.                 g_bIron[id] = false
  714.                 g_bDeadSpace2[id] = false
  715.                 g_bTrump[id] = false
  716.                 g_bTrollface[id] = false
  717.                 g_bPhantom[id] = false
  718.                 g_bPirategirl[id] = false
  719.                 g_bLeo[id] = false
  720.                 g_bMike[id] = false
  721.                 g_bDon[id] = false
  722.                 g_bRaphael[id] = true
  723.                 g_bCapamerica[id] = false
  724.                 g_bBatman[id] = false
  725.                 cs_set_user_model(id, "raphael")
  726.                 ze_colored_print(id, "You picked the Raphael skin", id)
  727.                 g_iUsedTimes[id]++
  728.             }              
  729.         }
  730.         case 16 : // Captian America
  731.         {
  732.             if (ze_get_vip_flags(id) & VIP_E)
  733.             {
  734.                 g_bAssasin[id] = false
  735.                 g_bDeath[id] = false
  736.                 g_bDobby[id] = false
  737.                 g_bSonic[id] = false
  738.                 g_b50cent[id] = false
  739.                 g_bJoker[id] = false
  740.                 g_bIron[id] = false
  741.                 g_bDeadSpace2[id] = false
  742.                 g_bTrump[id] = false
  743.                 g_bTrollface[id] = false
  744.                 g_bPhantom[id] = false
  745.                 g_bPirategirl[id] = false
  746.                 g_bLeo[id] = false
  747.                 g_bMike[id] = false
  748.                 g_bDon[id] = false
  749.                 g_bRaphael[id] = false
  750.                 g_bCapamerica[id] = true
  751.                 g_bBatman[id] = false
  752.                 cs_set_user_model(id, "capamerica")
  753.                 ze_colored_print(id, "You picked the Captian America skin", id)
  754.                 g_iUsedTimes[id]++
  755.             }          
  756.         }
  757.         case 17 : // Batman
  758.         {
  759.             if (ze_get_vip_flags(id) & VIP_E)
  760.             {
  761.                 g_bAssasin[id] = false
  762.                 g_bDeath[id] = false
  763.                 g_bDobby[id] = false
  764.                 g_bSonic[id] = false
  765.                 g_b50cent[id] = false
  766.                 g_bJoker[id] = false
  767.                 g_bIron[id] = false
  768.                 g_bDeadSpace2[id] = false
  769.                 g_bTrump[id] = false
  770.                 g_bTrollface[id] = false
  771.                 g_bPhantom[id] = false
  772.                 g_bPirategirl[id] = false
  773.                 g_bLeo[id] = false
  774.                 g_bMike[id] = false
  775.                 g_bDon[id] = false
  776.                 g_bRaphael[id] = false
  777.                 g_bCapamerica[id] = false
  778.                 g_bBatman[id] = true
  779.                 cs_set_user_model(id, "batman")
  780.                 ze_colored_print(id, "You picked the Batman skin", id)
  781.                 g_iUsedTimes[id]++
  782.             }            
  783.         }
  784.  
  785.     }    
  786.     menu_destroy(hmenu)
  787.     return PLUGIN_HANDLED
  788. }
  789.  
  790.  
  791.  
  792. public native_ze_open_hskin_menu(id)
  793. {
  794.     Show_Hmodel_Menu(id)
  795. }

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest