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 , 06:57   Help with CS_TEAMS
Reply With Quote #1

I can make skill's only T's ?
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 05-18-2009 , 06:59   Re: Help with CS_TEAMS
Reply With Quote #2

Yes, you can.
xbatista is offline
Send a message via Skype™ to xbatista
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 05-18-2009 , 07:16   Re: Help with CS_TEAMS
Reply With Quote #3

Okey, What i doing bad with this code ?
PHP Code:
if (team == CS_TEAM_T)

You can post full taht code ?
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
biscuit628
Senior Member
Join Date: Jun 2007
Location: 香港HongKong
Old 05-18-2009 , 07:22   Re: Help with CS_TEAMS
Reply With Quote #4

PHP Code:
if(get_user_team(id) == 1)    //1=TS,2=CT,3=SPEC
{
    
//code

__________________
My Plugins

C4man with fun

Sniper Skill bonus
-------------------------
Sorry for my poor English!

Last edited by biscuit628; 05-18-2009 at 07:25.
biscuit628 is offline
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 05-18-2009 , 08:38   Re: Help with CS_TEAMS
Reply With Quote #5

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
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 05-18-2009 , 09:07   Re: Help with CS_TEAMS
Reply With Quote #6

PHP Code:
public ShowZmenu(id) {
    if(
get_user_team(id) == 1) {
        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);
    }

__________________

Last edited by xPaw; 05-19-2009 at 06:15.
xPaw is offline
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 05-18-2009 , 09:44   Re: Help with CS_TEAMS
Reply With Quote #7

Thx xPaw.. ;)
~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