Raised This Month: $ Target: $400
 0% 

SkinMenu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Ace67
Senior Member
Join Date: Sep 2020
Location: France
Old 04-09-2021 , 08:30   SkinMenu
Reply With Quote #1

Hello, someone can edit this skin menu i want 4 Skin for Admin/VIP (Terminator/Joker/Goku/MyIchigo)
Just edit and add flags for only the flags can be use the item + print on the chat (Only VIP/Admin can use the skin, for use type /vipinfo)

I set the line here
Code:
/* Plugin generated by AMXX-Studio*/
//  Be careful! I just recomend this plugins for game mods like zombie because
// if player changes team the model still on him and you cant know if CT or TT
//  Remember that you need put your models with right name on right folder :D

#include < amxmodx >
#include < cstrike >

#define PLUGIN "Skins Menu"
#define VERSION "1.0"
#define AUTHOR "Jhob94"

public plugin_precache()
	{
		precache_model("models/player/Naruto/Naruto.mdl");
		precache_model("models/player/Gaara/Gaara.mdl");
		precache_model("models/player/Sasuke/Sasuke.mdl");
      precache_model("models/player/kisame/kisame.mdl");
      precache_model("models/player/Terminator/Terminator.mdl")
      precache_model("models/player/Joker/Joker.mdl")
      precache_model("models/player/MyIchigo/MyIchigo.mdl")
      precache_model("models/player/Goku/Goku.mdl")
	}

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	register_clcmd( "say /myskin", 	"Skins_Menu" );
	}
	
public Skins_Menu( id ) 
{ 
    new menu = menu_create("Select Your Skin", "skin_menu") 
    menu_additem( menu, "Naruto", "1", 0 ); 
    menu_additem( menu, "Gaara", "2", 0 ); 
    menu_additem( menu, "Sasuke", "3", 0 );
    menu_additem( menu, "kisame", "4", 0 );
    menu_additem(menu, "Terminator", "5", 0);
    menu_additem(menu, "Joker", "6", 0);
    menu_additem(menu, "MyIchigo", "7", 0);
    menu_additem(menu, "Goku", "8", 0);
    menu_setprop( menu, MPROP_EXIT, MEXIT_ALL );  
    menu_display( id, menu, 0 ); 
} 

public skin_menu(id, menu, item)
{
   if (item == MENU_EXIT)
   {
      menu_destroy(menu)
      return PLUGIN_HANDLED;
   }
   new info[3]
   new access, callback
   menu_item_getinfo(menu, item, access, info, 2, _, _, callback)
   
   if(is_user_alive(id))
   {   
      new key = str_to_num(info)
   
      switch(key)
      {
         case 1:
         {
	 	cs_set_user_model(id, "Naruto")
         }
	case 2:
         {
	 	cs_set_user_model(id, "Gaara")
         }
	case 3:
         {
	 	cs_set_user_model(id, "Sasuke")
         }
   case 4:
         {
	 	cs_set_user_model(id, "kisame")
         }
   case 5:
         {
	 	cs_set_user_model(id, "Terminator")
         }
   case 6:
         {
	 	cs_set_user_model(id, "Joker")
         }
   case 7:
         {
	 	cs_set_user_model(id, "MyIchigo")
         }
   case 8:
         {
	 	cs_set_user_model(id, "Goku")
         }
}
}
	return PLUGIN_CONTINUE;
}
__________________
CS:CZ > CS 1.6

Last edited by Ace67; 04-09-2021 at 08:32.
Ace67 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode