[ZE] Shop Skin Vip System

Coding Help/Re-API Supported
Post Reply
Mystic Viper
Member
Member
Romania
Posts: 27
Joined: 6 Months Ago
Has thanked: 0
Been thanked: 0
Contact:

[ZE] Shop Skin Vip System

#1

Post by Mystic Viper » 1 Week 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 4 times
ze_shop_skin_vip.sma
(16.11 KiB) Downloaded 4 times
Last edited by Mystic Viper on 19 Apr 2019, 21:42, edited 1 time in total.

Mystic Viper
Member
Member
Romania
Posts: 27
Joined: 6 Months Ago
Has thanked: 0
Been thanked: 0
Contact:

#2

Post by Mystic Viper » 3 Days Ago

help pls

Mystic Viper
Member
Member
Romania
Posts: 27
Joined: 6 Months Ago
Has thanked: 0
Been thanked: 0
Contact:

#3

Post by Mystic Viper » 3 Days 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: 265
Joined: 8 Months Ago
Location: Des Moines/USA
Donation: 1x donated in total €10.00
Has thanked: 6 times
Been thanked: 20 times
Age: 33
Contact:

#4

Post by Mark » 2 Days Ago

Mystic Viper wrote:
3 Days 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: 27
Joined: 6 Months Ago
Has thanked: 0
Been thanked: 0
Contact:

#5

Post by Mystic Viper » 1 Day Ago

error 010: invalid function or declaration

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

#6

Post by Mark » 8 Hours Ago

Mystic Viper wrote:
1 Day 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: 27
Joined: 6 Months Ago
Has thanked: 0
Been thanked: 0
Contact:

#7

Post by Mystic Viper » 3 Hours 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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest