Raised This Month: $ Target: $400
 0% 

[HELP] model does not change


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
neutron
Member
Join Date: Jul 2011
Location: Turkey
Old 08-08-2011 , 11:59   [HELP] model does not change
Reply With Quote #1

PHP Code:
/* Script generated by Pawn Studio */

#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>
#include <hamsandwich>

#define PLUGIN    "Command Model Changer"
#define AUTHOR    "neutron"
#define VERSION    "1.0"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_concmd("amx_change","change_model")
    
RegisterHam(Ham_Spawn,"player","model_back"1)
    
RegisterHam(Ham_Spawn,"player","player_setting"1)
}

public 
change_model(id)
{
    if(
is_user_connected(id) && is_user_alive(id)) {
        
cs_set_user_model(id,"newmodel")
    }
}

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

public 
model_back(id)
{
    if(
is_user_connected(id) && is_user_alive(id)) {
        
cs_set_user_model(id,"oldmodel")
    }
}

public 
player_setting(id)
{
    
set_user_health(id,get_user_health(id) + 50)
    
set_user_armor(id,255)

Models such as the friends I mentioned the title does not change
sorry bad english
__________________
neutron is offline
Send a message via Skype™ to neutron
Old 08-08-2011, 14:34
neutron
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
DSASDFGH
Senior Member
Join Date: Jul 2011
Location: Facebook
Old 08-09-2011 , 06:01   Re: [HELP] model does not change
Reply With Quote #3

cs_set_user_model(index[], models[]) this is very sucks
DSASDFGH is offline
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 03:26.


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