Raised This Month: $ Target: $400
 0% 

Help with CS_TEAMS


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 05-18-2009 , 08:38   Re: Help with CS_TEAMS
Reply With Quote #1

PHP Code:
if(get_user_team(id) == 1)
{
public 
ShowZmenu(id)
{
new 
menu menu_create("\rZombie Classes:""menu_handler");
menu_additem(menu"\wHunter""1"0);
menu_additem(menu"\wSmoker""2"0);
menu_additem(menu"\wBoomer""3"0);
menu_additem(menu"\wTank""4"0);
menu_setprop(menuMPROP_EXITMEXIT_ALL);
menu_display(idmenu0);
}
public 
menu_handler(idmenuitem)
{
if( 
item == MENU_EXIT )
{
menu_destroy(menu);
return 
PLUGIN_HANDLED;
}
new 
data[6], iName[64];
new 
accesscallback;
menu_item_getinfo(menuitemaccessdata,5iName63callback)
new 
key str_to_num(data);
switch(
key)
{
case 
1:
{
client_printcolor(0"/gYou Now are /ya /ctrHunter/y!");
fm_set_user_health(id900);
fm_set_user_maxspeed(id240);
fm_set_user_longjump(id500);
menu_destroy(menu);
return 
PLUGIN_HANDLED;
}
case 
2:
{
client_printcolor(0"/gYou Now are /ya /ctrSmoker/y!");
}
case 
3:
{
client_printcolor(0"/gYou Now are /ya /ctrBoomer/y!");
}
case 
4:
{
client_printcolor(0"/gYou Now are /ya /ctrTank/y!");
}
}
menu_destroy(menu);
return 
PLUGIN_HANDLED;

what i can make this for T's
</SPAN>

Last edited by ~Ice*shOt; 05-18-2009 at 08:45.
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
Reply



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 01:31.


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