Resolved [ZE] Shop Skin Vip System

Coding Help/Re-API Supported
Mystic Viper
Member
Member
Romania
Posts: 87
Joined: 9 Months Ago
Has thanked: 1 time
Been thanked: 3 times
Contact:

[ZE] Shop Skin Vip System

#1

Post by Mystic Viper » 3 Months Ago

I just want to be this just for vips. When i put VIP_A he said i don't have acces but i have the flag.
ze_shop_skin_vip.sma
(16.11 KiB) Downloaded 21 times
ze_shop_skin_vip.sma
(16.11 KiB) Downloaded 21 times
Last edited by Mystic Viper on 19 Apr 2019, 21:42, edited 1 time in total.

Mystic Viper
Member
Member
Romania
Posts: 87
Joined: 9 Months Ago
Has thanked: 1 time
Been thanked: 3 times
Contact:

#2

Post by Mystic Viper » 3 Months Ago

help pls

Mystic Viper
Member
Member
Romania
Posts: 87
Joined: 9 Months Ago
Has thanked: 1 time
Been thanked: 3 times
Contact:

#3

Post by Mystic Viper » 3 Months Ago

  1. #include <zombie_escape>
  2. #include <ze_vip>
  3.  
  4. new g_pCvarUseTimes
  5. new g_iUsedTimes[33]
  6. new bool:g_bkotaka[33], bool:g_btrollface[33], bool:g_bhorseman[33], bool:g_bclonetrooper[33], g_bmiku_rabbit[33], g_bBlack_sister[33], g_bkurumi[33], g_bkotori[33], g_bsonic[33], g_bsanta[33], g_bscout[33], g_bturtleblue[33], g_btron[33], g_bnaruto_bijuu[33], g_bgoofy[33] , g_bcivil_protection[33]
  7.  
  8. public plugin_natives()
  9. {
  10.     register_native("ze_open_skin_menu", "native_ze_open_skin_menu", 1)
  11. }
  12.  
  13. public plugin_init()
  14. {
  15.     register_plugin("[ZE] Skins", "1.1", "Spi")
  16.     g_pCvarUseTimes = register_cvar("ze_skin_menu_used", "1")
  17. }
  18. public plugin_precache()
  19. {
  20.     precache_model("models/player/kotaka/kotaka.mdl")
  21.     precache_model("models/player/trollface/trollface.mdl")
  22.     precache_model("models/player/horseman/horseman.mdl")
  23.     precache_model("models/player/clonetrooper/clonetrooper.mdl")
  24.     precache_model("models/player/miku_rabbit/miku_rabbit.mdl")
  25.     precache_model("models/player/Black_sister/Black_sister.mdl")
  26.     precache_model("models/player/kurumi/kurumi.mdl")
  27.     precache_model("models/player/kotori/kotori.mdl")
  28.     precache_model("models/player/sonic/sonic.mdl")
  29.     precache_model("models/player/santa/santa.mdl")
  30.     precache_model("models/player/scout/scout.mdl")
  31.     precache_model("models/player/turtleblue/turtleblue.mdl")
  32.     precache_model("models/player/tron/tron.mdl")
  33.     precache_model("models/player/naruto_bijuu/naruto_bijuu.mdl")
  34.     precache_model("models/player/goofy/goofy.mdl")
  35.     precache_model("models/player/civil_protection/civil_protection.mdl")
  36. }
  37.  
  38. public ze_user_humanized(id)
  39. {
  40.   g_iUsedTimes[id] = 0
  41.  
  42.   if (g_bkotaka[id])
  43.   {
  44.       rg_set_user_model(id, "kotaka")
  45.   }
  46.   else if (g_btrollface[id])
  47.   {
  48.       rg_set_user_model(id, "trollface")
  49.   }
  50.   else if (g_bhorseman[id])
  51.   {
  52.       rg_set_user_model(id, "horseman")
  53.   }
  54.   else if (g_bclonetrooper[id])
  55.   {
  56.       rg_set_user_model(id, "clonetrooper")
  57.   }
  58.   else if (g_bmiku_rabbit[id])
  59.   {
  60.       rg_set_user_model(id, "miku_rabbit")
  61.   }
  62.   else if (g_bBlack_sister[id])
  63.   {
  64.       rg_set_user_model(id, "Black_sister")
  65.   }
  66.   else if (g_bkurumi[id])
  67.   {
  68.       rg_set_user_model(id, "kurumi")
  69.   }
  70.   else if (g_bkotori[id])
  71.   {
  72.       rg_set_user_model(id, "kotori")
  73.   }
  74.   else if (g_bsonic[id])
  75.   {
  76.       rg_set_user_model(id, "sonic")
  77.   }
  78.   else if (g_bsanta[id])
  79.   {
  80.       rg_set_user_model(id, "santa")
  81.   }
  82.   else if (g_bscout[id])
  83.   {
  84.       rg_set_user_model(id, "scout")
  85.   }
  86.   else if (g_bturtleblue[id])
  87.   {
  88.       rg_set_user_model(id, "turtleblue")
  89.   }
  90.   else if (g_btron[id])
  91.   {
  92.       rg_set_user_model(id, "tron")
  93.   }
  94.   else if (g_bnaruto_bijuu[id])
  95.   {
  96.       rg_set_user_model(id, "naruto_bijuu")
  97.   }
  98.   else if (g_bgoofy[id])
  99.   {
  100.       rg_set_user_model(id, "goofy")
  101.   }
  102.   else if (g_bcivil_protection[id])
  103.   {
  104.       rg_set_user_model(id, "civil_protection")
  105.   }
  106. }
  107.  
  108. public model_menu(id)
  109. {
  110.     if (ze_is_user_zombie(id))
  111.     {
  112.         ze_colored_print(id, "!tYou can't change your skin while you are zombie!y.")
  113.         return PLUGIN_HANDLED
  114.     }
  115.     if (g_iUsedTimes[id] >= get_pcvar_num(g_pCvarUseTimes))
  116.     {
  117.         ze_colored_print(id, "!tYou have already changed your !gskin!y!")
  118.         return PLUGIN_HANDLED
  119.     }
  120.     else if (ze_get_vip_flags(id) & VIP_A)
  121.     {
  122.         ze_colored_print(id, "!tNo access!y.")
  123.         return PLUGIN_HANDLED
  124.     }
  125.     else
  126.     {
  127.         new menu = menu_create("\r[\wSkins Menu\r]\r", "menu_wybierz")
  128.    
  129.         menu_additem(menu, "\wKotaka \y| \r", "1", 0)
  130.         menu_additem(menu, "\wTroll \y| \rFace", "2", 0)
  131.         menu_additem(menu, "\wHorse \y| \rMan", "3", 0)
  132.         menu_additem(menu, "\wClone \y| \rTrooper", "4", 0)
  133.         menu_additem(menu, "\wMiku \y| \rRabbit", "5", 0)
  134.         menu_additem(menu, "\wBlack \y| \rSister", "6", 0)
  135.         menu_additem(menu, "\wKurumi \y| \r", "7", 0)
  136.         menu_additem(menu, "\wKotori \y| \r", "8", 0)
  137.         menu_additem(menu, "\wSonic \y| \r", "9", 0)
  138.         menu_additem(menu, "\wSanta \y| \r", "10", 0)
  139.         menu_additem(menu, "\wScout \y| \r", "11", 0)
  140.         menu_additem(menu, "\wTurtle \y| \rBlue", "12", 0)
  141.         menu_additem(menu, "\wTron \y| \r", "13", 0)
  142.         menu_additem(menu, "\wNaruto \y| \r", "14", 0)
  143.         menu_additem(menu, "\wGoofy \y| \r", "15", 0)
  144.         menu_additem(menu, "\wCivil \y| \rProtection", "16", 0)
  145.  
  146.    
  147.         menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
  148.         menu_display(id, menu, 0)
  149.     }
  150.     return PLUGIN_HANDLED
  151. }
  152. public menu_wybierz(id, menu, item)
  153. {
  154.     if (item == MENU_EXIT)
  155.     {
  156.         menu_destroy(menu)
  157.         return PLUGIN_HANDLED
  158.     }
  159.     new data[20], iName[500]
  160.     new acces, callback
  161.     menu_item_getinfo(menu, item, acces, data,20, iName, 500, callback)
  162.    
  163.     new key = str_to_num(data)
  164.    
  165.     switch(key)
  166.     {
  167.        case 1 : {
  168.         rg_set_user_model(id, "kotaka")
  169.         ze_colored_print(id, "!tYou picked!gKotaka Skin!y!", id)
  170.         g_iUsedTimes[id]++
  171.         g_bkotaka[id] = true
  172.         g_bhorseman[id] = false
  173.         g_btrollface[id] = false
  174.         g_bclonetrooper[id] = false
  175.         g_bmiku_rabbit[id] = false
  176.         g_bBlack_sister[id] = false
  177.         g_bkurumi[id] = false
  178.         g_bkotori[id] = false
  179.         g_bsonic[id] = false
  180.         g_bsanta[id] = false
  181.         g_bscout[id] = false
  182.         g_bturtleblue[id] = false
  183.         g_btron[id] = false
  184.         g_bnaruto_bijuu[id] = false
  185.         g_bgoofy[id] = false
  186.         g_bcivil_protection[id] = false
  187.         }
  188.        case 2 : {
  189.         rg_set_user_model(id, "trollface")
  190.         ze_colored_print(id, "!tYou picked!gTroll Face Skin!y!", id)
  191.         g_iUsedTimes[id]++
  192.         g_bkotaka[id] = false
  193.         g_btrollface[id] = true
  194.         g_bhorseman[id] = false
  195.         g_bclonetrooper[id] = false
  196.         g_bmiku_rabbit[id] = false
  197.         g_bBlack_sister[id] = false
  198.         g_bkurumi[id] = false
  199.         g_bkotori[id] = false
  200.         g_bsonic[id] = false
  201.         g_bsanta[id] = false
  202.         g_bscout[id] = false
  203.         g_bturtleblue[id] = false
  204.         g_btron[id] = false
  205.         g_bnaruto_bijuu[id] = false
  206.         g_bgoofy[id] = false
  207.         g_bcivil_protection[id] = false
  208.         }
  209.        case 3 : {
  210.         rg_set_user_model(id, "horseman")
  211.         ze_colored_print(id, "!tYou picked!gHorse Man Skin!y!", id)
  212.         g_iUsedTimes[id]++
  213.         g_bkotaka[id] = false
  214.         g_btrollface[id] = false
  215.         g_bhorseman[id] = true
  216.         g_bclonetrooper[id] = false
  217.         g_bmiku_rabbit[id] = false
  218.         g_bBlack_sister[id] = false
  219.         g_bkurumi[id] = false
  220.         g_bkotori[id] = false
  221.         g_bsonic[id] = false
  222.         g_bsanta[id] = false
  223.         g_bscout[id] = false
  224.         g_bturtleblue[id] = false
  225.         g_btron[id] = false
  226.         g_bnaruto_bijuu[id] = false
  227.         g_bgoofy[id] = false
  228.         g_bcivil_protection[id] = false
  229.         }
  230.        case 4 : {
  231.         rg_set_user_model(id, "clonetrooper")
  232.         ze_colored_print(id, "!tYou picked!gClone Trooper Skin!y!", id)
  233.         g_iUsedTimes[id]++
  234.         g_bkotaka[id] = false
  235.         g_btrollface[id] = false
  236.         g_bhorseman[id] = false
  237.         g_bclonetrooper[id] = true
  238.         g_bmiku_rabbit[id] = false
  239.         g_bBlack_sister[id] = false
  240.         g_bkurumi[id] = false
  241.         g_bkotori[id] = false
  242.         g_bsonic[id] = false
  243.         g_bsanta[id] = false
  244.         g_bscout[id] = false
  245.         g_bturtleblue[id] = false
  246.         g_btron[id] = false
  247.         g_bnaruto_bijuu[id] = false
  248.         g_bgoofy[id] = false
  249.         g_bcivil_protection[id] = false
  250.         }
  251.             case 5 : {
  252.         rg_set_user_model(id, "miku_rabbit")
  253.         ze_colored_print(id, "!tYou picked!gMiku Rabbit Skin!y!", id)
  254.         g_iUsedTimes[id]++
  255.         g_bkotaka[id] = false
  256.         g_btrollface[id] = false
  257.         g_bhorseman[id] = false
  258.         g_bclonetrooper[id] = false
  259.         g_bmiku_rabbit[id] = true
  260.         g_bBlack_sister[id] = false
  261.         g_bkurumi[id] = false
  262.         g_bkotori[id] = false
  263.         g_bsonic[id] = false
  264.         g_bsanta[id] = false
  265.         g_bscout[id] = false
  266.         g_bturtleblue[id] = false
  267.         g_btron[id] = false
  268.         g_bnaruto_bijuu[id] = false
  269.         g_bgoofy[id] = false
  270.         g_bcivil_protection[id] = false
  271.         }
  272.             case 6 : {
  273.         rg_set_user_model(id, "Black_sister")
  274.         ze_colored_print(id, "!tYou picked!gBlack Sister Skin!y!", id)
  275.         g_iUsedTimes[id]++
  276.         g_bkotaka[id] = false
  277.         g_btrollface[id] = false
  278.         g_bhorseman[id] = false
  279.         g_bclonetrooper[id] = false
  280.         g_bmiku_rabbit[id] = false
  281.         g_bBlack_sister[id] = true
  282.         g_bkurumi[id] = false
  283.         g_bkotori[id] = false
  284.         g_bsonic[id] = false
  285.         g_bsanta[id] = false
  286.         g_bscout[id] = false
  287.         g_bturtleblue[id] = false
  288.         g_btron[id] = false
  289.         g_bnaruto_bijuu[id] = false
  290.         g_bgoofy[id] = false
  291.         g_bcivil_protection[id] = false
  292.         }
  293.             case 7 : {
  294.         rg_set_user_model(id, "kurumi")
  295.         ze_colored_print(id, "!tYou picked!gKurumi Skin!y!", id)
  296.         g_iUsedTimes[id]++
  297.         g_bkotaka[id] = false
  298.         g_btrollface[id] = false
  299.         g_bhorseman[id] = false
  300.         g_bclonetrooper[id] = false
  301.         g_bmiku_rabbit[id] = false
  302.         g_bBlack_sister[id] = false
  303.         g_bkurumi[id] = true
  304.         g_bkotori[id] = false
  305.         g_bsonic[id] = false
  306.         g_bsanta[id] = false
  307.         g_bscout[id] = false
  308.         g_bturtleblue[id] = false
  309.         g_btron[id] = false
  310.         g_bnaruto_bijuu[id] = false
  311.         g_bgoofy[id] = false
  312.         g_bcivil_protection[id] = false
  313.         }
  314.             case 8 : {
  315.         rg_set_user_model(id, "kotori")
  316.         ze_colored_print(id, "!tYou picked!gKotori Skin!y!", id)
  317.         g_iUsedTimes[id]++
  318.         g_bkotaka[id] = false
  319.         g_btrollface[id] = false
  320.         g_bhorseman[id] = false
  321.         g_bclonetrooper[id] = false
  322.         g_bmiku_rabbit[id] = false
  323.         g_bBlack_sister[id] = false
  324.         g_bkurumi[id] = false
  325.         g_bkotori[id] = true
  326.         g_bsonic[id] = false
  327.         g_bsanta[id] = false
  328.         g_bscout[id] = false
  329.         g_bturtleblue[id] = false
  330.         g_btron[id] = false
  331.         g_bnaruto_bijuu[id] = false
  332.         g_bgoofy[id] = false
  333.         g_bcivil_protection[id] = false
  334.         }
  335.         case 9 : {
  336.         rg_set_user_model(id, "sonic")
  337.         ze_colored_print(id, "!tYou picked!gSonic Skin!y!", id)
  338.         g_iUsedTimes[id]++
  339.         g_bkotaka[id] = false
  340.         g_btrollface[id] = false
  341.         g_bhorseman[id] = false
  342.         g_bclonetrooper[id] = false
  343.         g_bmiku_rabbit[id] = false
  344.         g_bBlack_sister[id] = false
  345.         g_bkurumi[id] = false
  346.         g_bkotori[id] = false
  347.         g_bsonic[id] = true
  348.         g_bsanta[id] = false
  349.         g_bscout[id] = false
  350.         g_bturtleblue[id] = false
  351.         g_btron[id] = false
  352.         g_bnaruto_bijuu[id] = false
  353.         g_bgoofy[id] = false
  354.         g_bcivil_protection[id] = false
  355.         }
  356.         case 10 : {
  357.         rg_set_user_model(id, "santa")
  358.         ze_colored_print(id, "!tYou picked!gSanta Skin!y!", id)
  359.         g_iUsedTimes[id]++
  360.         g_bkotaka[id] = false
  361.         g_btrollface[id] = false
  362.         g_bhorseman[id] = false
  363.         g_bclonetrooper[id] = false
  364.         g_bmiku_rabbit[id] = false
  365.         g_bBlack_sister[id] = false
  366.         g_bkurumi[id] = false
  367.         g_bkotori[id] = false
  368.         g_bsonic[id] = false
  369.         g_bsanta[id] = true
  370.         g_bscout[id] = false
  371.         g_bturtleblue[id] = false
  372.         g_btron[id] = false
  373.         g_bnaruto_bijuu[id] = false
  374.         g_bgoofy[id] = false
  375.         g_bcivil_protection[id] = false
  376.         }
  377.         case 11 : {
  378.         rg_set_user_model(id, "scout")
  379.         ze_colored_print(id, "!tYou picked!gScout Skin!y!", id)
  380.         g_iUsedTimes[id]++
  381.         g_bkotaka[id] = false
  382.         g_btrollface[id] = false
  383.         g_bhorseman[id] = false
  384.         g_bclonetrooper[id] = false
  385.         g_bmiku_rabbit[id] = false
  386.         g_bBlack_sister[id] = false
  387.         g_bkurumi[id] = false
  388.         g_bkotori[id] = false
  389.         g_bsonic[id] = false
  390.         g_bsanta[id] = false
  391.         g_bscout[id] = true
  392.         g_bturtleblue[id] = false
  393.         g_btron[id] = false
  394.         g_bnaruto_bijuu[id] = false
  395.         g_bgoofy[id] = false
  396.         g_bcivil_protection[id] = false
  397.         }
  398.         case 12 : {
  399.         rg_set_user_model(id, "turtleblue")
  400.         ze_colored_print(id, "!tYou picked!gTurtle Blue Skin!y!", id)
  401.         g_iUsedTimes[id]++
  402.         g_bkotaka[id] = false
  403.         g_btrollface[id] = false
  404.         g_bhorseman[id] = false
  405.         g_bclonetrooper[id] = false
  406.         g_bmiku_rabbit[id] = false
  407.         g_bBlack_sister[id] = false
  408.         g_bkurumi[id] = false
  409.         g_bkotori[id] = false
  410.         g_bsonic[id] = false
  411.         g_bsanta[id] = false
  412.         g_bscout[id] = false
  413.         g_bturtleblue[id] = true
  414.         g_btron[id] = false
  415.         g_bnaruto_bijuu[id] = false
  416.         g_bgoofy[id] = false
  417.         g_bcivil_protection[id] = false
  418.         }
  419.         case 13 : {
  420.         rg_set_user_model(id, "tron")
  421.         ze_colored_print(id, "!tYou picked!gTron Skin!y!", id)
  422.         g_iUsedTimes[id]++
  423.         g_bkotaka[id] = false
  424.         g_btrollface[id] = false
  425.         g_bhorseman[id] = false
  426.         g_bclonetrooper[id] = false
  427.         g_bmiku_rabbit[id] = false
  428.         g_bBlack_sister[id] = false
  429.         g_bkurumi[id] = false
  430.         g_bkotori[id] = false
  431.         g_bsonic[id] = false
  432.         g_bsanta[id] = false
  433.         g_bscout[id] = false
  434.         g_bturtleblue[id] = false
  435.         g_btron[id] = true
  436.         g_bnaruto_bijuu[id] = false
  437.         g_bgoofy[id] = false
  438.         g_bcivil_protection[id] = false
  439.         }
  440.         case 14 : {
  441.         rg_set_user_model(id, "naruto_bijuu")
  442.         ze_colored_print(id, "!tYou picked!gNaruto Skin!y!", id)
  443.         g_iUsedTimes[id]++
  444.         g_bkotaka[id] = false
  445.         g_btrollface[id] = false
  446.         g_bhorseman[id] = false
  447.         g_bclonetrooper[id] = false
  448.         g_bmiku_rabbit[id] = false
  449.         g_bBlack_sister[id] = false
  450.         g_bkurumi[id] = false
  451.         g_bkotori[id] = false
  452.         g_bsonic[id] = false
  453.         g_bsanta[id] = false
  454.         g_bscout[id] = false
  455.         g_bturtleblue[id] = false
  456.         g_btron[id] = false
  457.         g_bnaruto_bijuu[id] = true
  458.         g_bgoofy[id] = false
  459.         g_bcivil_protection[id] = false
  460.         }
  461.         case 15 : {
  462.         rg_set_user_model(id, "goofy")
  463.         ze_colored_print(id, "!tYou picked!gGoofy Skin!y!", id)
  464.         g_iUsedTimes[id]++
  465.         g_bkotaka[id] = false
  466.         g_btrollface[id] = false
  467.         g_bhorseman[id] = false
  468.         g_bclonetrooper[id] = false
  469.         g_bmiku_rabbit[id] = false
  470.         g_bBlack_sister[id] = false
  471.         g_bkurumi[id] = false
  472.         g_bkotori[id] = false
  473.         g_bsonic[id] = false
  474.         g_bsanta[id] = false
  475.         g_bscout[id] = false
  476.         g_bturtleblue[id] = false
  477.         g_btron[id] = false
  478.         g_bnaruto_bijuu[id] = false
  479.         g_bgoofy[id] = true
  480.         g_bcivil_protection[id] = false
  481.         }
  482.         case 16 : {
  483.         rg_set_user_model(id, "civil_protection")
  484.         ze_colored_print(id, "!tYou picked!gCivil Protection Skin!y!", id)
  485.         g_iUsedTimes[id]++
  486.         g_bkotaka[id] = false
  487.         g_btrollface[id] = false
  488.         g_bhorseman[id] = false
  489.         g_bclonetrooper[id] = false
  490.         g_bmiku_rabbit[id] = false
  491.         g_bBlack_sister[id] = false
  492.         g_bkurumi[id] = false
  493.         g_bkotori[id] = false
  494.         g_bsonic[id] = false
  495.         g_bsanta[id] = false
  496.         g_bscout[id] = false
  497.         g_bturtleblue[id] = false
  498.         g_btron[id] = false
  499.         g_bnaruto_bijuu[id] = false
  500.         g_bgoofy[id] = false
  501.         g_bcivil_protection[id] = true
  502.         }
  503.     }
  504.     menu_destroy(menu)
  505.     return PLUGIN_HANDLED
  506. }  
  507. public native_ze_open_skin_menu(id)
  508. {
  509.     model_menu(id)
  510. }
  511. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  512. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1036\\ f0\\ fs16 \n\\ par }
  513. */

User avatar
Mark
Senior Member
Senior Member
United States of America
Posts: 281
Joined: 10 Months Ago
Location: Des Moines/USA
Has thanked: 6 times
Been thanked: 21 times
Age: 33
Contact:

#4

Post by Mark » 2 Months Ago

Mystic Viper wrote:
3 Months Ago
  1. #include <zombie_escape>
  2. #include <ze_vip>
  3.  
  4. new g_pCvarUseTimes
  5. new g_iUsedTimes[33]
  6. new bool:g_bkotaka[33], bool:g_btrollface[33], bool:g_bhorseman[33], bool:g_bclonetrooper[33], g_bmiku_rabbit[33], g_bBlack_sister[33], g_bkurumi[33], g_bkotori[33], g_bsonic[33], g_bsanta[33], g_bscout[33], g_bturtleblue[33], g_btron[33], g_bnaruto_bijuu[33], g_bgoofy[33] , g_bcivil_protection[33]
  7.  
  8. public plugin_natives()
  9. {
  10.     register_native("ze_open_skin_menu", "native_ze_open_skin_menu", 1)
  11. }
  12.  
  13. public plugin_init()
  14. {
  15.     register_plugin("[ZE] Skins", "1.1", "Spi")
  16.     g_pCvarUseTimes = register_cvar("ze_skin_menu_used", "1")
  17. }
  18. public plugin_precache()
  19. {
  20.     precache_model("models/player/kotaka/kotaka.mdl")
  21.     precache_model("models/player/trollface/trollface.mdl")
  22.     precache_model("models/player/horseman/horseman.mdl")
  23.     precache_model("models/player/clonetrooper/clonetrooper.mdl")
  24.     precache_model("models/player/miku_rabbit/miku_rabbit.mdl")
  25.     precache_model("models/player/Black_sister/Black_sister.mdl")
  26.     precache_model("models/player/kurumi/kurumi.mdl")
  27.     precache_model("models/player/kotori/kotori.mdl")
  28.     precache_model("models/player/sonic/sonic.mdl")
  29.     precache_model("models/player/santa/santa.mdl")
  30.     precache_model("models/player/scout/scout.mdl")
  31.     precache_model("models/player/turtleblue/turtleblue.mdl")
  32.     precache_model("models/player/tron/tron.mdl")
  33.     precache_model("models/player/naruto_bijuu/naruto_bijuu.mdl")
  34.     precache_model("models/player/goofy/goofy.mdl")
  35.     precache_model("models/player/civil_protection/civil_protection.mdl")
  36. }
  37.  
  38. public ze_user_humanized(id)
  39. {
  40.   g_iUsedTimes[id] = 0
  41.  
  42.   if (g_bkotaka[id])
  43.   {
  44.       rg_set_user_model(id, "kotaka")
  45.   }
  46.   else if (g_btrollface[id])
  47.   {
  48.       rg_set_user_model(id, "trollface")
  49.   }
  50.   else if (g_bhorseman[id])
  51.   {
  52.       rg_set_user_model(id, "horseman")
  53.   }
  54.   else if (g_bclonetrooper[id])
  55.   {
  56.       rg_set_user_model(id, "clonetrooper")
  57.   }
  58.   else if (g_bmiku_rabbit[id])
  59.   {
  60.       rg_set_user_model(id, "miku_rabbit")
  61.   }
  62.   else if (g_bBlack_sister[id])
  63.   {
  64.       rg_set_user_model(id, "Black_sister")
  65.   }
  66.   else if (g_bkurumi[id])
  67.   {
  68.       rg_set_user_model(id, "kurumi")
  69.   }
  70.   else if (g_bkotori[id])
  71.   {
  72.       rg_set_user_model(id, "kotori")
  73.   }
  74.   else if (g_bsonic[id])
  75.   {
  76.       rg_set_user_model(id, "sonic")
  77.   }
  78.   else if (g_bsanta[id])
  79.   {
  80.       rg_set_user_model(id, "santa")
  81.   }
  82.   else if (g_bscout[id])
  83.   {
  84.       rg_set_user_model(id, "scout")
  85.   }
  86.   else if (g_bturtleblue[id])
  87.   {
  88.       rg_set_user_model(id, "turtleblue")
  89.   }
  90.   else if (g_btron[id])
  91.   {
  92.       rg_set_user_model(id, "tron")
  93.   }
  94.   else if (g_bnaruto_bijuu[id])
  95.   {
  96.       rg_set_user_model(id, "naruto_bijuu")
  97.   }
  98.   else if (g_bgoofy[id])
  99.   {
  100.       rg_set_user_model(id, "goofy")
  101.   }
  102.   else if (g_bcivil_protection[id])
  103.   {
  104.       rg_set_user_model(id, "civil_protection")
  105.   }
  106. }
  107.  
  108. public model_menu(id)
  109. {
  110.     if (ze_is_user_zombie(id))
  111.     {
  112.         ze_colored_print(id, "!tYou can't change your skin while you are zombie!y.")
  113.         return PLUGIN_HANDLED
  114.     }
  115.     if (g_iUsedTimes[id] >= get_pcvar_num(g_pCvarUseTimes))
  116.     {
  117.         ze_colored_print(id, "!tYou have already changed your !gskin!y!")
  118.         return PLUGIN_HANDLED
  119.     }
  120.     else if (ze_get_vip_flags(id) & VIP_A)
  121.     {
  122.         ze_colored_print(id, "!tNo access!y.")
  123.         return PLUGIN_HANDLED
  124.     }
  125.     else
  126.     {
  127.         new menu = menu_create("\r[\wSkins Menu\r]\r", "menu_wybierz")
  128.    
  129.         menu_additem(menu, "\wKotaka \y| \r", "1", 0)
  130.         menu_additem(menu, "\wTroll \y| \rFace", "2", 0)
  131.         menu_additem(menu, "\wHorse \y| \rMan", "3", 0)
  132.         menu_additem(menu, "\wClone \y| \rTrooper", "4", 0)
  133.         menu_additem(menu, "\wMiku \y| \rRabbit", "5", 0)
  134.         menu_additem(menu, "\wBlack \y| \rSister", "6", 0)
  135.         menu_additem(menu, "\wKurumi \y| \r", "7", 0)
  136.         menu_additem(menu, "\wKotori \y| \r", "8", 0)
  137.         menu_additem(menu, "\wSonic \y| \r", "9", 0)
  138.         menu_additem(menu, "\wSanta \y| \r", "10", 0)
  139.         menu_additem(menu, "\wScout \y| \r", "11", 0)
  140.         menu_additem(menu, "\wTurtle \y| \rBlue", "12", 0)
  141.         menu_additem(menu, "\wTron \y| \r", "13", 0)
  142.         menu_additem(menu, "\wNaruto \y| \r", "14", 0)
  143.         menu_additem(menu, "\wGoofy \y| \r", "15", 0)
  144.         menu_additem(menu, "\wCivil \y| \rProtection", "16", 0)
  145.  
  146.    
  147.         menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
  148.         menu_display(id, menu, 0)
  149.     }
  150.     return PLUGIN_HANDLED
  151. }
  152. public menu_wybierz(id, menu, item)
  153. {
  154.     if (item == MENU_EXIT)
  155.     {
  156.         menu_destroy(menu)
  157.         return PLUGIN_HANDLED
  158.     }
  159.     new data[20], iName[500]
  160.     new acces, callback
  161.     menu_item_getinfo(menu, item, acces, data,20, iName, 500, callback)
  162.    
  163.     new key = str_to_num(data)
  164.    
  165.     switch(key)
  166.     {
  167.        case 1 : {
  168.         rg_set_user_model(id, "kotaka")
  169.         ze_colored_print(id, "!tYou picked!gKotaka Skin!y!", id)
  170.         g_iUsedTimes[id]++
  171.         g_bkotaka[id] = true
  172.         g_bhorseman[id] = false
  173.         g_btrollface[id] = false
  174.         g_bclonetrooper[id] = false
  175.         g_bmiku_rabbit[id] = false
  176.         g_bBlack_sister[id] = false
  177.         g_bkurumi[id] = false
  178.         g_bkotori[id] = false
  179.         g_bsonic[id] = false
  180.         g_bsanta[id] = false
  181.         g_bscout[id] = false
  182.         g_bturtleblue[id] = false
  183.         g_btron[id] = false
  184.         g_bnaruto_bijuu[id] = false
  185.         g_bgoofy[id] = false
  186.         g_bcivil_protection[id] = false
  187.         }
  188.        case 2 : {
  189.         rg_set_user_model(id, "trollface")
  190.         ze_colored_print(id, "!tYou picked!gTroll Face Skin!y!", id)
  191.         g_iUsedTimes[id]++
  192.         g_bkotaka[id] = false
  193.         g_btrollface[id] = true
  194.         g_bhorseman[id] = false
  195.         g_bclonetrooper[id] = false
  196.         g_bmiku_rabbit[id] = false
  197.         g_bBlack_sister[id] = false
  198.         g_bkurumi[id] = false
  199.         g_bkotori[id] = false
  200.         g_bsonic[id] = false
  201.         g_bsanta[id] = false
  202.         g_bscout[id] = false
  203.         g_bturtleblue[id] = false
  204.         g_btron[id] = false
  205.         g_bnaruto_bijuu[id] = false
  206.         g_bgoofy[id] = false
  207.         g_bcivil_protection[id] = false
  208.         }
  209.        case 3 : {
  210.         rg_set_user_model(id, "horseman")
  211.         ze_colored_print(id, "!tYou picked!gHorse Man Skin!y!", id)
  212.         g_iUsedTimes[id]++
  213.         g_bkotaka[id] = false
  214.         g_btrollface[id] = false
  215.         g_bhorseman[id] = true
  216.         g_bclonetrooper[id] = false
  217.         g_bmiku_rabbit[id] = false
  218.         g_bBlack_sister[id] = false
  219.         g_bkurumi[id] = false
  220.         g_bkotori[id] = false
  221.         g_bsonic[id] = false
  222.         g_bsanta[id] = false
  223.         g_bscout[id] = false
  224.         g_bturtleblue[id] = false
  225.         g_btron[id] = false
  226.         g_bnaruto_bijuu[id] = false
  227.         g_bgoofy[id] = false
  228.         g_bcivil_protection[id] = false
  229.         }
  230.        case 4 : {
  231.         rg_set_user_model(id, "clonetrooper")
  232.         ze_colored_print(id, "!tYou picked!gClone Trooper Skin!y!", id)
  233.         g_iUsedTimes[id]++
  234.         g_bkotaka[id] = false
  235.         g_btrollface[id] = false
  236.         g_bhorseman[id] = false
  237.         g_bclonetrooper[id] = true
  238.         g_bmiku_rabbit[id] = false
  239.         g_bBlack_sister[id] = false
  240.         g_bkurumi[id] = false
  241.         g_bkotori[id] = false
  242.         g_bsonic[id] = false
  243.         g_bsanta[id] = false
  244.         g_bscout[id] = false
  245.         g_bturtleblue[id] = false
  246.         g_btron[id] = false
  247.         g_bnaruto_bijuu[id] = false
  248.         g_bgoofy[id] = false
  249.         g_bcivil_protection[id] = false
  250.         }
  251.             case 5 : {
  252.         rg_set_user_model(id, "miku_rabbit")
  253.         ze_colored_print(id, "!tYou picked!gMiku Rabbit Skin!y!", id)
  254.         g_iUsedTimes[id]++
  255.         g_bkotaka[id] = false
  256.         g_btrollface[id] = false
  257.         g_bhorseman[id] = false
  258.         g_bclonetrooper[id] = false
  259.         g_bmiku_rabbit[id] = true
  260.         g_bBlack_sister[id] = false
  261.         g_bkurumi[id] = false
  262.         g_bkotori[id] = false
  263.         g_bsonic[id] = false
  264.         g_bsanta[id] = false
  265.         g_bscout[id] = false
  266.         g_bturtleblue[id] = false
  267.         g_btron[id] = false
  268.         g_bnaruto_bijuu[id] = false
  269.         g_bgoofy[id] = false
  270.         g_bcivil_protection[id] = false
  271.         }
  272.             case 6 : {
  273.         rg_set_user_model(id, "Black_sister")
  274.         ze_colored_print(id, "!tYou picked!gBlack Sister Skin!y!", id)
  275.         g_iUsedTimes[id]++
  276.         g_bkotaka[id] = false
  277.         g_btrollface[id] = false
  278.         g_bhorseman[id] = false
  279.         g_bclonetrooper[id] = false
  280.         g_bmiku_rabbit[id] = false
  281.         g_bBlack_sister[id] = true
  282.         g_bkurumi[id] = false
  283.         g_bkotori[id] = false
  284.         g_bsonic[id] = false
  285.         g_bsanta[id] = false
  286.         g_bscout[id] = false
  287.         g_bturtleblue[id] = false
  288.         g_btron[id] = false
  289.         g_bnaruto_bijuu[id] = false
  290.         g_bgoofy[id] = false
  291.         g_bcivil_protection[id] = false
  292.         }
  293.             case 7 : {
  294.         rg_set_user_model(id, "kurumi")
  295.         ze_colored_print(id, "!tYou picked!gKurumi Skin!y!", id)
  296.         g_iUsedTimes[id]++
  297.         g_bkotaka[id] = false
  298.         g_btrollface[id] = false
  299.         g_bhorseman[id] = false
  300.         g_bclonetrooper[id] = false
  301.         g_bmiku_rabbit[id] = false
  302.         g_bBlack_sister[id] = false
  303.         g_bkurumi[id] = true
  304.         g_bkotori[id] = false
  305.         g_bsonic[id] = false
  306.         g_bsanta[id] = false
  307.         g_bscout[id] = false
  308.         g_bturtleblue[id] = false
  309.         g_btron[id] = false
  310.         g_bnaruto_bijuu[id] = false
  311.         g_bgoofy[id] = false
  312.         g_bcivil_protection[id] = false
  313.         }
  314.             case 8 : {
  315.         rg_set_user_model(id, "kotori")
  316.         ze_colored_print(id, "!tYou picked!gKotori Skin!y!", id)
  317.         g_iUsedTimes[id]++
  318.         g_bkotaka[id] = false
  319.         g_btrollface[id] = false
  320.         g_bhorseman[id] = false
  321.         g_bclonetrooper[id] = false
  322.         g_bmiku_rabbit[id] = false
  323.         g_bBlack_sister[id] = false
  324.         g_bkurumi[id] = false
  325.         g_bkotori[id] = true
  326.         g_bsonic[id] = false
  327.         g_bsanta[id] = false
  328.         g_bscout[id] = false
  329.         g_bturtleblue[id] = false
  330.         g_btron[id] = false
  331.         g_bnaruto_bijuu[id] = false
  332.         g_bgoofy[id] = false
  333.         g_bcivil_protection[id] = false
  334.         }
  335.         case 9 : {
  336.         rg_set_user_model(id, "sonic")
  337.         ze_colored_print(id, "!tYou picked!gSonic Skin!y!", id)
  338.         g_iUsedTimes[id]++
  339.         g_bkotaka[id] = false
  340.         g_btrollface[id] = false
  341.         g_bhorseman[id] = false
  342.         g_bclonetrooper[id] = false
  343.         g_bmiku_rabbit[id] = false
  344.         g_bBlack_sister[id] = false
  345.         g_bkurumi[id] = false
  346.         g_bkotori[id] = false
  347.         g_bsonic[id] = true
  348.         g_bsanta[id] = false
  349.         g_bscout[id] = false
  350.         g_bturtleblue[id] = false
  351.         g_btron[id] = false
  352.         g_bnaruto_bijuu[id] = false
  353.         g_bgoofy[id] = false
  354.         g_bcivil_protection[id] = false
  355.         }
  356.         case 10 : {
  357.         rg_set_user_model(id, "santa")
  358.         ze_colored_print(id, "!tYou picked!gSanta Skin!y!", id)
  359.         g_iUsedTimes[id]++
  360.         g_bkotaka[id] = false
  361.         g_btrollface[id] = false
  362.         g_bhorseman[id] = false
  363.         g_bclonetrooper[id] = false
  364.         g_bmiku_rabbit[id] = false
  365.         g_bBlack_sister[id] = false
  366.         g_bkurumi[id] = false
  367.         g_bkotori[id] = false
  368.         g_bsonic[id] = false
  369.         g_bsanta[id] = true
  370.         g_bscout[id] = false
  371.         g_bturtleblue[id] = false
  372.         g_btron[id] = false
  373.         g_bnaruto_bijuu[id] = false
  374.         g_bgoofy[id] = false
  375.         g_bcivil_protection[id] = false
  376.         }
  377.         case 11 : {
  378.         rg_set_user_model(id, "scout")
  379.         ze_colored_print(id, "!tYou picked!gScout Skin!y!", id)
  380.         g_iUsedTimes[id]++
  381.         g_bkotaka[id] = false
  382.         g_btrollface[id] = false
  383.         g_bhorseman[id] = false
  384.         g_bclonetrooper[id] = false
  385.         g_bmiku_rabbit[id] = false
  386.         g_bBlack_sister[id] = false
  387.         g_bkurumi[id] = false
  388.         g_bkotori[id] = false
  389.         g_bsonic[id] = false
  390.         g_bsanta[id] = false
  391.         g_bscout[id] = true
  392.         g_bturtleblue[id] = false
  393.         g_btron[id] = false
  394.         g_bnaruto_bijuu[id] = false
  395.         g_bgoofy[id] = false
  396.         g_bcivil_protection[id] = false
  397.         }
  398.         case 12 : {
  399.         rg_set_user_model(id, "turtleblue")
  400.         ze_colored_print(id, "!tYou picked!gTurtle Blue Skin!y!", id)
  401.         g_iUsedTimes[id]++
  402.         g_bkotaka[id] = false
  403.         g_btrollface[id] = false
  404.         g_bhorseman[id] = false
  405.         g_bclonetrooper[id] = false
  406.         g_bmiku_rabbit[id] = false
  407.         g_bBlack_sister[id] = false
  408.         g_bkurumi[id] = false
  409.         g_bkotori[id] = false
  410.         g_bsonic[id] = false
  411.         g_bsanta[id] = false
  412.         g_bscout[id] = false
  413.         g_bturtleblue[id] = true
  414.         g_btron[id] = false
  415.         g_bnaruto_bijuu[id] = false
  416.         g_bgoofy[id] = false
  417.         g_bcivil_protection[id] = false
  418.         }
  419.         case 13 : {
  420.         rg_set_user_model(id, "tron")
  421.         ze_colored_print(id, "!tYou picked!gTron Skin!y!", id)
  422.         g_iUsedTimes[id]++
  423.         g_bkotaka[id] = false
  424.         g_btrollface[id] = false
  425.         g_bhorseman[id] = false
  426.         g_bclonetrooper[id] = false
  427.         g_bmiku_rabbit[id] = false
  428.         g_bBlack_sister[id] = false
  429.         g_bkurumi[id] = false
  430.         g_bkotori[id] = false
  431.         g_bsonic[id] = false
  432.         g_bsanta[id] = false
  433.         g_bscout[id] = false
  434.         g_bturtleblue[id] = false
  435.         g_btron[id] = true
  436.         g_bnaruto_bijuu[id] = false
  437.         g_bgoofy[id] = false
  438.         g_bcivil_protection[id] = false
  439.         }
  440.         case 14 : {
  441.         rg_set_user_model(id, "naruto_bijuu")
  442.         ze_colored_print(id, "!tYou picked!gNaruto Skin!y!", id)
  443.         g_iUsedTimes[id]++
  444.         g_bkotaka[id] = false
  445.         g_btrollface[id] = false
  446.         g_bhorseman[id] = false
  447.         g_bclonetrooper[id] = false
  448.         g_bmiku_rabbit[id] = false
  449.         g_bBlack_sister[id] = false
  450.         g_bkurumi[id] = false
  451.         g_bkotori[id] = false
  452.         g_bsonic[id] = false
  453.         g_bsanta[id] = false
  454.         g_bscout[id] = false
  455.         g_bturtleblue[id] = false
  456.         g_btron[id] = false
  457.         g_bnaruto_bijuu[id] = true
  458.         g_bgoofy[id] = false
  459.         g_bcivil_protection[id] = false
  460.         }
  461.         case 15 : {
  462.         rg_set_user_model(id, "goofy")
  463.         ze_colored_print(id, "!tYou picked!gGoofy Skin!y!", id)
  464.         g_iUsedTimes[id]++
  465.         g_bkotaka[id] = false
  466.         g_btrollface[id] = false
  467.         g_bhorseman[id] = false
  468.         g_bclonetrooper[id] = false
  469.         g_bmiku_rabbit[id] = false
  470.         g_bBlack_sister[id] = false
  471.         g_bkurumi[id] = false
  472.         g_bkotori[id] = false
  473.         g_bsonic[id] = false
  474.         g_bsanta[id] = false
  475.         g_bscout[id] = false
  476.         g_bturtleblue[id] = false
  477.         g_btron[id] = false
  478.         g_bnaruto_bijuu[id] = false
  479.         g_bgoofy[id] = true
  480.         g_bcivil_protection[id] = false
  481.         }
  482.         case 16 : {
  483.         rg_set_user_model(id, "civil_protection")
  484.         ze_colored_print(id, "!tYou picked!gCivil Protection Skin!y!", id)
  485.         g_iUsedTimes[id]++
  486.         g_bkotaka[id] = false
  487.         g_btrollface[id] = false
  488.         g_bhorseman[id] = false
  489.         g_bclonetrooper[id] = false
  490.         g_bmiku_rabbit[id] = false
  491.         g_bBlack_sister[id] = false
  492.         g_bkurumi[id] = false
  493.         g_bkotori[id] = false
  494.         g_bsonic[id] = false
  495.         g_bsanta[id] = false
  496.         g_bscout[id] = false
  497.         g_bturtleblue[id] = false
  498.         g_btron[id] = false
  499.         g_bnaruto_bijuu[id] = false
  500.         g_bgoofy[id] = false
  501.         g_bcivil_protection[id] = true
  502.         }
  503.     }
  504.     menu_destroy(menu)
  505.     return PLUGIN_HANDLED
  506. }  
  507. public native_ze_open_skin_menu(id)
  508. {
  509.     model_menu(id)
  510. }
  511. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  512. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1036\\ f0\\ fs16 \n\\ par }
  513. */

Try this let me know.
  1. #include <zombie_escape>
  2. #include <ze_vip>
  3.  
  4. new g_pCvarUseTimes
  5. new g_iUsedTimes[33]
  6. new bool:g_bkotaka[33], bool:g_btrollface[33], bool:g_bhorseman[33], bool:g_bclonetrooper[33], g_bmiku_rabbit[33], g_bBlack_sister[33], g_bkurumi[33], g_bkotori[33], g_bsonic[33], g_bsanta[33], g_bscout[33], g_bturtleblue[33], g_btron[33], g_bnaruto_bijuu[33], g_bgoofy[33] , g_bcivil_protection[33]
  7.  
  8. public plugin_natives()
  9. {
  10.     register_native("ze_open_skin_menu", "native_ze_open_skin_menu", 1)
  11. }
  12.  
  13. public plugin_init()
  14. {
  15.     register_plugin("[ZE] Skins", "1.1", "Spi")
  16.     g_pCvarUseTimes = register_cvar("ze_skin_menu_used", "1")
  17. }
  18. public plugin_precache()
  19. {
  20.     precache_model("models/player/kotaka/kotaka.mdl")
  21.     precache_model("models/player/trollface/trollface.mdl")
  22.     precache_model("models/player/horseman/horseman.mdl")
  23.     precache_model("models/player/clonetrooper/clonetrooper.mdl")
  24.     precache_model("models/player/miku_rabbit/miku_rabbit.mdl")
  25.     precache_model("models/player/Black_sister/Black_sister.mdl")
  26.     precache_model("models/player/kurumi/kurumi.mdl")
  27.     precache_model("models/player/kotori/kotori.mdl")
  28.     precache_model("models/player/sonic/sonic.mdl")
  29.     precache_model("models/player/santa/santa.mdl")
  30.     precache_model("models/player/scout/scout.mdl")
  31.     precache_model("models/player/turtleblue/turtleblue.mdl")
  32.     precache_model("models/player/tron/tron.mdl")
  33.     precache_model("models/player/naruto_bijuu/naruto_bijuu.mdl")
  34.     precache_model("models/player/goofy/goofy.mdl")
  35.     precache_model("models/player/civil_protection/civil_protection.mdl")
  36. }
  37.  
  38. public ze_user_humanized(id)
  39. {
  40.   g_iUsedTimes[id] = 0
  41.  
  42.   if (g_bkotaka[id])
  43.   {
  44.       rg_set_user_model(id, "kotaka")
  45.   }
  46.   else if (g_btrollface[id])
  47.   {
  48.       rg_set_user_model(id, "trollface")
  49.   }
  50.   else if (g_bhorseman[id])
  51.   {
  52.       rg_set_user_model(id, "horseman")
  53.   }
  54.   else if (g_bclonetrooper[id])
  55.   {
  56.       rg_set_user_model(id, "clonetrooper")
  57.   }
  58.   else if (g_bmiku_rabbit[id])
  59.   {
  60.       rg_set_user_model(id, "miku_rabbit")
  61.   }
  62.   else if (g_bBlack_sister[id])
  63.   {
  64.       rg_set_user_model(id, "Black_sister")
  65.   }
  66.   else if (g_bkurumi[id])
  67.   {
  68.       rg_set_user_model(id, "kurumi")
  69.   }
  70.   else if (g_bkotori[id])
  71.   {
  72.       rg_set_user_model(id, "kotori")
  73.   }
  74.   else if (g_bsonic[id])
  75.   {
  76.       rg_set_user_model(id, "sonic")
  77.   }
  78.   else if (g_bsanta[id])
  79.   {
  80.       rg_set_user_model(id, "santa")
  81.   }
  82.   else if (g_bscout[id])
  83.   {
  84.       rg_set_user_model(id, "scout")
  85.   }
  86.   else if (g_bturtleblue[id])
  87.   {
  88.       rg_set_user_model(id, "turtleblue")
  89.   }
  90.   else if (g_btron[id])
  91.   {
  92.       rg_set_user_model(id, "tron")
  93.   }
  94.   else if (g_bnaruto_bijuu[id])
  95.   {
  96.       rg_set_user_model(id, "naruto_bijuu")
  97.   }
  98.   else if (g_bgoofy[id])
  99.   {
  100.       rg_set_user_model(id, "goofy")
  101.   }
  102.   else if (g_bcivil_protection[id])
  103.   {
  104.       rg_set_user_model(id, "civil_protection")
  105.   }
  106. }
  107.  
  108. public show_models_menu(id)
  109. {
  110.     if (!is_user_connected(id))
  111.         return PLUGIN_CONTINUE
  112.  
  113.     if (ze_is_user_zombie(id))
  114.     {
  115.         ze_colored_print(id, "!tYou can't change your skin while you are zombie!y.")
  116.         return PLUGIN_HANDLED
  117.     }
  118.  
  119.     if (g_iUsedTimes[id] >= get_pcvar_num(g_pCvarUseTimes))
  120.     {
  121.         ze_colored_print(id, "!tYou have already changed your !gskin!y!", get_pcvar_num(g_pCvarUseTimes))
  122.         return PLUGIN_HANDLED
  123.     }
  124.  
  125.     if (!is_user_alive(id) && (ze_get_vip_flags(id) & VIP_A))
  126.     {
  127.         ze_colored_print(id, "!tNo access!y.")
  128.         return PLUGIN_HANDLED
  129.     }
  130.  
  131.     model_menu(id)
  132.     return PLUGIN_CONTINUE
  133. }
  134.  
  135. public model_menu(id)
  136. {
  137.         new menu = menu_create("\r[\wSkins Menu\r]\r", "menu_wybierz")
  138.    
  139.         menu_additem(menu, "\wKotaka \y| \r", "1", 0)
  140.         menu_additem(menu, "\wTroll \y| \rFace", "2", 0)
  141.         menu_additem(menu, "\wHorse \y| \rMan", "3", 0)
  142.         menu_additem(menu, "\wClone \y| \rTrooper", "4", 0)
  143.         menu_additem(menu, "\wMiku \y| \rRabbit", "5", 0)
  144.         menu_additem(menu, "\wBlack \y| \rSister", "6", 0)
  145.         menu_additem(menu, "\wKurumi \y| \r", "7", 0)
  146.         menu_additem(menu, "\wKotori \y| \r", "8", 0)
  147.         menu_additem(menu, "\wSonic \y| \r", "9", 0)
  148.         menu_additem(menu, "\wSanta \y| \r", "10", 0)
  149.         menu_additem(menu, "\wScout \y| \r", "11", 0)
  150.         menu_additem(menu, "\wTurtle \y| \rBlue", "12", 0)
  151.         menu_additem(menu, "\wTron \y| \r", "13", 0)
  152.         menu_additem(menu, "\wNaruto \y| \r", "14", 0)
  153.         menu_additem(menu, "\wGoofy \y| \r", "15", 0)
  154.         menu_additem(menu, "\wCivil \y| \rProtection", "16", 0)
  155.  
  156.    
  157.         menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
  158.         menu_display(id, menu, 0)
  159.     }
  160.     return PLUGIN_HANDLED
  161. }
  162. public menu_wybierz(id, menu, item)
  163. {
  164.     if (item == MENU_EXIT)
  165.     {
  166.         menu_destroy(menu)
  167.         return PLUGIN_HANDLED
  168.     }
  169.     new data[20], iName[500]
  170.     new acces, callback
  171.     menu_item_getinfo(menu, item, acces, data,20, iName, 500, callback)
  172.    
  173.     new key = str_to_num(data)
  174.    
  175.     switch(key)
  176.     {
  177.        case 1 : {
  178.         rg_set_user_model(id, "kotaka")
  179.         ze_colored_print(id, "!tYou picked!gKotaka Skin!y!", id)
  180.         g_iUsedTimes[id]++
  181.         g_bkotaka[id] = true
  182.         g_bhorseman[id] = false
  183.         g_btrollface[id] = false
  184.         g_bclonetrooper[id] = false
  185.         g_bmiku_rabbit[id] = false
  186.         g_bBlack_sister[id] = false
  187.         g_bkurumi[id] = false
  188.         g_bkotori[id] = false
  189.         g_bsonic[id] = false
  190.         g_bsanta[id] = false
  191.         g_bscout[id] = false
  192.         g_bturtleblue[id] = false
  193.         g_btron[id] = false
  194.         g_bnaruto_bijuu[id] = false
  195.         g_bgoofy[id] = false
  196.         g_bcivil_protection[id] = false
  197.         }
  198.        case 2 : {
  199.         rg_set_user_model(id, "trollface")
  200.         ze_colored_print(id, "!tYou picked!gTroll Face Skin!y!", id)
  201.         g_iUsedTimes[id]++
  202.         g_bkotaka[id] = false
  203.         g_btrollface[id] = true
  204.         g_bhorseman[id] = false
  205.         g_bclonetrooper[id] = false
  206.         g_bmiku_rabbit[id] = false
  207.         g_bBlack_sister[id] = false
  208.         g_bkurumi[id] = false
  209.         g_bkotori[id] = false
  210.         g_bsonic[id] = false
  211.         g_bsanta[id] = false
  212.         g_bscout[id] = false
  213.         g_bturtleblue[id] = false
  214.         g_btron[id] = false
  215.         g_bnaruto_bijuu[id] = false
  216.         g_bgoofy[id] = false
  217.         g_bcivil_protection[id] = false
  218.         }
  219.        case 3 : {
  220.         rg_set_user_model(id, "horseman")
  221.         ze_colored_print(id, "!tYou picked!gHorse Man Skin!y!", id)
  222.         g_iUsedTimes[id]++
  223.         g_bkotaka[id] = false
  224.         g_btrollface[id] = false
  225.         g_bhorseman[id] = true
  226.         g_bclonetrooper[id] = false
  227.         g_bmiku_rabbit[id] = false
  228.         g_bBlack_sister[id] = false
  229.         g_bkurumi[id] = false
  230.         g_bkotori[id] = false
  231.         g_bsonic[id] = false
  232.         g_bsanta[id] = false
  233.         g_bscout[id] = false
  234.         g_bturtleblue[id] = false
  235.         g_btron[id] = false
  236.         g_bnaruto_bijuu[id] = false
  237.         g_bgoofy[id] = false
  238.         g_bcivil_protection[id] = false
  239.         }
  240.        case 4 : {
  241.         rg_set_user_model(id, "clonetrooper")
  242.         ze_colored_print(id, "!tYou picked!gClone Trooper Skin!y!", id)
  243.         g_iUsedTimes[id]++
  244.         g_bkotaka[id] = false
  245.         g_btrollface[id] = false
  246.         g_bhorseman[id] = false
  247.         g_bclonetrooper[id] = true
  248.         g_bmiku_rabbit[id] = false
  249.         g_bBlack_sister[id] = false
  250.         g_bkurumi[id] = false
  251.         g_bkotori[id] = false
  252.         g_bsonic[id] = false
  253.         g_bsanta[id] = false
  254.         g_bscout[id] = false
  255.         g_bturtleblue[id] = false
  256.         g_btron[id] = false
  257.         g_bnaruto_bijuu[id] = false
  258.         g_bgoofy[id] = false
  259.         g_bcivil_protection[id] = false
  260.         }
  261.             case 5 : {
  262.         rg_set_user_model(id, "miku_rabbit")
  263.         ze_colored_print(id, "!tYou picked!gMiku Rabbit Skin!y!", id)
  264.         g_iUsedTimes[id]++
  265.         g_bkotaka[id] = false
  266.         g_btrollface[id] = false
  267.         g_bhorseman[id] = false
  268.         g_bclonetrooper[id] = false
  269.         g_bmiku_rabbit[id] = true
  270.         g_bBlack_sister[id] = false
  271.         g_bkurumi[id] = false
  272.         g_bkotori[id] = false
  273.         g_bsonic[id] = false
  274.         g_bsanta[id] = false
  275.         g_bscout[id] = false
  276.         g_bturtleblue[id] = false
  277.         g_btron[id] = false
  278.         g_bnaruto_bijuu[id] = false
  279.         g_bgoofy[id] = false
  280.         g_bcivil_protection[id] = false
  281.         }
  282.             case 6 : {
  283.         rg_set_user_model(id, "Black_sister")
  284.         ze_colored_print(id, "!tYou picked!gBlack Sister Skin!y!", id)
  285.         g_iUsedTimes[id]++
  286.         g_bkotaka[id] = false
  287.         g_btrollface[id] = false
  288.         g_bhorseman[id] = false
  289.         g_bclonetrooper[id] = false
  290.         g_bmiku_rabbit[id] = false
  291.         g_bBlack_sister[id] = true
  292.         g_bkurumi[id] = false
  293.         g_bkotori[id] = false
  294.         g_bsonic[id] = false
  295.         g_bsanta[id] = false
  296.         g_bscout[id] = false
  297.         g_bturtleblue[id] = false
  298.         g_btron[id] = false
  299.         g_bnaruto_bijuu[id] = false
  300.         g_bgoofy[id] = false
  301.         g_bcivil_protection[id] = false
  302.         }
  303.             case 7 : {
  304.         rg_set_user_model(id, "kurumi")
  305.         ze_colored_print(id, "!tYou picked!gKurumi Skin!y!", id)
  306.         g_iUsedTimes[id]++
  307.         g_bkotaka[id] = false
  308.         g_btrollface[id] = false
  309.         g_bhorseman[id] = false
  310.         g_bclonetrooper[id] = false
  311.         g_bmiku_rabbit[id] = false
  312.         g_bBlack_sister[id] = false
  313.         g_bkurumi[id] = true
  314.         g_bkotori[id] = false
  315.         g_bsonic[id] = false
  316.         g_bsanta[id] = false
  317.         g_bscout[id] = false
  318.         g_bturtleblue[id] = false
  319.         g_btron[id] = false
  320.         g_bnaruto_bijuu[id] = false
  321.         g_bgoofy[id] = false
  322.         g_bcivil_protection[id] = false
  323.         }
  324.             case 8 : {
  325.         rg_set_user_model(id, "kotori")
  326.         ze_colored_print(id, "!tYou picked!gKotori Skin!y!", id)
  327.         g_iUsedTimes[id]++
  328.         g_bkotaka[id] = false
  329.         g_btrollface[id] = false
  330.         g_bhorseman[id] = false
  331.         g_bclonetrooper[id] = false
  332.         g_bmiku_rabbit[id] = false
  333.         g_bBlack_sister[id] = false
  334.         g_bkurumi[id] = false
  335.         g_bkotori[id] = true
  336.         g_bsonic[id] = false
  337.         g_bsanta[id] = false
  338.         g_bscout[id] = false
  339.         g_bturtleblue[id] = false
  340.         g_btron[id] = false
  341.         g_bnaruto_bijuu[id] = false
  342.         g_bgoofy[id] = false
  343.         g_bcivil_protection[id] = false
  344.         }
  345.         case 9 : {
  346.         rg_set_user_model(id, "sonic")
  347.         ze_colored_print(id, "!tYou picked!gSonic Skin!y!", id)
  348.         g_iUsedTimes[id]++
  349.         g_bkotaka[id] = false
  350.         g_btrollface[id] = false
  351.         g_bhorseman[id] = false
  352.         g_bclonetrooper[id] = false
  353.         g_bmiku_rabbit[id] = false
  354.         g_bBlack_sister[id] = false
  355.         g_bkurumi[id] = false
  356.         g_bkotori[id] = false
  357.         g_bsonic[id] = true
  358.         g_bsanta[id] = false
  359.         g_bscout[id] = false
  360.         g_bturtleblue[id] = false
  361.         g_btron[id] = false
  362.         g_bnaruto_bijuu[id] = false
  363.         g_bgoofy[id] = false
  364.         g_bcivil_protection[id] = false
  365.         }
  366.         case 10 : {
  367.         rg_set_user_model(id, "santa")
  368.         ze_colored_print(id, "!tYou picked!gSanta Skin!y!", id)
  369.         g_iUsedTimes[id]++
  370.         g_bkotaka[id] = false
  371.         g_btrollface[id] = false
  372.         g_bhorseman[id] = false
  373.         g_bclonetrooper[id] = false
  374.         g_bmiku_rabbit[id] = false
  375.         g_bBlack_sister[id] = false
  376.         g_bkurumi[id] = false
  377.         g_bkotori[id] = false
  378.         g_bsonic[id] = false
  379.         g_bsanta[id] = true
  380.         g_bscout[id] = false
  381.         g_bturtleblue[id] = false
  382.         g_btron[id] = false
  383.         g_bnaruto_bijuu[id] = false
  384.         g_bgoofy[id] = false
  385.         g_bcivil_protection[id] = false
  386.         }
  387.         case 11 : {
  388.         rg_set_user_model(id, "scout")
  389.         ze_colored_print(id, "!tYou picked!gScout Skin!y!", id)
  390.         g_iUsedTimes[id]++
  391.         g_bkotaka[id] = false
  392.         g_btrollface[id] = false
  393.         g_bhorseman[id] = false
  394.         g_bclonetrooper[id] = false
  395.         g_bmiku_rabbit[id] = false
  396.         g_bBlack_sister[id] = false
  397.         g_bkurumi[id] = false
  398.         g_bkotori[id] = false
  399.         g_bsonic[id] = false
  400.         g_bsanta[id] = false
  401.         g_bscout[id] = true
  402.         g_bturtleblue[id] = false
  403.         g_btron[id] = false
  404.         g_bnaruto_bijuu[id] = false
  405.         g_bgoofy[id] = false
  406.         g_bcivil_protection[id] = false
  407.         }
  408.         case 12 : {
  409.         rg_set_user_model(id, "turtleblue")
  410.         ze_colored_print(id, "!tYou picked!gTurtle Blue Skin!y!", id)
  411.         g_iUsedTimes[id]++
  412.         g_bkotaka[id] = false
  413.         g_btrollface[id] = false
  414.         g_bhorseman[id] = false
  415.         g_bclonetrooper[id] = false
  416.         g_bmiku_rabbit[id] = false
  417.         g_bBlack_sister[id] = false
  418.         g_bkurumi[id] = false
  419.         g_bkotori[id] = false
  420.         g_bsonic[id] = false
  421.         g_bsanta[id] = false
  422.         g_bscout[id] = false
  423.         g_bturtleblue[id] = true
  424.         g_btron[id] = false
  425.         g_bnaruto_bijuu[id] = false
  426.         g_bgoofy[id] = false
  427.         g_bcivil_protection[id] = false
  428.         }
  429.         case 13 : {
  430.         rg_set_user_model(id, "tron")
  431.         ze_colored_print(id, "!tYou picked!gTron Skin!y!", id)
  432.         g_iUsedTimes[id]++
  433.         g_bkotaka[id] = false
  434.         g_btrollface[id] = false
  435.         g_bhorseman[id] = false
  436.         g_bclonetrooper[id] = false
  437.         g_bmiku_rabbit[id] = false
  438.         g_bBlack_sister[id] = false
  439.         g_bkurumi[id] = false
  440.         g_bkotori[id] = false
  441.         g_bsonic[id] = false
  442.         g_bsanta[id] = false
  443.         g_bscout[id] = false
  444.         g_bturtleblue[id] = false
  445.         g_btron[id] = true
  446.         g_bnaruto_bijuu[id] = false
  447.         g_bgoofy[id] = false
  448.         g_bcivil_protection[id] = false
  449.         }
  450.         case 14 : {
  451.         rg_set_user_model(id, "naruto_bijuu")
  452.         ze_colored_print(id, "!tYou picked!gNaruto Skin!y!", id)
  453.         g_iUsedTimes[id]++
  454.         g_bkotaka[id] = false
  455.         g_btrollface[id] = false
  456.         g_bhorseman[id] = false
  457.         g_bclonetrooper[id] = false
  458.         g_bmiku_rabbit[id] = false
  459.         g_bBlack_sister[id] = false
  460.         g_bkurumi[id] = false
  461.         g_bkotori[id] = false
  462.         g_bsonic[id] = false
  463.         g_bsanta[id] = false
  464.         g_bscout[id] = false
  465.         g_bturtleblue[id] = false
  466.         g_btron[id] = false
  467.         g_bnaruto_bijuu[id] = true
  468.         g_bgoofy[id] = false
  469.         g_bcivil_protection[id] = false
  470.         }
  471.         case 15 : {
  472.         rg_set_user_model(id, "goofy")
  473.         ze_colored_print(id, "!tYou picked!gGoofy Skin!y!", id)
  474.         g_iUsedTimes[id]++
  475.         g_bkotaka[id] = false
  476.         g_btrollface[id] = false
  477.         g_bhorseman[id] = false
  478.         g_bclonetrooper[id] = false
  479.         g_bmiku_rabbit[id] = false
  480.         g_bBlack_sister[id] = false
  481.         g_bkurumi[id] = false
  482.         g_bkotori[id] = false
  483.         g_bsonic[id] = false
  484.         g_bsanta[id] = false
  485.         g_bscout[id] = false
  486.         g_bturtleblue[id] = false
  487.         g_btron[id] = false
  488.         g_bnaruto_bijuu[id] = false
  489.         g_bgoofy[id] = true
  490.         g_bcivil_protection[id] = false
  491.         }
  492.         case 16 : {
  493.         rg_set_user_model(id, "civil_protection")
  494.         ze_colored_print(id, "!tYou picked!gCivil Protection Skin!y!", id)
  495.         g_iUsedTimes[id]++
  496.         g_bkotaka[id] = false
  497.         g_btrollface[id] = false
  498.         g_bhorseman[id] = false
  499.         g_bclonetrooper[id] = false
  500.         g_bmiku_rabbit[id] = false
  501.         g_bBlack_sister[id] = false
  502.         g_bkurumi[id] = false
  503.         g_bkotori[id] = false
  504.         g_bsonic[id] = false
  505.         g_bsanta[id] = false
  506.         g_bscout[id] = false
  507.         g_bturtleblue[id] = false
  508.         g_btron[id] = false
  509.         g_bnaruto_bijuu[id] = false
  510.         g_bgoofy[id] = false
  511.         g_bcivil_protection[id] = true
  512.         }
  513.     }
  514.     menu_destroy(menu)
  515.     return PLUGIN_HANDLED
  516. }  
  517. public native_ze_open_skin_menu(id)
  518. {
  519.     model_menu(id)
  520. }
  521. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  522. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1036\\ f0\\ fs16 \n\\ par }
  523. */

Mystic Viper
Member
Member
Romania
Posts: 87
Joined: 9 Months Ago
Has thanked: 1 time
Been thanked: 3 times
Contact:

#5

Post by Mystic Viper » 2 Months Ago

error 010: invalid function or declaration

User avatar
Mark
Senior Member
Senior Member
United States of America
Posts: 281
Joined: 10 Months Ago
Location: Des Moines/USA
Has thanked: 6 times
Been thanked: 21 times
Age: 33
Contact:

#6

Post by Mark » 2 Months Ago

Mystic Viper wrote:
2 Months Ago
error 010: invalid function or declaration
Whoops Sorry Try now
  1. #include <zombie_escape>
  2. #include <ze_vip>
  3.  
  4. new g_pCvarUseTimes
  5. new g_iUsedTimes[33]
  6. new bool:g_bkotaka[33], bool:g_btrollface[33], bool:g_bhorseman[33], bool:g_bclonetrooper[33], g_bmiku_rabbit[33], g_bBlack_sister[33], g_bkurumi[33], g_bkotori[33], g_bsonic[33], g_bsanta[33], g_bscout[33], g_bturtleblue[33], g_btron[33], g_bnaruto_bijuu[33], g_bgoofy[33] , g_bcivil_protection[33]
  7.  
  8. public plugin_natives()
  9. {
  10.     register_native("ze_open_skin_menu", "native_ze_open_skin_menu", 1)
  11. }
  12.  
  13. public plugin_init()
  14. {
  15.     register_plugin("[ZE] Skins", "1.1", "Spi")
  16.     g_pCvarUseTimes = register_cvar("ze_skin_menu_used", "1")
  17. }
  18. public plugin_precache()
  19. {
  20.     precache_model("models/player/kotaka/kotaka.mdl")
  21.     precache_model("models/player/trollface/trollface.mdl")
  22.     precache_model("models/player/horseman/horseman.mdl")
  23.     precache_model("models/player/clonetrooper/clonetrooper.mdl")
  24.     precache_model("models/player/miku_rabbit/miku_rabbit.mdl")
  25.     precache_model("models/player/Black_sister/Black_sister.mdl")
  26.     precache_model("models/player/kurumi/kurumi.mdl")
  27.     precache_model("models/player/kotori/kotori.mdl")
  28.     precache_model("models/player/sonic/sonic.mdl")
  29.     precache_model("models/player/santa/santa.mdl")
  30.     precache_model("models/player/scout/scout.mdl")
  31.     precache_model("models/player/turtleblue/turtleblue.mdl")
  32.     precache_model("models/player/tron/tron.mdl")
  33.     precache_model("models/player/naruto_bijuu/naruto_bijuu.mdl")
  34.     precache_model("models/player/goofy/goofy.mdl")
  35.     precache_model("models/player/civil_protection/civil_protection.mdl")
  36. }
  37.  
  38. public ze_user_humanized(id)
  39. {
  40.   g_iUsedTimes[id] = 0
  41.  
  42.   if (g_bkotaka[id])
  43.   {
  44.       rg_set_user_model(id, "kotaka")
  45.   }
  46.   else if (g_btrollface[id])
  47.   {
  48.       rg_set_user_model(id, "trollface")
  49.   }
  50.   else if (g_bhorseman[id])
  51.   {
  52.       rg_set_user_model(id, "horseman")
  53.   }
  54.   else if (g_bclonetrooper[id])
  55.   {
  56.       rg_set_user_model(id, "clonetrooper")
  57.   }
  58.   else if (g_bmiku_rabbit[id])
  59.   {
  60.       rg_set_user_model(id, "miku_rabbit")
  61.   }
  62.   else if (g_bBlack_sister[id])
  63.   {
  64.       rg_set_user_model(id, "Black_sister")
  65.   }
  66.   else if (g_bkurumi[id])
  67.   {
  68.       rg_set_user_model(id, "kurumi")
  69.   }
  70.   else if (g_bkotori[id])
  71.   {
  72.       rg_set_user_model(id, "kotori")
  73.   }
  74.   else if (g_bsonic[id])
  75.   {
  76.       rg_set_user_model(id, "sonic")
  77.   }
  78.   else if (g_bsanta[id])
  79.   {
  80.       rg_set_user_model(id, "santa")
  81.   }
  82.   else if (g_bscout[id])
  83.   {
  84.       rg_set_user_model(id, "scout")
  85.   }
  86.   else if (g_bturtleblue[id])
  87.   {
  88.       rg_set_user_model(id, "turtleblue")
  89.   }
  90.   else if (g_btron[id])
  91.   {
  92.       rg_set_user_model(id, "tron")
  93.   }
  94.   else if (g_bnaruto_bijuu[id])
  95.   {
  96.       rg_set_user_model(id, "naruto_bijuu")
  97.   }
  98.   else if (g_bgoofy[id])
  99.   {
  100.       rg_set_user_model(id, "goofy")
  101.   }
  102.   else if (g_bcivil_protection[id])
  103.   {
  104.       rg_set_user_model(id, "civil_protection")
  105.   }
  106. }
  107.  
  108. public show_models_menu(id)
  109. {
  110.     if (!is_user_connected(id))
  111.         return PLUGIN_CONTINUE
  112.  
  113.     if (ze_is_user_zombie(id))
  114.     {
  115.         ze_colored_print(id, "!tYou can't change your skin while you are zombie!y.")
  116.         return PLUGIN_HANDLED
  117.     }
  118.  
  119.     if (g_iUsedTimes[id] >= get_pcvar_num(g_pCvarUseTimes))
  120.     {
  121.         ze_colored_print(id, "!tYou have already changed your !gskin!y!", get_pcvar_num(g_pCvarUseTimes))
  122.         return PLUGIN_HANDLED
  123.     }
  124.  
  125.     if (!is_user_alive(id) && (ze_get_vip_flags(id) & VIP_A))
  126.     {
  127.         ze_colored_print(id, "!tNo access!y.")
  128.         return PLUGIN_HANDLED
  129.     }
  130.  
  131.     model_menu(id)
  132.     return PLUGIN_CONTINUE
  133. }
  134.  
  135. public model_menu(id)
  136. {
  137.     new menu = menu_create("\r[\wSkins Menu\r]\r", "menu_wybierz")
  138.  
  139.     menu_additem(menu, "\wKotaka \y| \r", "1", 0)
  140.     menu_additem(menu, "\wTroll \y| \rFace", "2", 0)
  141.     menu_additem(menu, "\wHorse \y| \rMan", "3", 0)
  142.     menu_additem(menu, "\wClone \y| \rTrooper", "4", 0)
  143.     menu_additem(menu, "\wMiku \y| \rRabbit", "5", 0)
  144.     menu_additem(menu, "\wBlack \y| \rSister", "6", 0)
  145.     menu_additem(menu, "\wKurumi \y| \r", "7", 0)
  146.     menu_additem(menu, "\wKotori \y| \r", "8", 0)
  147.     menu_additem(menu, "\wSonic \y| \r", "9", 0)
  148.     menu_additem(menu, "\wSanta \y| \r", "10", 0)
  149.     menu_additem(menu, "\wScout \y| \r", "11", 0)
  150.     menu_additem(menu, "\wTurtle \y| \rBlue", "12", 0)
  151.     menu_additem(menu, "\wTron \y| \r", "13", 0)
  152.     menu_additem(menu, "\wNaruto \y| \r", "14", 0)
  153.     menu_additem(menu, "\wGoofy \y| \r", "15", 0)
  154.     menu_additem(menu, "\wCivil \y| \rProtection", "16", 0)
  155.  
  156.  
  157.     menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
  158.     menu_display(id, menu, 0)
  159. }
  160. public menu_wybierz(id, menu, item)
  161. {
  162.     if (item == MENU_EXIT)
  163.     {
  164.         menu_destroy(menu)
  165.         return PLUGIN_HANDLED
  166.     }
  167.     new data[20], iName[500]
  168.     new acces, callback
  169.     menu_item_getinfo(menu, item, acces, data,20, iName, 500, callback)
  170.    
  171.     new key = str_to_num(data)
  172.    
  173.     switch(key)
  174.     {
  175.        case 1 : {
  176.         rg_set_user_model(id, "kotaka")
  177.         ze_colored_print(id, "!tYou picked!gKotaka Skin!y!", id)
  178.         g_iUsedTimes[id]++
  179.         g_bkotaka[id] = true
  180.         g_bhorseman[id] = false
  181.         g_btrollface[id] = false
  182.         g_bclonetrooper[id] = false
  183.         g_bmiku_rabbit[id] = false
  184.         g_bBlack_sister[id] = false
  185.         g_bkurumi[id] = false
  186.         g_bkotori[id] = false
  187.         g_bsonic[id] = false
  188.         g_bsanta[id] = false
  189.         g_bscout[id] = false
  190.         g_bturtleblue[id] = false
  191.         g_btron[id] = false
  192.         g_bnaruto_bijuu[id] = false
  193.         g_bgoofy[id] = false
  194.         g_bcivil_protection[id] = false
  195.         }
  196.        case 2 : {
  197.         rg_set_user_model(id, "trollface")
  198.         ze_colored_print(id, "!tYou picked!gTroll Face Skin!y!", id)
  199.         g_iUsedTimes[id]++
  200.         g_bkotaka[id] = false
  201.         g_btrollface[id] = true
  202.         g_bhorseman[id] = false
  203.         g_bclonetrooper[id] = false
  204.         g_bmiku_rabbit[id] = false
  205.         g_bBlack_sister[id] = false
  206.         g_bkurumi[id] = false
  207.         g_bkotori[id] = false
  208.         g_bsonic[id] = false
  209.         g_bsanta[id] = false
  210.         g_bscout[id] = false
  211.         g_bturtleblue[id] = false
  212.         g_btron[id] = false
  213.         g_bnaruto_bijuu[id] = false
  214.         g_bgoofy[id] = false
  215.         g_bcivil_protection[id] = false
  216.         }
  217.        case 3 : {
  218.         rg_set_user_model(id, "horseman")
  219.         ze_colored_print(id, "!tYou picked!gHorse Man Skin!y!", id)
  220.         g_iUsedTimes[id]++
  221.         g_bkotaka[id] = false
  222.         g_btrollface[id] = false
  223.         g_bhorseman[id] = true
  224.         g_bclonetrooper[id] = false
  225.         g_bmiku_rabbit[id] = false
  226.         g_bBlack_sister[id] = false
  227.         g_bkurumi[id] = false
  228.         g_bkotori[id] = false
  229.         g_bsonic[id] = false
  230.         g_bsanta[id] = false
  231.         g_bscout[id] = false
  232.         g_bturtleblue[id] = false
  233.         g_btron[id] = false
  234.         g_bnaruto_bijuu[id] = false
  235.         g_bgoofy[id] = false
  236.         g_bcivil_protection[id] = false
  237.         }
  238.        case 4 : {
  239.         rg_set_user_model(id, "clonetrooper")
  240.         ze_colored_print(id, "!tYou picked!gClone Trooper Skin!y!", id)
  241.         g_iUsedTimes[id]++
  242.         g_bkotaka[id] = false
  243.         g_btrollface[id] = false
  244.         g_bhorseman[id] = false
  245.         g_bclonetrooper[id] = true
  246.         g_bmiku_rabbit[id] = false
  247.         g_bBlack_sister[id] = false
  248.         g_bkurumi[id] = false
  249.         g_bkotori[id] = false
  250.         g_bsonic[id] = false
  251.         g_bsanta[id] = false
  252.         g_bscout[id] = false
  253.         g_bturtleblue[id] = false
  254.         g_btron[id] = false
  255.         g_bnaruto_bijuu[id] = false
  256.         g_bgoofy[id] = false
  257.         g_bcivil_protection[id] = false
  258.         }
  259.             case 5 : {
  260.         rg_set_user_model(id, "miku_rabbit")
  261.         ze_colored_print(id, "!tYou picked!gMiku Rabbit Skin!y!", id)
  262.         g_iUsedTimes[id]++
  263.         g_bkotaka[id] = false
  264.         g_btrollface[id] = false
  265.         g_bhorseman[id] = false
  266.         g_bclonetrooper[id] = false
  267.         g_bmiku_rabbit[id] = true
  268.         g_bBlack_sister[id] = false
  269.         g_bkurumi[id] = false
  270.         g_bkotori[id] = false
  271.         g_bsonic[id] = false
  272.         g_bsanta[id] = false
  273.         g_bscout[id] = false
  274.         g_bturtleblue[id] = false
  275.         g_btron[id] = false
  276.         g_bnaruto_bijuu[id] = false
  277.         g_bgoofy[id] = false
  278.         g_bcivil_protection[id] = false
  279.         }
  280.             case 6 : {
  281.         rg_set_user_model(id, "Black_sister")
  282.         ze_colored_print(id, "!tYou picked!gBlack Sister Skin!y!", id)
  283.         g_iUsedTimes[id]++
  284.         g_bkotaka[id] = false
  285.         g_btrollface[id] = false
  286.         g_bhorseman[id] = false
  287.         g_bclonetrooper[id] = false
  288.         g_bmiku_rabbit[id] = false
  289.         g_bBlack_sister[id] = true
  290.         g_bkurumi[id] = false
  291.         g_bkotori[id] = false
  292.         g_bsonic[id] = false
  293.         g_bsanta[id] = false
  294.         g_bscout[id] = false
  295.         g_bturtleblue[id] = false
  296.         g_btron[id] = false
  297.         g_bnaruto_bijuu[id] = false
  298.         g_bgoofy[id] = false
  299.         g_bcivil_protection[id] = false
  300.         }
  301.             case 7 : {
  302.         rg_set_user_model(id, "kurumi")
  303.         ze_colored_print(id, "!tYou picked!gKurumi Skin!y!", id)
  304.         g_iUsedTimes[id]++
  305.         g_bkotaka[id] = false
  306.         g_btrollface[id] = false
  307.         g_bhorseman[id] = false
  308.         g_bclonetrooper[id] = false
  309.         g_bmiku_rabbit[id] = false
  310.         g_bBlack_sister[id] = false
  311.         g_bkurumi[id] = true
  312.         g_bkotori[id] = false
  313.         g_bsonic[id] = false
  314.         g_bsanta[id] = false
  315.         g_bscout[id] = false
  316.         g_bturtleblue[id] = false
  317.         g_btron[id] = false
  318.         g_bnaruto_bijuu[id] = false
  319.         g_bgoofy[id] = false
  320.         g_bcivil_protection[id] = false
  321.         }
  322.             case 8 : {
  323.         rg_set_user_model(id, "kotori")
  324.         ze_colored_print(id, "!tYou picked!gKotori Skin!y!", id)
  325.         g_iUsedTimes[id]++
  326.         g_bkotaka[id] = false
  327.         g_btrollface[id] = false
  328.         g_bhorseman[id] = false
  329.         g_bclonetrooper[id] = false
  330.         g_bmiku_rabbit[id] = false
  331.         g_bBlack_sister[id] = false
  332.         g_bkurumi[id] = false
  333.         g_bkotori[id] = true
  334.         g_bsonic[id] = false
  335.         g_bsanta[id] = false
  336.         g_bscout[id] = false
  337.         g_bturtleblue[id] = false
  338.         g_btron[id] = false
  339.         g_bnaruto_bijuu[id] = false
  340.         g_bgoofy[id] = false
  341.         g_bcivil_protection[id] = false
  342.         }
  343.         case 9 : {
  344.         rg_set_user_model(id, "sonic")
  345.         ze_colored_print(id, "!tYou picked!gSonic Skin!y!", id)
  346.         g_iUsedTimes[id]++
  347.         g_bkotaka[id] = false
  348.         g_btrollface[id] = false
  349.         g_bhorseman[id] = false
  350.         g_bclonetrooper[id] = false
  351.         g_bmiku_rabbit[id] = false
  352.         g_bBlack_sister[id] = false
  353.         g_bkurumi[id] = false
  354.         g_bkotori[id] = false
  355.         g_bsonic[id] = true
  356.         g_bsanta[id] = false
  357.         g_bscout[id] = false
  358.         g_bturtleblue[id] = false
  359.         g_btron[id] = false
  360.         g_bnaruto_bijuu[id] = false
  361.         g_bgoofy[id] = false
  362.         g_bcivil_protection[id] = false
  363.         }
  364.         case 10 : {
  365.         rg_set_user_model(id, "santa")
  366.         ze_colored_print(id, "!tYou picked!gSanta Skin!y!", id)
  367.         g_iUsedTimes[id]++
  368.         g_bkotaka[id] = false
  369.         g_btrollface[id] = false
  370.         g_bhorseman[id] = false
  371.         g_bclonetrooper[id] = false
  372.         g_bmiku_rabbit[id] = false
  373.         g_bBlack_sister[id] = false
  374.         g_bkurumi[id] = false
  375.         g_bkotori[id] = false
  376.         g_bsonic[id] = false
  377.         g_bsanta[id] = true
  378.         g_bscout[id] = false
  379.         g_bturtleblue[id] = false
  380.         g_btron[id] = false
  381.         g_bnaruto_bijuu[id] = false
  382.         g_bgoofy[id] = false
  383.         g_bcivil_protection[id] = false
  384.         }
  385.         case 11 : {
  386.         rg_set_user_model(id, "scout")
  387.         ze_colored_print(id, "!tYou picked!gScout Skin!y!", id)
  388.         g_iUsedTimes[id]++
  389.         g_bkotaka[id] = false
  390.         g_btrollface[id] = false
  391.         g_bhorseman[id] = false
  392.         g_bclonetrooper[id] = false
  393.         g_bmiku_rabbit[id] = false
  394.         g_bBlack_sister[id] = false
  395.         g_bkurumi[id] = false
  396.         g_bkotori[id] = false
  397.         g_bsonic[id] = false
  398.         g_bsanta[id] = false
  399.         g_bscout[id] = true
  400.         g_bturtleblue[id] = false
  401.         g_btron[id] = false
  402.         g_bnaruto_bijuu[id] = false
  403.         g_bgoofy[id] = false
  404.         g_bcivil_protection[id] = false
  405.         }
  406.         case 12 : {
  407.         rg_set_user_model(id, "turtleblue")
  408.         ze_colored_print(id, "!tYou picked!gTurtle Blue Skin!y!", id)
  409.         g_iUsedTimes[id]++
  410.         g_bkotaka[id] = false
  411.         g_btrollface[id] = false
  412.         g_bhorseman[id] = false
  413.         g_bclonetrooper[id] = false
  414.         g_bmiku_rabbit[id] = false
  415.         g_bBlack_sister[id] = false
  416.         g_bkurumi[id] = false
  417.         g_bkotori[id] = false
  418.         g_bsonic[id] = false
  419.         g_bsanta[id] = false
  420.         g_bscout[id] = false
  421.         g_bturtleblue[id] = true
  422.         g_btron[id] = false
  423.         g_bnaruto_bijuu[id] = false
  424.         g_bgoofy[id] = false
  425.         g_bcivil_protection[id] = false
  426.         }
  427.         case 13 : {
  428.         rg_set_user_model(id, "tron")
  429.         ze_colored_print(id, "!tYou picked!gTron Skin!y!", id)
  430.         g_iUsedTimes[id]++
  431.         g_bkotaka[id] = false
  432.         g_btrollface[id] = false
  433.         g_bhorseman[id] = false
  434.         g_bclonetrooper[id] = false
  435.         g_bmiku_rabbit[id] = false
  436.         g_bBlack_sister[id] = false
  437.         g_bkurumi[id] = false
  438.         g_bkotori[id] = false
  439.         g_bsonic[id] = false
  440.         g_bsanta[id] = false
  441.         g_bscout[id] = false
  442.         g_bturtleblue[id] = false
  443.         g_btron[id] = true
  444.         g_bnaruto_bijuu[id] = false
  445.         g_bgoofy[id] = false
  446.         g_bcivil_protection[id] = false
  447.         }
  448.         case 14 : {
  449.         rg_set_user_model(id, "naruto_bijuu")
  450.         ze_colored_print(id, "!tYou picked!gNaruto Skin!y!", id)
  451.         g_iUsedTimes[id]++
  452.         g_bkotaka[id] = false
  453.         g_btrollface[id] = false
  454.         g_bhorseman[id] = false
  455.         g_bclonetrooper[id] = false
  456.         g_bmiku_rabbit[id] = false
  457.         g_bBlack_sister[id] = false
  458.         g_bkurumi[id] = false
  459.         g_bkotori[id] = false
  460.         g_bsonic[id] = false
  461.         g_bsanta[id] = false
  462.         g_bscout[id] = false
  463.         g_bturtleblue[id] = false
  464.         g_btron[id] = false
  465.         g_bnaruto_bijuu[id] = true
  466.         g_bgoofy[id] = false
  467.         g_bcivil_protection[id] = false
  468.         }
  469.         case 15 : {
  470.         rg_set_user_model(id, "goofy")
  471.         ze_colored_print(id, "!tYou picked!gGoofy Skin!y!", id)
  472.         g_iUsedTimes[id]++
  473.         g_bkotaka[id] = false
  474.         g_btrollface[id] = false
  475.         g_bhorseman[id] = false
  476.         g_bclonetrooper[id] = false
  477.         g_bmiku_rabbit[id] = false
  478.         g_bBlack_sister[id] = false
  479.         g_bkurumi[id] = false
  480.         g_bkotori[id] = false
  481.         g_bsonic[id] = false
  482.         g_bsanta[id] = false
  483.         g_bscout[id] = false
  484.         g_bturtleblue[id] = false
  485.         g_btron[id] = false
  486.         g_bnaruto_bijuu[id] = false
  487.         g_bgoofy[id] = true
  488.         g_bcivil_protection[id] = false
  489.         }
  490.         case 16 : {
  491.         rg_set_user_model(id, "civil_protection")
  492.         ze_colored_print(id, "!tYou picked!gCivil Protection Skin!y!", id)
  493.         g_iUsedTimes[id]++
  494.         g_bkotaka[id] = false
  495.         g_btrollface[id] = false
  496.         g_bhorseman[id] = false
  497.         g_bclonetrooper[id] = false
  498.         g_bmiku_rabbit[id] = false
  499.         g_bBlack_sister[id] = false
  500.         g_bkurumi[id] = false
  501.         g_bkotori[id] = false
  502.         g_bsonic[id] = false
  503.         g_bsanta[id] = false
  504.         g_bscout[id] = false
  505.         g_bturtleblue[id] = false
  506.         g_btron[id] = false
  507.         g_bnaruto_bijuu[id] = false
  508.         g_bgoofy[id] = false
  509.         g_bcivil_protection[id] = true
  510.         }
  511.     }
  512.     menu_destroy(menu)
  513.     return PLUGIN_HANDLED
  514. }  
  515. public native_ze_open_skin_menu(id)
  516. {
  517.     model_menu(id)
  518. }
  519. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  520. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1036\\ f0\\ fs16 \n\\ par }
  521. */

Mystic Viper
Member
Member
Romania
Posts: 87
Joined: 9 Months Ago
Has thanked: 1 time
Been thanked: 3 times
Contact:

#7

Post by Mystic Viper » 2 Months Ago

there is a problem
zm can open the menu and choose his skin while is zm...make it to not open while is zm

User avatar
Mark
Senior Member
Senior Member
United States of America
Posts: 281
Joined: 10 Months Ago
Location: Des Moines/USA
Has thanked: 6 times
Been thanked: 21 times
Age: 33
Contact:

#8

Post by Mark » 2 Months Ago

Mystic Viper wrote:
2 Months Ago
there is a problem
zm can open the menu and choose his skin while is zm...make it to not open while is zm
Are you sure?
This code says to not show the menu if a zombie.
  1.     if (ze_is_user_zombie(id))
  2.     {
  3.         ze_colored_print(id, "!tYou can't change your skin while you are zombie!y.")
  4.         return PLUGIN_HANDLED
  5.     }

Mystic Viper
Member
Member
Romania
Posts: 87
Joined: 9 Months Ago
Has thanked: 1 time
Been thanked: 3 times
Contact:

#9

Post by Mystic Viper » 2 Months Ago

nope...they can open it... i tested and if i'm zombie i can access the menu..and another thing...if u are human and u still open the menu and u are infected by a zombie then can choose his skin and zm has skins for humans...i think it's bugged this plugin

User avatar
Mark
Senior Member
Senior Member
United States of America
Posts: 281
Joined: 10 Months Ago
Location: Des Moines/USA
Has thanked: 6 times
Been thanked: 21 times
Age: 33
Contact:

#10

Post by Mark » 2 Months Ago

Mystic Viper wrote:
2 Months Ago
nope...they can open it... i tested and if i'm zombie i can access the menu..and another thing...if u are human and u still open the menu and u are infected by a zombie then can choose his skin and zm has skins for humans...i think it's bugged this plugin
Where did you get this plugin from lol

Heres the one i made for my server.
  1. #include <zombie_escape>
  2. #include <ze_vip>
  3.  
  4.  
  5. #define PLUGIN "Admin Model Menu"
  6. #define VERSION "1.0"
  7. #define AUTHOR "Mark"
  8.  
  9. new const Asasin_Models[][] =
  10. {
  11.     "models/player/Asasin/Asasin.mdl"
  12. }
  13.  
  14. new const Death_Models[][] =
  15. {
  16.     "models/player/Death/Death.mdl"
  17. }
  18.  
  19. new const Dobby_Models[][] =
  20. {
  21.     "models/player/Dobby/Dobby.mdl"
  22. }
  23.  
  24. new const Sonic_Models[][] =
  25. {
  26.     "models/player/Sonic/Sonic.mdl"
  27. }
  28.  
  29. new const Fiftycent_Models[][] =
  30. {
  31.     "models/player/50cent/50cent.mdl"
  32. }
  33.  
  34. new const Joker_Models[][] =
  35. {
  36.     "models/player/Joker/Joker.mdl"
  37. }
  38.  
  39. new const Iron_Models[][] =
  40. {
  41.     "models/player/Iron/Iron.mdl"
  42. }
  43.  
  44. new const DeadSpace2_Models[][] =
  45. {
  46.     "models/player/DeadSpace2/DeadSpace2.mdl"
  47. }
  48.  
  49. new const Trump_Models[][] =
  50. {
  51.     "models/player/Trump/Trump.mdl"
  52. }
  53.  
  54. new const Trollface_Models[][] =
  55. {
  56.     "models/player/Trollface/Trollface.mdl"
  57. }
  58.  
  59. new const Phantom_Models[][] =
  60. {
  61.     "models/player/Phantom/Phantom.mdl"
  62. }
  63.  
  64. new const Pirategirl_Models[][] =
  65. {
  66.     "models/player/Pirategirl/Pirategirl.mdl"
  67. }
  68.  
  69. new const Leo_Models[][] =
  70. {
  71.     "models/player/leo/leo.mdl"
  72. }
  73.  
  74. new const Mike_Models[][] =
  75. {
  76.     "models/player/mike/mike.mdl"
  77. }
  78.  
  79. new const Donatello_Models[][] =
  80. {
  81.     "models/player/don/don.mdl"
  82. }
  83.  
  84. new const Raphael_Models[][] =
  85. {
  86.     "models/player/raphael/raphael.mdl"
  87. }
  88.  
  89. new const Capamerica_Models[][] =
  90. {
  91.     "models/player/capamerica/capamerica.mdl"
  92. }
  93.  
  94. new const Batman_Models[][] =
  95. {
  96.     "models/player/batman/batman.mdl"
  97. }
  98.  
  99. new g_pCvarUseTimes
  100. new g_iUsedTimes[33]
  101.  
  102. new bool:g_bAssasin[33], bool:g_bDeath[33], bool:g_bDobby[33], bool:g_bSonic[33],
  103. bool:g_b50cent[33], bool:g_bJoker[33], bool:g_bIron[33], bool:g_bDeadSpace2[33],
  104. bool:g_bTrump[33], bool:g_bTrollface[33], bool:g_bPhantom[33], bool:g_bPirategirl[33],
  105. bool:g_bLeo[33], bool:g_bMike[33],bool:g_bDon[33], bool:g_bRaphael[33], bool:g_bCapamerica[33],
  106. bool:g_bBatman[33]
  107.  
  108.  
  109. public plugin_natives()
  110. {
  111.     register_native("ze_open_hskin_menu", "native_ze_open_hskin_menu", 1)
  112. }
  113.  
  114. public plugin_precache()
  115. {
  116.     new i
  117.  
  118.     for (i = 0; i <= charsmax(Asasin_Models); i++)
  119.         precache_model(Asasin_Models[i])
  120.  
  121.     for (i = 0; i <= charsmax(Death_Models); i++)
  122.         precache_model(Death_Models[i])
  123.  
  124.     for (i = 0; i <= charsmax(Dobby_Models); i++)
  125.         precache_model(Dobby_Models[i])
  126.  
  127.     for (i = 0; i <= charsmax(Sonic_Models); i++)
  128.         precache_model(Sonic_Models[i])
  129.  
  130.     for (i = 0; i <= charsmax(Fiftycent_Models); i++)
  131.         precache_model(Fiftycent_Models[i])
  132.  
  133.     for (i = 0; i <= charsmax(Joker_Models); i++)
  134.         precache_model(Joker_Models[i])
  135.  
  136.     for (i = 0; i <= charsmax(Iron_Models); i++)
  137.         precache_model(Iron_Models[i])
  138.  
  139.     for (i = 0; i <= charsmax(DeadSpace2_Models); i++)
  140.         precache_model(DeadSpace2_Models[i])
  141.  
  142.     for (i = 0; i <= charsmax(Trump_Models); i++)
  143.         precache_model(Trump_Models[i])
  144.  
  145.     for (i = 0; i <= charsmax(Trollface_Models); i++)
  146.         precache_model(Trollface_Models[i])
  147.  
  148.     for (i = 0; i <= charsmax(Phantom_Models); i++)
  149.         precache_model(Phantom_Models[i])
  150.  
  151.     for (i = 0; i <= charsmax(Pirategirl_Models); i++)
  152.         precache_model(Pirategirl_Models[i])
  153.        
  154.     for (i = 0; i <= charsmax(Leo_Models); i++)
  155.         precache_model(Leo_Models[i])
  156.  
  157.     for (i = 0; i <= charsmax(Mike_Models); i++)
  158.         precache_model(Mike_Models[i])
  159.  
  160.     for (i = 0; i <= charsmax(Donatello_Models); i++)
  161.         precache_model(Donatello_Models[i])
  162.  
  163.     for (i = 0; i <= charsmax(Raphael_Models); i++)
  164.         precache_model(Raphael_Models[i])
  165.  
  166.     for (i = 0; i <= charsmax(Capamerica_Models); i++)
  167.         precache_model(Capamerica_Models[i])
  168.  
  169.     for (i = 0; i <= charsmax(Batman_Models); i++)
  170.         precache_model(Batman_Models[i])
  171. }
  172.  
  173. public plugin_init()
  174. {
  175.     register_plugin(PLUGIN, VERSION, AUTHOR)
  176.     g_pCvarUseTimes = register_cvar("ze_hskin_menu_used", "1")
  177. }
  178.  
  179. public ze_user_humanized(id)
  180. {
  181.     if (g_bAssasin[id])
  182.     {
  183.         rg_set_user_model(id, "Asasin")
  184.     }
  185.     else if (g_bDeath[id])
  186.     {
  187.         rg_set_user_model(id, "Death")
  188.     }
  189.     else if (g_bDobby[id])
  190.     {
  191.         rg_set_user_model(id, "Dobby")
  192.     }
  193.     else if (g_bSonic[id])
  194.     {
  195.         rg_set_user_model(id, "Sonic")
  196.     }
  197.     else if ((g_b50cent[id]) && (ze_get_vip_flags(id) & VIP_A))
  198.     {
  199.         rg_set_user_model(id, "50cent")
  200.     }
  201.     else if ((g_bJoker[id]) && (ze_get_vip_flags(id) & VIP_A))
  202.     {
  203.         rg_set_user_model(id, "Joker")
  204.     }
  205.     else if ((g_bIron[id]) && (ze_get_vip_flags(id) & VIP_A))
  206.     {
  207.         rg_set_user_model(id, "Iron")
  208.     }
  209.     else if ((g_bDeadSpace2[id]) && (ze_get_vip_flags(id) & VIP_A))
  210.     {
  211.         rg_set_user_model(id, "DeadSpace2")
  212.     }
  213.     else if ((g_bTrump[id]) && (ze_get_vip_flags(id) & VIP_B))
  214.     {
  215.         rg_set_user_model(id, "Trump")
  216.     }
  217.     else if ((g_bTrollface[id]) && (ze_get_vip_flags(id) & VIP_B))
  218.     {
  219.         rg_set_user_model(id, "Trollface")
  220.     }
  221.     else if ((g_bPhantom[id]) && (ze_get_vip_flags(id) & VIP_B))
  222.     {
  223.         rg_set_user_model(id, "Phantom")
  224.     }
  225.     else if ((g_bPirategirl[id]) && (ze_get_vip_flags(id) & VIP_B))
  226.     {
  227.         rg_set_user_model(id, "Pirategirl")
  228.     }
  229.     else if ((g_bLeo[id]) && (ze_get_vip_flags(id) & VIP_C))
  230.     {
  231.         rg_set_user_model(id, "leo")
  232.     }
  233.     else if ((g_bMike[id]) && (ze_get_vip_flags(id) & VIP_C))
  234.     {
  235.         rg_set_user_model(id, "mike")
  236.     }
  237.     else if ((g_bDon[id]) && (ze_get_vip_flags(id) & VIP_C))
  238.     {
  239.         rg_set_user_model(id, "don")
  240.     }
  241.     else if ((g_bRaphael[id]) && (ze_get_vip_flags(id) & VIP_C))
  242.     {
  243.         rg_set_user_model(id, "raphael")
  244.     }
  245.     else if ((g_bCapamerica[id]) && (ze_get_vip_flags(id) & VIP_C))
  246.     {
  247.         rg_set_user_model(id, "capamerica")
  248.     }
  249.     else if ((g_bBatman[id]) && (ze_get_vip_flags(id) & VIP_C))
  250.     {
  251.         rg_set_user_model(id, "batman")
  252.     }
  253.    
  254.     g_iUsedTimes[id] = 0
  255. }
  256.  
  257. public ze_user_infected(Victim)
  258. {
  259.     g_iUsedTimes[Victim] = 0
  260. }
  261.  
  262. public client_putinserver(id)
  263. {
  264.     g_bAssasin[id] = false
  265.     g_bDeath[id] = false
  266.     g_bDobby[id] = false
  267.     g_bSonic[id] = false
  268.     g_b50cent[id] = false
  269.     g_bJoker[id] = false
  270.     g_bIron[id] = false
  271.     g_bDeadSpace2[id] = false
  272.     g_bTrump[id] = false
  273.     g_bTrollface[id] = false
  274.     g_bPhantom[id] = false
  275.     g_bPirategirl[id] = false
  276.     g_bLeo[id] = false
  277.     g_bMike[id] = false
  278.     g_bDon[id] = false
  279.     g_bRaphael[id] = false
  280.     g_bCapamerica[id] = false
  281.     g_bBatman[id] = false
  282.     g_iUsedTimes[id] = 0
  283. }
  284.  
  285. public client_disconnected(id)
  286. {
  287.     g_bAssasin[id] = false
  288.     g_bDeath[id] = false
  289.     g_bDobby[id] = false
  290.     g_bSonic[id] = false
  291.     g_b50cent[id] = false
  292.     g_bJoker[id] = false
  293.     g_bIron[id] = false
  294.     g_bDeadSpace2[id] = false
  295.     g_bTrump[id] = false
  296.     g_bTrollface[id] = false
  297.     g_bPhantom[id] = false
  298.     g_bPirategirl[id] = false
  299.     g_bLeo[id] = false
  300.     g_bMike[id] = false
  301.     g_bDon[id] = false
  302.     g_bRaphael[id] = false
  303.     g_bCapamerica[id] = false
  304.     g_bBatman[id] = false
  305.     g_iUsedTimes[id] = 0
  306. }
  307.  
  308. public Show_Hmodel_Menu(id)
  309. {
  310.     if (!is_user_connected(id))
  311.     {
  312.         return PLUGIN_CONTINUE
  313.     }
  314.    
  315.     if (ze_is_user_zombie(id))
  316.     {
  317.         ze_colored_print(id, "!tYou can't change your skin while zombie!y.")
  318.         return PLUGIN_HANDLED
  319.     }
  320.    
  321.     if (g_iUsedTimes[id] >= get_pcvar_num(g_pCvarUseTimes))
  322.     {
  323.         ze_colored_print(id, "!tMaximum have been reached !y[!g%d!y]!", get_pcvar_num(g_pCvarUseTimes))
  324.         return PLUGIN_HANDLED
  325.     }
  326.    
  327.     if (!is_user_alive(id))
  328.     {
  329.         ze_colored_print(id, "!tDead can't open knife menu!y.")
  330.         return PLUGIN_HANDLED
  331.     }
  332.    
  333.     Hmodel_Menu(id)
  334.     return PLUGIN_CONTINUE
  335. }
  336.  
  337. public Hmodel_Menu(id)
  338. {
  339.     new hmenu = menu_create("\rHuman Models\w:^n^n- [ \yMore Models Each Level of \w[ \rVIP\w ] ]^n- [ \r18 \yModels in Total!\w ] ^n-", "menu_hskins")
  340.     menu_additem(hmenu, "\yAssasin", "", 0)
  341.     menu_additem(hmenu, "\yDeath", "", 0)
  342.     menu_additem(hmenu, "\yDobby", "", 0)
  343.     menu_additem(hmenu, "\ySonic", "", 0)
  344.  
  345.     if (ze_get_vip_flags(id) & VIP_A)
  346.     {
  347.         menu_additem(hmenu, "\y50cent\w [ \rVIP\w ]", "", 0)
  348.         menu_additem(hmenu, "\yJoker\w [ \rVIP\w ]", "", 0)
  349.         menu_additem(hmenu, "\yIronMan\w [ \rVIP\w ]", "", 0)
  350.         menu_additem(hmenu, "\yDead Space\w [ \rVIP\w ]", "", 0)
  351.     }
  352.    
  353.     if (ze_get_vip_flags(id) & VIP_B)
  354.     {
  355.         menu_additem(hmenu, "\yTrump\w [ \rVIP+\w ]", "", 0)
  356.         menu_additem(hmenu, "\yTrollFace\w [ \rVIP+\w ]", "", 0)
  357.         menu_additem(hmenu, "\yPhantom\w [ \rVIP+\w ]", "", 0)
  358.         menu_additem(hmenu, "\yPirategirl\w [ \rVIP+\w ]", "", 0)
  359.     }
  360.  
  361.     if (ze_get_vip_flags(id) & VIP_C)
  362.     {
  363.         menu_additem(hmenu, "\yLeo\w [ \rVIP++\w ]", "", 0)
  364.         menu_additem(hmenu, "\yMike\w [ \rVIP++\w ]", "", 0)
  365.         menu_additem(hmenu, "\yDon\w [ \rVIP++\w ]", "", 0)
  366.         menu_additem(hmenu, "\yRaphael\w [ \rVIP++\w ]", "", 0)
  367.         menu_additem(hmenu, "\yCaptain America\w [ \rVIP++\w ]", "", 0)
  368.         menu_additem(hmenu, "\yBatman\w [ \rVIP++\w ]", "", 0)
  369.     }
  370.  
  371.     menu_setprop(hmenu, MPROP_PERPAGE, 6)
  372.     menu_setprop(hmenu, MPROP_EXITNAME,"\rClose")
  373.     menu_setprop(hmenu, MPROP_EXIT, MEXIT_ALL)
  374.     menu_display(id, hmenu, 0)
  375. }
  376.  
  377. public menu_hskins(id, hmenu, item)
  378. {
  379.     if(!is_user_alive(id) || ze_is_user_zombie(id))
  380.         return PLUGIN_HANDLED
  381.  
  382.     switch(item)
  383.     {
  384.         case 0 : // Assassin
  385.         {
  386.             g_bAssasin[id] = true
  387.             g_bDeath[id] = false
  388.             g_bDobby[id] = false
  389.             g_bSonic[id] = false
  390.             g_b50cent[id] = false
  391.             g_bJoker[id] = false
  392.             g_bIron[id] = false
  393.             g_bDeadSpace2[id] = false
  394.             g_bTrump[id] = false
  395.             g_bTrollface[id] = false
  396.             g_bPhantom[id] = false
  397.             g_bPirategirl[id] = false
  398.             g_bLeo[id] = false
  399.             g_bMike[id] = false
  400.             g_bDon[id] = false
  401.             g_bRaphael[id] = false
  402.             g_bCapamerica[id] = false
  403.             g_bBatman[id] = false
  404.             rg_set_user_model(id, "Asasin")
  405.             ze_colored_print(id, "You picked the Assassin skin", id)
  406.             g_iUsedTimes[id]++
  407.         }
  408.         case 1 : // Death
  409.         {
  410.             g_bAssasin[id] = false
  411.             g_bDeath[id] = true
  412.             g_bDobby[id] = false
  413.             g_bSonic[id] = false
  414.             g_b50cent[id] = false
  415.             g_bJoker[id] = false
  416.             g_bIron[id] = false
  417.             g_bDeadSpace2[id] = false
  418.             g_bTrump[id] = false
  419.             g_bTrollface[id] = false
  420.             g_bPhantom[id] = false
  421.             g_bPirategirl[id] = false
  422.             g_bLeo[id] = false
  423.             g_bMike[id] = false
  424.             g_bDon[id] = false
  425.             g_bRaphael[id] = false
  426.             g_bCapamerica[id] = false
  427.             g_bBatman[id] = false
  428.             rg_set_user_model(id, "Death")
  429.             ze_colored_print(id, "You picked the Death skin", id)
  430.             g_iUsedTimes[id]++
  431.         }
  432.         case 2 : // Dobby
  433.         {
  434.             g_bAssasin[id] = false
  435.             g_bDeath[id] = false
  436.             g_bDobby[id] = true
  437.             g_bSonic[id] = false
  438.             g_b50cent[id] = false
  439.             g_bJoker[id] = false
  440.             g_bIron[id] = false
  441.             g_bDeadSpace2[id] = false
  442.             g_bTrump[id] = false
  443.             g_bTrollface[id] = false
  444.             g_bPhantom[id] = false
  445.             g_bPirategirl[id] = false
  446.             g_bLeo[id] = false
  447.             g_bMike[id] = false
  448.             g_bDon[id] = false
  449.             g_bRaphael[id] = false
  450.             g_bCapamerica[id] = false
  451.             g_bBatman[id] = false
  452.             rg_set_user_model(id, "Dobby")
  453.             ze_colored_print(id, "You picked the Dobby skin", id)
  454.             g_iUsedTimes[id]++
  455.         }
  456.         case 3 : // Sonic
  457.         {
  458.             g_bAssasin[id] = false
  459.             g_bDeath[id] = false
  460.             g_bDobby[id] = false
  461.             g_bSonic[id] = true
  462.             g_b50cent[id] = false
  463.             g_bJoker[id] = false
  464.             g_bIron[id] = false
  465.             g_bDeadSpace2[id] = false
  466.             g_bTrump[id] = false
  467.             g_bTrollface[id] = false
  468.             g_bPhantom[id] = false
  469.             g_bPirategirl[id] = false
  470.             g_bLeo[id] = false
  471.             g_bMike[id] = false
  472.             g_bDon[id] = false
  473.             g_bRaphael[id] = false
  474.             g_bCapamerica[id] = false
  475.             g_bBatman[id] = false
  476.             rg_set_user_model(id, "Sonic")
  477.             ze_colored_print(id, "You picked the Sonic skin", id)
  478.             g_iUsedTimes[id]++
  479.         }
  480.         case 4 : // 50cent
  481.         {
  482.             if (ze_get_vip_flags(id) & VIP_A)
  483.             {
  484.                 g_bAssasin[id] = false
  485.                 g_bDeath[id] = false
  486.                 g_bDobby[id] = false
  487.                 g_bSonic[id] = false
  488.                 g_b50cent[id] = true
  489.                 g_bJoker[id] = false
  490.                 g_bIron[id] = false
  491.                 g_bDeadSpace2[id] = false
  492.                 g_bTrump[id] = false
  493.                 g_bTrollface[id] = false
  494.                 g_bPhantom[id] = false
  495.                 g_bPirategirl[id] = false
  496.                 g_bLeo[id] = false
  497.                 g_bMike[id] = false
  498.                 g_bDon[id] = false
  499.                 g_bRaphael[id] = false
  500.                 g_bCapamerica[id] = false
  501.                 g_bBatman[id] = false
  502.                 rg_set_user_model(id, "50cent")
  503.                 ze_colored_print(id, "You picked the 50cent skin", id)
  504.                 g_iUsedTimes[id]++
  505.             }
  506.         }
  507.         case 5 : // Joker
  508.         {
  509.             if (ze_get_vip_flags(id) & VIP_A)
  510.             {
  511.                 g_bAssasin[id] = false
  512.                 g_bDeath[id] = false
  513.                 g_bDobby[id] = false
  514.                 g_bSonic[id] = false
  515.                 g_b50cent[id] = false
  516.                 g_bJoker[id] = true
  517.                 g_bIron[id] = false
  518.                 g_bDeadSpace2[id] = false
  519.                 g_bTrump[id] = false
  520.                 g_bTrollface[id] = false
  521.                 g_bPhantom[id] = false
  522.                 g_bPirategirl[id] = false
  523.                 g_bLeo[id] = false
  524.                 g_bMike[id] = false
  525.                 g_bDon[id] = false
  526.                 g_bRaphael[id] = false
  527.                 g_bCapamerica[id] = false
  528.                 g_bBatman[id] = false
  529.                 rg_set_user_model(id, "Joker")
  530.                 ze_colored_print(id, "You picked the Joker skin", id)
  531.                 g_iUsedTimes[id]++
  532.             }
  533.         }
  534.         case 6 : //Iron
  535.         {
  536.             if (ze_get_vip_flags(id) & VIP_A)
  537.             {
  538.                 g_bAssasin[id] = false
  539.                 g_bDeath[id] = false
  540.                 g_bDobby[id] = false
  541.                 g_bSonic[id] = false
  542.                 g_b50cent[id] = false
  543.                 g_bJoker[id] = false
  544.                 g_bIron[id] = true
  545.                 g_bDeadSpace2[id] = false
  546.                 g_bTrump[id] = false
  547.                 g_bTrollface[id] = false
  548.                 g_bPhantom[id] = false
  549.                 g_bPirategirl[id] = false
  550.                 g_bLeo[id] = false
  551.                 g_bMike[id] = false
  552.                 g_bDon[id] = false
  553.                 g_bRaphael[id] = false
  554.                 g_bCapamerica[id] = false
  555.                 g_bBatman[id] = false
  556.                 rg_set_user_model(id, "Iron")
  557.                 ze_colored_print(id, "You picked the Iron Man skin", id)
  558.                 g_iUsedTimes[id]++
  559.             }
  560.         }
  561.         case 7 : // DeadSpace2
  562.         {
  563.             if (ze_get_vip_flags(id) & VIP_A)
  564.             {
  565.                 g_bAssasin[id] = false
  566.                 g_bDeath[id] = false
  567.                 g_bDobby[id] = false
  568.                 g_bSonic[id] = false
  569.                 g_b50cent[id] = false
  570.                 g_bJoker[id] = false
  571.                 g_bIron[id] = false
  572.                 g_bDeadSpace2[id] = true
  573.                 g_bTrump[id] = false
  574.                 g_bTrollface[id] = false
  575.                 g_bPhantom[id] = false
  576.                 g_bPirategirl[id] = false
  577.                 g_bLeo[id] = false
  578.                 g_bMike[id] = false
  579.                 g_bDon[id] = false
  580.                 g_bRaphael[id] = false
  581.                 g_bCapamerica[id] = false
  582.                 g_bBatman[id] = false
  583.                 rg_set_user_model(id, "DeadSpace2")
  584.                 ze_colored_print(id, "You picked the Dead Space skin", id)
  585.                 g_iUsedTimes[id]++
  586.             }
  587.         }
  588.         case 8 : // Trump
  589.         {      
  590.             if (ze_get_vip_flags(id) & VIP_B)
  591.             {
  592.                 g_bAssasin[id] = false
  593.                 g_bDeath[id] = false
  594.                 g_bDobby[id] = false
  595.                 g_bSonic[id] = false
  596.                 g_b50cent[id] = false
  597.                 g_bJoker[id] = false
  598.                 g_bIron[id] = false
  599.                 g_bDeadSpace2[id] = false
  600.                 g_bTrump[id] = true
  601.                 g_bTrollface[id] = false
  602.                 g_bPhantom[id] = false
  603.                 g_bPirategirl[id] = false
  604.                 g_bLeo[id] = false
  605.                 g_bMike[id] = false
  606.                 g_bDon[id] = false
  607.                 g_bRaphael[id] = false
  608.                 g_bCapamerica[id] = false
  609.                 g_bBatman[id] = false
  610.                 rg_set_user_model(id, "Trump")
  611.                 ze_colored_print(id, "You picked the Trump skin", id)
  612.                 g_iUsedTimes[id]++
  613.             }            
  614.         }
  615.         case 9 : // Trollface
  616.         {
  617.             if (ze_get_vip_flags(id) & VIP_B)
  618.             {
  619.                 g_bAssasin[id] = false
  620.                 g_bDeath[id] = false
  621.                 g_bDobby[id] = false
  622.                 g_bSonic[id] = false
  623.                 g_b50cent[id] = false
  624.                 g_bJoker[id] = false
  625.                 g_bIron[id] = false
  626.                 g_bDeadSpace2[id] = false
  627.                 g_bTrump[id] = false
  628.                 g_bTrollface[id] = true
  629.                 g_bPhantom[id] = false
  630.                 g_bPirategirl[id] = false
  631.                 g_bLeo[id] = false
  632.                 g_bMike[id] = false
  633.                 g_bDon[id] = false
  634.                 g_bRaphael[id] = false
  635.                 g_bCapamerica[id] = false
  636.                 g_bBatman[id] = false
  637.                 rg_set_user_model(id, "Trollface")
  638.                 ze_colored_print(id, "You picked the Trollface skin", id)
  639.                 g_iUsedTimes[id]++
  640.             }              
  641.         }
  642.         case 10 : // Phantom
  643.         {
  644.             if (ze_get_vip_flags(id) & VIP_B)
  645.             {
  646.                 g_bAssasin[id] = false
  647.                 g_bDeath[id] = false
  648.                 g_bDobby[id] = false
  649.                 g_bSonic[id] = false
  650.                 g_b50cent[id] = false
  651.                 g_bJoker[id] = false
  652.                 g_bIron[id] = false
  653.                 g_bDeadSpace2[id] = false
  654.                 g_bTrump[id] = false
  655.                 g_bTrollface[id] = false
  656.                 g_bPhantom[id] = true
  657.                 g_bPirategirl[id] = false
  658.                 g_bLeo[id] = false
  659.                 g_bMike[id] = false
  660.                 g_bDon[id] = false
  661.                 g_bRaphael[id] = false
  662.                 g_bCapamerica[id] = false
  663.                 g_bBatman[id] = false
  664.                 rg_set_user_model(id, "Phantom")
  665.                 ze_colored_print(id, "You picked the Phantom skin", id)
  666.                 g_iUsedTimes[id]++
  667.             }            
  668.         }
  669.         case 11 : // Pirategirl
  670.         {
  671.             if (ze_get_vip_flags(id) & VIP_B)
  672.             {
  673.                 g_bAssasin[id] = false
  674.                 g_bDeath[id] = false
  675.                 g_bDobby[id] = false
  676.                 g_bSonic[id] = false
  677.                 g_b50cent[id] = false
  678.                 g_bJoker[id] = false
  679.                 g_bIron[id] = false
  680.                 g_bDeadSpace2[id] = false
  681.                 g_bTrump[id] = false
  682.                 g_bTrollface[id] = false
  683.                 g_bPhantom[id] = false
  684.                 g_bPirategirl[id] = true
  685.                 g_bLeo[id] = false
  686.                 g_bMike[id] = false
  687.                 g_bDon[id] = false
  688.                 g_bRaphael[id] = false
  689.                 g_bCapamerica[id] = false
  690.                 g_bBatman[id] = false
  691.                 rg_set_user_model(id, "Pirategirl")
  692.                 ze_colored_print(id, "You picked the Pirategirl skin", id)
  693.                 g_iUsedTimes[id]++
  694.             }                      
  695.         }
  696.         case 12 : //Leonardo
  697.         {
  698.             if (ze_get_vip_flags(id) & VIP_C)
  699.             {
  700.                 g_bAssasin[id] = false
  701.                 g_bDeath[id] = false
  702.                 g_bDobby[id] = false
  703.                 g_bSonic[id] = false
  704.                 g_b50cent[id] = false
  705.                 g_bJoker[id] = false
  706.                 g_bIron[id] = false
  707.                 g_bDeadSpace2[id] = false
  708.                 g_bTrump[id] = false
  709.                 g_bTrollface[id] = false
  710.                 g_bPhantom[id] = false
  711.                 g_bPirategirl[id] = false
  712.                 g_bLeo[id] = true
  713.                 g_bMike[id] = false
  714.                 g_bDon[id] = false
  715.                 g_bRaphael[id] = false
  716.                 g_bCapamerica[id] = false
  717.                 g_bBatman[id] = false
  718.                 rg_set_user_model(id, "leo")
  719.                 ze_colored_print(id, "You picked the Leonardo skin", id)
  720.                 g_iUsedTimes[id]++
  721.             }              
  722.         }
  723.         case 13 : // Michelangelo
  724.         {
  725.             if (ze_get_vip_flags(id) & VIP_C)
  726.             {
  727.                 g_bAssasin[id] = false
  728.                 g_bDeath[id] = false
  729.                 g_bDobby[id] = false
  730.                 g_bSonic[id] = false
  731.                 g_b50cent[id] = false
  732.                 g_bJoker[id] = false
  733.                 g_bIron[id] = false
  734.                 g_bDeadSpace2[id] = false
  735.                 g_bTrump[id] = false
  736.                 g_bTrollface[id] = false
  737.                 g_bPhantom[id] = false
  738.                 g_bPirategirl[id] = false
  739.                 g_bLeo[id] = false
  740.                 g_bMike[id] = true
  741.                 g_bDon[id] = false
  742.                 g_bRaphael[id] = false
  743.                 g_bCapamerica[id] = false
  744.                 g_bBatman[id] = false
  745.                 rg_set_user_model(id, "mike")
  746.                 ze_colored_print(id, "You picked the Michelangelo skin", id)
  747.                 g_iUsedTimes[id]++
  748.             }      
  749.         }
  750.         case 14 : // Donatello
  751.         {
  752.             if (ze_get_vip_flags(id) & VIP_C)
  753.             {
  754.                 g_bAssasin[id] = false
  755.                 g_bDeath[id] = false
  756.                 g_bDobby[id] = false
  757.                 g_bSonic[id] = false
  758.                 g_b50cent[id] = false
  759.                 g_bJoker[id] = false
  760.                 g_bIron[id] = false
  761.                 g_bDeadSpace2[id] = false
  762.                 g_bTrump[id] = false
  763.                 g_bTrollface[id] = false
  764.                 g_bPhantom[id] = false
  765.                 g_bPirategirl[id] = false
  766.                 g_bLeo[id] = false
  767.                 g_bMike[id] = false
  768.                 g_bDon[id] = true
  769.                 g_bRaphael[id] = false
  770.                 g_bCapamerica[id] = false
  771.                 g_bBatman[id] = false
  772.                 rg_set_user_model(id, "don")
  773.                 ze_colored_print(id, "You picked the Donatello skin", id)
  774.                 g_iUsedTimes[id]++
  775.             }            
  776.         }
  777.         case 15 : // Raphael
  778.         {
  779.             if (ze_get_vip_flags(id) & VIP_C)
  780.             {
  781.                 g_bAssasin[id] = false
  782.                 g_bDeath[id] = false
  783.                 g_bDobby[id] = false
  784.                 g_bSonic[id] = false
  785.                 g_b50cent[id] = false
  786.                 g_bJoker[id] = false
  787.                 g_bIron[id] = false
  788.                 g_bDeadSpace2[id] = false
  789.                 g_bTrump[id] = false
  790.                 g_bTrollface[id] = false
  791.                 g_bPhantom[id] = false
  792.                 g_bPirategirl[id] = false
  793.                 g_bLeo[id] = false
  794.                 g_bMike[id] = false
  795.                 g_bDon[id] = false
  796.                 g_bRaphael[id] = true
  797.                 g_bCapamerica[id] = false
  798.                 g_bBatman[id] = false
  799.                 rg_set_user_model(id, "raphael")
  800.                 ze_colored_print(id, "You picked the Raphael skin", id)
  801.                 g_iUsedTimes[id]++
  802.             }              
  803.         }
  804.         case 16 : // Captian America
  805.         {
  806.             if (ze_get_vip_flags(id) & VIP_C)
  807.             {
  808.                 g_bAssasin[id] = false
  809.                 g_bDeath[id] = false
  810.                 g_bDobby[id] = false
  811.                 g_bSonic[id] = false
  812.                 g_b50cent[id] = false
  813.                 g_bJoker[id] = false
  814.                 g_bIron[id] = false
  815.                 g_bDeadSpace2[id] = false
  816.                 g_bTrump[id] = false
  817.                 g_bTrollface[id] = false
  818.                 g_bPhantom[id] = false
  819.                 g_bPirategirl[id] = false
  820.                 g_bLeo[id] = false
  821.                 g_bMike[id] = false
  822.                 g_bDon[id] = false
  823.                 g_bRaphael[id] = false
  824.                 g_bCapamerica[id] = true
  825.                 g_bBatman[id] = false
  826.                 rg_set_user_model(id, "capamerica")
  827.                 ze_colored_print(id, "You picked the Captian America skin", id)
  828.                 g_iUsedTimes[id]++
  829.             }          
  830.         }
  831.         case 17 : // Batman
  832.         {
  833.             if (ze_get_vip_flags(id) & VIP_C)
  834.             {
  835.                 g_bAssasin[id] = false
  836.                 g_bDeath[id] = false
  837.                 g_bDobby[id] = false
  838.                 g_bSonic[id] = false
  839.                 g_b50cent[id] = false
  840.                 g_bJoker[id] = false
  841.                 g_bIron[id] = false
  842.                 g_bDeadSpace2[id] = false
  843.                 g_bTrump[id] = false
  844.                 g_bTrollface[id] = false
  845.                 g_bPhantom[id] = false
  846.                 g_bPirategirl[id] = false
  847.                 g_bLeo[id] = false
  848.                 g_bMike[id] = false
  849.                 g_bDon[id] = false
  850.                 g_bRaphael[id] = false
  851.                 g_bCapamerica[id] = false
  852.                 g_bBatman[id] = true
  853.                 rg_set_user_model(id, "batman")
  854.                 ze_colored_print(id, "You picked the Batman skin", id)
  855.                 g_iUsedTimes[id]++
  856.             }            
  857.         }
  858.  
  859.     }    
  860.     menu_destroy(hmenu)
  861.     return PLUGIN_HANDLED
  862. }
  863.  
  864. public native_ze_open_hskin_menu(id)
  865. {
  866.     Show_Hmodel_Menu(id)
  867. }
For Zombies.
  1. #include <zombie_escape>
  2. #include <ze_vip>
  3.  
  4.  
  5. #define PLUGIN "Custom zModel Menu"
  6. #define VERSION "1.0"
  7. #define AUTHOR "Mark"
  8.  
  9. new const Butcher_Models[][] =
  10. {
  11.     "models/player/butcher_zom/butcher_zom.mdl"
  12. }
  13.  
  14. new const Doom_Models[][] =
  15. {
  16.     "models/player/doom_zom/doom_zom.mdl"
  17. }
  18.  
  19. new const Fleshpound_Models[][] =
  20. {
  21.     "models/player/fleshpound_zom/fleshpound_zom.mdl"
  22. }
  23.  
  24. new const Jumper_Models[][] =
  25. {
  26.     "models/player/jumper_zom/jumper_zom.mdl"
  27. }
  28.  
  29. new const Mon_Assassin_Models[][] =
  30. {
  31.     "models/player/monster_assassin_zom/monster_assassin_zom.mdl"
  32. }
  33.  
  34. new const Mon_Zom_Models[][] =
  35. {
  36.     "models/player/monster_zom/monster_zom.mdl"
  37. }
  38.  
  39. new const Abaddon_Models[][] =
  40. {
  41.     "models/player/abaddon_zom/abaddon_zom.mdl"
  42. }
  43.  
  44. new const Assassin_Zom_Models[][] =
  45. {
  46.     "models/player/assassin_zom/assassin_zom.mdl"
  47. }
  48.  
  49. new const Deimosboss_Models[][] =
  50. {
  51.     "models/player/deimosboss_zom/deimosboss_zom.mdl"
  52. }
  53.  
  54. new const Lockerz_Models[][] =
  55. {
  56.     "models/player/lockerz_zom/lockerz_zom.mdl"
  57. }
  58.  
  59. new const Mon_Nemesis_Models[][] =
  60. {
  61.     "models/player/monster_nemesis_zom/monster_nemesis_zom.mdl"
  62. }
  63.  
  64. new const NightCrawler_Models[][] =
  65. {
  66.     "models/player/nightcrawler_zom/nightcrawler_zom.mdl"
  67. }
  68.  
  69. new const NightRider_Models[][] =
  70. {
  71.     "models/player/nightrider_zom/nightrider_zom.mdl"
  72. }
  73.  
  74. new const Poison_Models[][] =
  75. {
  76.     "models/player/poison_nshaman_zom/poison_nshaman_zom.mdl"
  77. }
  78.  
  79. new const Predator_Models[][] =
  80. {
  81.     "models/player/predator_zom/predator_zom.mdl"
  82. }
  83.  
  84. new const Raptor_Models[][] =
  85. {
  86.     "models/player/raptor_zom/raptor_zom.mdl"
  87. }
  88.  
  89. new const RealBoss_Models[][] =
  90. {
  91.     "models/player/realboss_zom/realboss_zom.mdl"
  92. }
  93.  
  94. new const Replican_Models[][] =
  95. {
  96.     "models/player/replican_fear_zom/replican_fear_zom.mdl"
  97. }
  98.  
  99. new const Terminator_Models[][] =
  100. {
  101.     "models/player/terminator_zom/terminator_zom.mdl"
  102. }
  103.  
  104. new g_pCvarUseTimes
  105. new g_iUsedTimes[33]
  106.  
  107. new bool:g_bButcher[33], bool:g_bDoom[33], bool:g_bFleshpound[33], bool:g_bJumper[33],
  108. bool:g_bMon_Assassin[33], bool:g_bMon_Zom[33], bool:g_bAbaddon[33], bool:g_bAssassin_Zom[33],
  109. bool:g_bDeimosboss[33], bool:g_bLockerz[33], bool:g_bMon_Nemesis[33], bool:g_bNightCrawler[33],
  110. bool:g_bNightRider[33], bool:g_bPoison[33],bool:g_bPredator[33], bool:g_bRaptor[33], bool:g_bRealBoss[33],
  111. bool:g_bReplican[33], bool:g_bTerminator[33]
  112.  
  113.  
  114. public plugin_natives()
  115. {
  116.     register_native("ze_open_zskin_menu", "native_ze_open_zskin_menu", 1)
  117. }
  118.  
  119. public plugin_precache()
  120. {
  121.     new i
  122.  
  123.     for (i = 0; i <= charsmax(Butcher_Models); i++)
  124.         precache_model(Butcher_Models[i])
  125.  
  126.     for (i = 0; i <= charsmax(Doom_Models); i++)
  127.         precache_model(Doom_Models[i])
  128.  
  129.     for (i = 0; i <= charsmax(Fleshpound_Models); i++)
  130.         precache_model(Fleshpound_Models[i])
  131.  
  132.     for (i = 0; i <= charsmax(Jumper_Models); i++)
  133.         precache_model(Jumper_Models[i])
  134.  
  135.     for (i = 0; i <= charsmax(Mon_Assassin_Models); i++)
  136.         precache_model(Mon_Assassin_Models[i])
  137.  
  138.     for (i = 0; i <= charsmax(Mon_Zom_Models); i++)
  139.         precache_model(Mon_Zom_Models[i])
  140.  
  141.     for (i = 0; i <= charsmax(Abaddon_Models); i++)
  142.         precache_model(Abaddon_Models[i])
  143.  
  144.     for (i = 0; i <= charsmax(Assassin_Zom_Models); i++)
  145.         precache_model(Assassin_Zom_Models[i])
  146.  
  147.     for (i = 0; i <= charsmax(Deimosboss_Models); i++)
  148.         precache_model(Deimosboss_Models[i])
  149.  
  150.     for (i = 0; i <= charsmax(Lockerz_Models); i++)
  151.         precache_model(Lockerz_Models[i])
  152.  
  153.     for (i = 0; i <= charsmax(Mon_Nemesis_Models); i++)
  154.         precache_model(Mon_Nemesis_Models[i])
  155.  
  156.     for (i = 0; i <= charsmax(NightCrawler_Models); i++)
  157.         precache_model(NightCrawler_Models[i])
  158.        
  159.     for (i = 0; i <= charsmax(NightRider_Models); i++)
  160.         precache_model(NightRider_Models[i])
  161.  
  162.     for (i = 0; i <= charsmax(Poison_Models); i++)
  163.         precache_model(Poison_Models[i])
  164.  
  165.     for (i = 0; i <= charsmax(Predator_Models); i++)
  166.         precache_model(Predator_Models[i])
  167.  
  168.     for (i = 0; i <= charsmax(Raptor_Models); i++)
  169.         precache_model(Raptor_Models[i])
  170.  
  171.     for (i = 0; i <= charsmax(RealBoss_Models); i++)
  172.         precache_model(RealBoss_Models[i])
  173.  
  174.     for (i = 0; i <= charsmax(Replican_Models); i++)
  175.         precache_model(Replican_Models[i])
  176.        
  177.     for (i = 0; i <= charsmax(Terminator_Models); i++)
  178.         precache_model(Terminator_Models[i])
  179. }
  180.  
  181. public plugin_init()
  182. {
  183.     register_plugin(PLUGIN, VERSION, AUTHOR)
  184.     g_pCvarUseTimes = register_cvar("ze_hskin_menu_used", "1")
  185. }
  186.  
  187. public ze_user_infected(Victim)
  188. {
  189.     if (g_bButcher[Victim])
  190.     {
  191.         rg_set_user_model(Victim, "butcher_zom")
  192.     }
  193.     else if (g_bDoom[Victim])
  194.     {
  195.         rg_set_user_model(Victim, "doom_zom")
  196.     }
  197.     else if (g_bFleshpound[Victim])
  198.     {
  199.         rg_set_user_model(Victim, "fleshpound_zom")
  200.     }
  201.     else if (g_bJumper[Victim])
  202.     {
  203.         rg_set_user_model(Victim, "jumper_zom")
  204.     }
  205.     else if ((g_bMon_Assassin[Victim]) && (ze_get_vip_flags(Victim) & VIP_A))
  206.     {
  207.         rg_set_user_model(Victim, "monster_assassin_zom")
  208.     }
  209.     else if ((g_bMon_Zom[Victim]) && (ze_get_vip_flags(Victim) & VIP_A))
  210.     {
  211.         rg_set_user_model(Victim, "monster_zom")
  212.     }
  213.     else if ((g_bAbaddon[Victim]) && (ze_get_vip_flags(Victim) & VIP_A))
  214.     {
  215.         rg_set_user_model(Victim, "abaddon_zom")
  216.     }
  217.     else if ((g_bAssassin_Zom[Victim]) && (ze_get_vip_flags(Victim) & VIP_A))
  218.     {
  219.         rg_set_user_model(Victim, "assassin_zom")
  220.     }
  221.     else if ((g_bDeimosboss[Victim]) && (ze_get_vip_flags(Victim) & VIP_B))
  222.     {
  223.         rg_set_user_model(Victim, "deimosboss_zom")
  224.     }
  225.     else if ((g_bLockerz[Victim]) && (ze_get_vip_flags(Victim) & VIP_B))
  226.     {
  227.         rg_set_user_model(Victim, "lockerz_zom")
  228.     }
  229.     else if ((g_bMon_Nemesis[Victim]) && (ze_get_vip_flags(Victim) & VIP_B))
  230.     {
  231.         rg_set_user_model(Victim, "monster_nemesis_zom")
  232.     }
  233.     else if ((g_bNightCrawler[Victim]) && (ze_get_vip_flags(Victim) & VIP_B))
  234.     {
  235.         rg_set_user_model(Victim, "nightcrawler_zom")
  236.     }
  237.     else if ((g_bNightRider[Victim]) && (ze_get_vip_flags(Victim) & VIP_B))
  238.     {
  239.         rg_set_user_model(Victim, "nightrider_zom")
  240.     }
  241.     else if ((g_bPoison[Victim]) && (ze_get_vip_flags(Victim) & VIP_C))
  242.     {
  243.         rg_set_user_model(Victim, "poison_nshaman_zom")
  244.     }
  245.     else if ((g_bPredator[Victim]) && (ze_get_vip_flags(Victim) & VIP_C))
  246.     {
  247.         rg_set_user_model(Victim, "predator_zom")
  248.     }
  249.     else if ((g_bRaptor[Victim]) && (ze_get_vip_flags(Victim) & VIP_C))
  250.     {
  251.         rg_set_user_model(Victim, "raptor_zom")
  252.     }
  253.     else if ((g_bRealBoss[Victim]) && (ze_get_vip_flags(Victim) & VIP_C))
  254.     {
  255.         rg_set_user_model(Victim, "realboss_zom")
  256.     }
  257.     else if ((g_bReplican[Victim]) && (ze_get_vip_flags(Victim) & VIP_C))
  258.     {
  259.         rg_set_user_model(Victim, "replican_fear_zom")
  260.     }
  261.     else if ((g_bTerminator[Victim]) && (ze_get_vip_flags(Victim) & VIP_C))
  262.     {
  263.         rg_set_user_model(Victim, "terminator_zom")
  264.     }
  265.    
  266.     g_iUsedTimes[Victim] = 0
  267. }
  268.  
  269. public client_putinserver(id)
  270. {
  271.     g_bButcher[id] = false
  272.     g_bDoom[id] = false
  273.     g_bFleshpound[id] = false
  274.     g_bJumper[id] = false
  275.     g_bMon_Assassin[id] = false
  276.     g_bMon_Zom[id] = false
  277.     g_bAbaddon[id] = false
  278.     g_bAssassin_Zom[id] = false
  279.     g_bDeimosboss[id] = false
  280.     g_bLockerz[id] = false
  281.     g_bMon_Nemesis[id] = false
  282.     g_bNightCrawler[id] = false
  283.     g_bNightRider[id] = false
  284.     g_bPoison[id] = false
  285.     g_bPredator[id] = false
  286.     g_bRaptor[id] = false
  287.     g_bRealBoss[id] = false
  288.     g_bReplican[id] = false
  289.     g_bTerminator[id] = false
  290.     g_iUsedTimes[id] = 0
  291. }
  292.  
  293. public client_disconnected(id)
  294. {
  295.     g_bButcher[id] = false
  296.     g_bDoom[id] = false
  297.     g_bFleshpound[id] = false
  298.     g_bJumper[id] = false
  299.     g_bMon_Assassin[id] = false
  300.     g_bMon_Zom[id] = false
  301.     g_bAbaddon[id] = false
  302.     g_bAssassin_Zom[id] = false
  303.     g_bDeimosboss[id] = false
  304.     g_bLockerz[id] = false
  305.     g_bMon_Nemesis[id] = false
  306.     g_bNightCrawler[id] = false
  307.     g_bNightRider[id] = false
  308.     g_bPoison[id] = false
  309.     g_bPredator[id] = false
  310.     g_bRaptor[id] = false
  311.     g_bRealBoss[id] = false
  312.     g_bReplican[id] = false
  313.     g_bTerminator[id] = false
  314.     g_iUsedTimes[id] = 0
  315. }
  316.  
  317. public Show_Zmodel_Menu(id)
  318. {
  319.     if (!is_user_connected(id))
  320.     {
  321.         return PLUGIN_CONTINUE
  322.     }
  323.  
  324.     if (!ze_is_user_zombie(id))
  325.     {
  326.         ze_colored_print(id, "!tYou can't change your zombie skin while Human!y.")
  327.         return PLUGIN_HANDLED
  328.     }
  329.  
  330.     if (g_iUsedTimes[id] >= get_pcvar_num(g_pCvarUseTimes))
  331.     {
  332.         ze_colored_print(id, "!tMaximum have been reached !y[!g%d!y]!", get_pcvar_num(g_pCvarUseTimes))
  333.         return PLUGIN_HANDLED
  334.     }
  335.  
  336.     if (!is_user_alive(id))
  337.     {
  338.         ze_colored_print(id, "!tDead can't open menu!y.")
  339.         return PLUGIN_HANDLED
  340.     }
  341.  
  342.     Zmodel_Menu(id)
  343.     return PLUGIN_CONTINUE
  344. }
  345.  
  346. public Zmodel_Menu(id)
  347. {
  348.     new zmenu = menu_create("\rZombie Models\w:^n^n- [ \yMore Models Each Level of \w[ \rVIP\w ] ]^n- [ \r20\w Models in Total!\w ] ^n-", "menu_zskins")
  349.     menu_additem(zmenu, "\yButcher", "", 0)
  350.     menu_additem(zmenu, "\yDoom", "", 0)
  351.     menu_additem(zmenu, "\yFleshpound", "", 0)
  352.     menu_additem(zmenu, "\yJumper", "", 0)
  353.  
  354.     if (ze_get_vip_flags(id) & VIP_A)
  355.     {
  356.         menu_additem(zmenu, "\yMonster Assassin\w[ \rVIP\w ]", "", 0)
  357.         menu_additem(zmenu, "\yMonster\w [ \rVIP\w ]", "", 0)
  358.         menu_additem(zmenu, "\yAbaddon\w [ \rVIP\w ]", "", 0)
  359.         menu_additem(zmenu, "\yAssassin\w [ \rVIP\w ]", "", 0)
  360.     }
  361.  
  362.     if (ze_get_vip_flags(id) & VIP_B)
  363.     {
  364.         menu_additem(zmenu, "\yDeimosboss\w [ \rVIP+\w ]", "", 0)
  365.         menu_additem(zmenu, "\yLockerz\w [ \rVIP+\w ]", "", 0)
  366.         menu_additem(zmenu, "\yMonster Nemesis\w [ \rVIP+\w ]", "", 0)
  367.         menu_additem(zmenu, "\yNight Crawler\w [ \rVIP+\w ]", "", 0)
  368.         menu_additem(zmenu, "\yNight Rider\w [ \rVIP+\w ]", "", 0)
  369.     }
  370.  
  371.     if (ze_get_vip_flags(id) & VIP_C)
  372.     {
  373.         menu_additem(zmenu, "\yPoison\w [ \rVIP++\w ]", "", 0)
  374.         menu_additem(zmenu, "\yPredator\w [ \rVIP++\w ]", "", 0)
  375.         menu_additem(zmenu, "\yRaptor\w [ \rVIP++\w ]", "", 0)
  376.         menu_additem(zmenu, "\yRealBoss\w [ \rVIP++\w ]", "", 0)
  377.         menu_additem(zmenu, "\yReplican\w [ \rVIP++\w ]", "", 0)
  378.         menu_additem(zmenu, "\yTerminator\w [ \rVIP++\w ]", "", 0)
  379.     }
  380.    
  381.     menu_setprop(zmenu, MPROP_PERPAGE, 6)
  382.     menu_setprop(zmenu, MPROP_EXITNAME,"\rClose")
  383.     menu_setprop(zmenu, MPROP_EXIT, MEXIT_ALL)
  384.     menu_display(id, zmenu, 0)
  385. }
  386.  
  387. public menu_zskins(id, zmenu, item)
  388. {
  389.     if(!is_user_alive(id) || !ze_is_user_zombie(id))
  390.         return PLUGIN_HANDLED
  391.  
  392.     switch(item)
  393.     {
  394.         case 0 : // Butcher
  395.         {
  396.             g_bButcher[id] = true
  397.             g_bDoom[id] = false
  398.             g_bFleshpound[id] = false
  399.             g_bJumper[id] = false
  400.             g_bMon_Assassin[id] = false
  401.             g_bMon_Zom[id] = false
  402.             g_bAbaddon[id] = false
  403.             g_bAssassin_Zom[id] = false
  404.             g_bDeimosboss[id] = false
  405.             g_bLockerz[id] = false
  406.             g_bMon_Nemesis[id] = false
  407.             g_bNightCrawler[id] = false
  408.             g_bNightRider[id] = false
  409.             g_bPoison[id] = false
  410.             g_bPredator[id] = false
  411.             g_bRaptor[id] = false
  412.             g_bRealBoss[id] = false
  413.             g_bReplican[id] = false
  414.             g_bTerminator[id] = false
  415.             rg_set_user_model(id, "butcher_zom")
  416.             ze_colored_print(id, "You picked the Butcher skin", id)
  417.             g_iUsedTimes[id]++
  418.         }
  419.         case 1 : // Doom
  420.         {
  421.             g_bButcher[id] = false
  422.             g_bDoom[id] = true
  423.             g_bFleshpound[id] = false
  424.             g_bJumper[id] = false
  425.             g_bMon_Assassin[id] = false
  426.             g_bMon_Zom[id] = false
  427.             g_bAbaddon[id] = false
  428.             g_bAssassin_Zom[id] = false
  429.             g_bDeimosboss[id] = false
  430.             g_bLockerz[id] = false
  431.             g_bMon_Nemesis[id] = false
  432.             g_bNightCrawler[id] = false
  433.             g_bNightRider[id] = false
  434.             g_bPoison[id] = false
  435.             g_bPredator[id] = false
  436.             g_bRaptor[id] = false
  437.             g_bRealBoss[id] = false
  438.             g_bReplican[id] = false
  439.             g_bTerminator[id] = false
  440.             rg_set_user_model(id, "doom_zom")
  441.             ze_colored_print(id, "You picked the Doom skin", id)
  442.             g_iUsedTimes[id]++
  443.         }
  444.         case 2 : // Fleshpound