Raised This Month: $ Target: $400
 0% 

Players Models 1.3.1 ( 13 nov 2010 )


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-18-2009 , 18:41   Re: Players Models
Reply With Quote #1

Should be fixed in v1.3.0
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 11-03-2009 at 04:43.
ConnorMcLeod is offline
andregb8
Junior Member
Join Date: Jul 2009
Old 10-21-2009 , 19:38   Re: Players Models
Reply With Quote #2

Quote:
Originally Posted by ConnorMcLeod View Post
cstrike module cs_set_user_team function misses the internal model change when no arg is passed.
edit plmenu.sma, function "actionTeamMenu", ligne 629, and replace it with this one :

PHP Code:
public actionTeamMenu(idkey)
{
    switch (
key)
    {
        case 
7:
        {
            
g_menuOption[id] = (g_menuOption[id] + 1) % (g_cstrike 2);
            
displayTeamMenu(idg_menuPosition[id])
        }
        case 
8displayTeamMenu(id, ++g_menuPosition[id])
        case 
9displayTeamMenu(id, --g_menuPosition[id])
        default:
        {
            new 
player g_menuPlayers[id][g_menuPosition[id] * key]
            new 
authid[32], authid2[32], name[32], name2[32]

            
get_user_name(playername231)
            
get_user_authid(idauthid31)
            
get_user_authid(playerauthid231)
            
get_user_name(idname31)
                
            
log_amx("Cmd: ^"%s<%d><%s><>^" transfer ^"%s<%d><%s><>^" (team ^"%s^")"nameget_user_userid(id), authidname2get_user_userid(player), authid2g_menuOption[id] ? "TERRORIST" "CT")

            
show_activity_key("ADMIN_TRANSF_1""ADMIN_TRANSF_2"namename2g_CSTeamNames[g_menuOption[id] % 3]);

            if (
g_cstrike)
            {
                if (
is_user_alive(player))
                {
                    new 
deaths cs_get_user_deaths(player)
                    
user_kill(player1)
                    
cs_set_user_deaths(playerdeaths)
                }

                static const 
CsInternalModel:TE_IM[] = {CS_T_TERRORCS_T_LEETCS_T_ARCTICCS_T_GUERILLA}
                static const 
CsInternalModel:CT_IM[] = {CS_CT_URBANCS_CT_GSG9CS_CT_GIGNCS_CT_SAS}
                
// This modulo math just aligns the option to the CsTeams-corresponding number
                
new CsTeams:iTeam = (g_menuOption[id] % 3) + 1
                
new CsInternalModel:iInternalModel CS_DONTCHANGE
                
switch( iTeam )
                {
                    case 
CS_TEAM_CT:
                    {
                        
iInternalModel TE_IMrandom(sizeof(TE_IM)) ]
                    }
                    case 
CS_TEAM_T:
                    {
                        
iInternalModel CT_IMrandom(sizeof(CT_IM)) ]
                    }
                }
                
cs_set_user_team(playeriTeamiInternalModel)
                
cs_reset_user_model(player)
            } else {
                new 
limit_setting get_cvar_num("mp_limitteams")
                
                
set_cvar_num("mp_limitteams"0)
                
engclient_cmd(player"jointeam"g_CSTeamNumbers[g_menuOption[id] % 2])
                
engclient_cmd(player"joinclass""1")
                
set_cvar_num("mp_limitteams"limit_setting)
            }

            
displayTeamMenu(idg_menuPosition[id])
        }
    }
    
    return 
PLUGIN_HANDLED

For me it didnt work
andregb8 is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 10-22-2009 , 07:51   Re: Players Models
Reply With Quote #3

Connor I've tryied MODELINDEX in my plugin and it works fine, just see how mercylezz doing it.
__________________
xbatista is offline
Send a message via Skype™ to xbatista
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 17:47.


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