AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help with CS_TEAMS (https://forums.alliedmods.net/showthread.php?t=92679)

~Ice*shOt 05-18-2009 06:57

Help with CS_TEAMS
 
I can make skill's only T's ?

xbatista 05-18-2009 06:59

Re: Help with CS_TEAMS
 
Yes, you can.

~Ice*shOt 05-18-2009 07:16

Re: Help with CS_TEAMS
 
Okey, What i doing bad with this code ?
PHP Code:

if (team == CS_TEAM_T)


You can post full taht code ?

biscuit628 05-18-2009 07:22

Re: Help with CS_TEAMS
 
PHP Code:

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



~Ice*shOt 05-18-2009 08:38

Re: Help with CS_TEAMS
 
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>

xPaw 05-18-2009 09:07

Re: Help with CS_TEAMS
 
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);
    }



~Ice*shOt 05-18-2009 09:44

Re: Help with CS_TEAMS
 
Thx xPaw.. ;)


All times are GMT -4. The time now is 01:31.

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