Raised This Month: $ Target: $400
 0% 

Help With vip model menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
alicx
BANNED
Join Date: Mar 2013
Location: Tunisia
Old 04-24-2013 , 12:39   Help With vip model menu
Reply With Quote #1

hi
i have maked this plugin but it don't work :'( please help me
this plugin allow vip to choose teir model when they connect
PHP Code:
#include < amxmodx >
#include < cstrike >
 
#define PLUGIN "Vip Skins Menu"
#define VERSION "1.0"
#define AUTHOR "Alicx"
 
public plugin_precache()
   {
       
precache_model("models/player/vip/CT_1.mdl");
       
precache_model("models/player/vip/CT_2.mdl");
       
precache_model("models/player/vip/TT_1.mdl");
       
precache_model("models/player/vip/TT_2.mdl");
   }
 
public 
plugin_init() {
   
register_plugin(PLUGINVERSIONAUTHOR)
 
   
register_clcmd"say /myskin",  "Skins_Menu" );
   }
 
public 
Skins_Menuid 

   new 
menu menu_create("Select Your Skin""skin_menu"
   
menu_additemmenu"Ct1""1"); 
   
menu_additemmenu"Ct2""2"); 
   
menu_additemmenu"Terro 1""3"); 
   
menu_additemmenu"Teroo 2""4"); 

   
menu_setpropmenuMPROP_EXITMEXIT_ALL );  
   
menu_displayidmenu); 

 
public 
skin_menu(idmenuitem)
{
  if (
item == MENU_EXIT)
  {
     
menu_destroy(menu)
     return 
PLUGIN_HANDLED;
  }
  new 
info[3]
  new 
accesscallback
  menu_item_getinfo
(menuitemaccessinfo2__callback)
 
  if(
is_user_alive(id))
  if(
get_user_flags(id) & ADMIN_LEVEL_H)
  {   
     new 
key str_to_num(info)
     new 
CsTeams:userTeam cs_get_user_team(id)

    
    
    if(
userTeam == CS_TEAM_CT) {
    switch(
key)
        
    case 
1:
        {
       
cs_set_user_model(id"CT_1")
        }
    case 
2:
        {
    
cs_set_user_model(id"CT_2")
        }
}

           else if (
userTeam == CS_TEAM_T) {
    switch(
key)
    case 
3:
        {
    
cs_set_user_model(id"TT_1")
        }
    case 
4:
        {
       
cs_set_user_model(id"TT_2")
        }
}
}
   return 
PLUGIN_CONTINUE;

alicx is offline
Send a message via MSN to alicx Send a message via Skype™ to alicx
 



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 00:39.


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