Raised This Month: $ Target: $400
 0% 

CSDM FFA ON = ALL VIP MODELS


Post New Thread Reply   
 
Thread Tools Display Modes
dj_freeze
Veteran Member
Join Date: Dec 2009
Location: Looking for you!
Old 02-06-2011 , 11:09   Re: CSDM FFA ON = ALL VIP MODELS
Reply With Quote #11

Still not changing models
dj_freeze is offline
Send a message via Skype™ to dj_freeze
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-07-2011 , 02:32   Re: CSDM FFA ON = ALL VIP MODELS
Reply With Quote #12

Try :

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <csdm>

#define VERSION "0.0.2"
#define PLUGIN "Csdm FFA Vip Model"

public plugin_init()
{
    
register_plugin(PLUGINVERSION"ConnorMcLeod")
    
register_forward(FM_SetClientKeyValue"SetClientKeyValue")
    
register_message(get_user_msgid("TeamInfo"), "Message_TeamInfo")
    
register_message(get_user_msgid("ScoreAttrib"), "Message_ScoreAttrib")
}

public 
plugin_precache()
{
    
precache_model("models/player/vip/vip.mdl")
}

public 
SetClientKeyValue(id, const szInfoBuffer[], const szKey[], const szValue[])
{
    static const 
model[] = "model"
    
if( csdm_get_ffa() && is_user_connected(id) && equal(szKeymodel) )
    {
        static const 
vip[] = "vip"
        
new szModel[5]
        
get_user_info(idmodelszModelcharsmax(szModel))
        if( !
equal(szModelvip) )
        {
            
set_user_info(idmodelvip)
        }
        return 
FMRES_SUPERCEDE
    
}
    return 
FMRES_IGNORED
}

public 
Message_TeamInfo()
{
    if( 
csdm_get_ffa() )
    {
        new 
szTeam[2]
        
get_msg_arg_string(2szTeamcharsmax(szTeam))
        if( 
szTeam[0] == 'T' )
        {
            
set_msg_arg_string(2"CT")
        }
    }
}

public 
Message_ScoreAttrib()
{
    if( 
csdm_get_ffa() && !(get_msg_arg_int(2) & 5) )
    {
        
set_msg_arg_int(2ARG_BYTE4)
    }

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
dj_freeze
Veteran Member
Join Date: Dec 2009
Location: Looking for you!
Old 02-07-2011 , 05:14   Re: CSDM FFA ON = ALL VIP MODELS
Reply With Quote #13

same
dj_freeze is offline
Send a message via Skype™ to dj_freeze
Old 02-11-2011, 15:08
dj_freeze
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
dj_freeze
Veteran Member
Join Date: Dec 2009
Location: Looking for you!
Old 02-23-2011 , 13:18   Re: CSDM FFA ON = ALL VIP MODELS
Reply With Quote #14

Again with my post )) Can i get some help ? The plugins that are wrote above do NOT change players models.

I need:

When CSDM FFA is enabled all players must have VIP models. When FFA is turned off players get their old models back.

Tip:
csdm_ffa_enable - enables FFA
csdm_ffa_disable - disables FFA
dj_freeze is offline
Send a message via Skype™ to dj_freeze
rx1983
Senior Member
Join Date: Jan 2009
Location: BRASIL
Old 02-24-2011 , 08:31   Re: CSDM FFA ON = ALL VIP MODELS
Reply With Quote #15

bump 1

bump 2

bump 3

bump bump bumpbump bump bumpbump bump bumpbump bump bumpbump bump bumpbump bump bumpbump bump bump ...............
__________________
rx1983 is offline
Send a message via MSN to rx1983
dj_freeze
Veteran Member
Join Date: Dec 2009
Location: Looking for you!
Old 02-25-2011 , 16:31   Re: CSDM FFA ON = ALL VIP MODELS
Reply With Quote #16

rx1983, actually bro this is not bump! I have waited 2 weeks! Even more and no one made the plugin right. I thank all for trying to help.
dj_freeze is offline
Send a message via Skype™ to dj_freeze
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 15:34.


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