Raised This Month: $ Target: $400
 0% 

Toggle Camouflage


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
tulgaoguz
New Member
Join Date: Nov 2010
Old 11-14-2010 , 11:35   Re: Toggle Camouflage
Reply With Quote #4

here the full codes. Where is the wrong ? :/

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>
 
public plugin_init()
{
     
register_plugin("CAMenu""0.10""Oguz&Tulga");
     
register_clcmd("say !camenu""CokAmacliMenu");
}
 
public 
CokAmacliMenu(id)
{
     new 
menu menu_create("\yCokAmacliMenu:""camenu_handler");
 
     
menu_additem(menu"\wCamouflage On&Off""1"ADMIN_LEVEL_A);
 
     
menu_setprop(menuMPROP_EXITMEXIT_ALL);
 
     
menu_display(idmenu0);
}
 
public 
camenu_handler(idmenuitem)
{
     if( 
item == MENU_EXIT )
     {
          
menu_destroy(menu);
 
          return 
PLUGIN_HANDLED;
     }
 
     new 
data[6], iName[64];
     new 
accesscallback;
 
     
menu_item_getinfo(menuitemaccessdata5iName63callback);
 
     new 
key str_to_num(data);
 
     switch(
key)
     {
          case 
1:
          {
               new 
team;
               
team get_user_team(id);
               if (
team == 1)  //TERRORIST
               
{
                    
cs_set_user_model(id"urban");
                    
set_hudmessage(25500, -1.0, -1.0);
                    
show_hudmessage(id"Suan CT Gorunumundesiniz");
               }
               else if (
team == 2)
               {
                    
cs_set_user_model(id"leet");
                    
set_hudmessage(25500, -1.0, -1.0);
                    
show_hudmessage(id"Suan T Gorunumundesiniz");
               }
 
               
CokAmacliMenu(id);
          }
     }
 
     return 
PLUGIN_HANDLED;

tulgaoguz 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 11:25.


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