Raised This Month: $ Target: $400
 0% 

CS model plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dawe
Member
Join Date: Jan 2006
Location: sweden
Old 07-19-2009 , 12:25   CS model plugin
Reply With Quote #1

Hello
I was wondering if someone can make a plugin like this.

When I choose T or CT I will get a special model so do everyone to get. Like admin model but T and Ct get them own model.

If someone already has made one give me the link please

//Dawe
dawe is offline
Send a message via MSN to dawe
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 07-19-2009 , 13:23   Re: CS model plugin
Reply With Quote #2

I think what you mean is this
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
dawe
Member
Join Date: Jan 2006
Location: sweden
Old 07-19-2009 , 15:24   Re: CS model plugin
Reply With Quote #3

well not really since the link you gave you need a steamid to give a model. I want that everyone has the same model directly when they choose a team and model type.

CT has 1 same model

T has 1 same model

Last edited by dawe; 07-19-2009 at 15:27.
dawe is offline
Send a message via MSN to dawe
GmTx
BANNED
Join Date: May 2009
Location: Mountains [BG/Sofia]
Old 07-19-2009 , 15:54   Re: CS model plugin
Reply With Quote #4

I thing this is what you looking for
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <hamsandwich>

public plugin_init() 
{
        
register_plugin("Same Model""1.0""GmTx")
        
RegisterHam(Ham_Spawn"player""PlayerSpawn"1)
        
register_cvar("Same_Models""1.0"FCVAR_SERVER)    
        
register_cvar("amx_samemodels""1")        
        return 
PLUGIN_CONTINUE
}

public 
plugin_precache() 
{
        
//For Terrorist
        
precache_model("models/player/leet/leet.mdl")
        
//For Counter-Terrorost
        
precache_model("models/player/gsg9/gsg9.mdl")

        return 
PLUGIN_CONTINUE
}

public 
PlayerSpawnid 
{
    
set_task(1.0"resetModel"id)
        
    return 
PLUGIN_HANDLED
}    

public 
resetModelid 
{
        new 
iCvar get_cvar_num"amx_samemodels" );
        
        new 
CsTeams:iTeam cs_get_user_teamid );
        
        switch( 
iTeam ) {
            case 
CS_TEAM_T: {
                switch( 
iCvar ) {
                    case 
1cs_set_user_modelid"leet" );
                }
            }
            case 
CS_TEAM_CT: {
                switch( 
iCvar ) {
                    case 
1cs_set_user_modelid"gsg9" );
                }
            }
        }
    }

GmTx is offline
Send a message via Skype™ to GmTx
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 05:33.


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