Raised This Month: $ Target: $400
 0% 

[HELP] model does not change


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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