Raised This Month: $ Target: $400
 0% 

[Help] Change Model


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Brow
Junior Member
Join Date: Dec 2012
Location: São Paulo, Brasil
Old 03-03-2013 , 10:09   [Help] Change Model
Reply With Quote #1

How can i change the model in slayer case to Grimreaper.mdl

HTML Code:
public set_class_model(id)
{
    new CsTeams:team = cs_get_user_team(id)
    new CsInternalModel:model
    if(mod == 2)
        switch(current_class[id])
        {
            case GUARD: model = (team==CS_TEAM_T)?CS_T_GUERILLA:CS_CT_GSG9
            case THIEF: model = (team==CS_TEAM_T)?CS_T_LEET:CS_CT_GIGN
            case MAGE: model = (team==CS_TEAM_T)?CS_T_ARCTIC:CS_CT_URBAN
            case MENTAL: model = (team==CS_TEAM_T)?CS_T_TERROR:CS_CT_SAS
            case SLAYER: model = (team==CS_TEAM_T)?slayer_model:slayer_model
        }
    else
    {
        if(player_skills[id][2] == 4) model = (team==CS_TEAM_T)?CS_T_ARCTIC:CS_CT_URBAN
        else if(player_skills[id][0] == 2 || player_skills[id][0] == 1) model = (team==CS_TEAM_T)?CS_T_GUERILLA:CS_CT_GSG9
              else if(player_skills[id][1] == 0 && player_level[id] == 3) model = (team==CS_TEAM_T)?CS_T_LEET:CS_CT_GIGN
               else model = (team==CS_TEAM_T)?slayer_model:slayer_model
        if(player_parameters[id][2] != 2)
            if(player_level[id] > 3)
            {
                new red = 10,blue = 10
                if(team == CS_TEAM_T)
                    red = 50 + (player_level[id] - 4) * 200
                else 
                    blue = 50 + (player_level[id] - 4) * 200
                fm_set_user_rendering(id,kRenderFxGlowShell,red,10,blue)
            }
            else fm_set_user_rendering(id)
    }
    cs_set_user_team(id,team,model)
}
Brow is offline
Reply


Thread Tools
Display Modes

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 21:43.


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