Raised This Month: $ Target: $400
 0% 

Model changing not working


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ares0016
Junior Member
Join Date: Jan 2005
Old 02-22-2005 , 11:51   Model changing not working
Reply With Quote #1

i could not find any thing that would allow some one to change others models for cs so i seached genarally for one
i came up with a ns plugin and editted it to cs.
here it is
Code:
/* 
Modelthem V.1.0
By Zamma
*/


#include <amxmod>
#include <amxmisc>
#include <cstrike>

public plugin_init() {
     register_plugin("tomodel", "1.0", "Zamma/tm16gods-ares")
     register_concmd("amx_model","modik", ADMIN_KICK,"<authid, nick or #userid>")
}

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

}

public modik(id,level,cid){
if (!cmd_access(id,level,cid,2))
      return PLUGIN_HANDLED
new arg[32]
read_argv(1,arg,31)
new player = cmd_target(id,arg,5)
if (!player) return PLUGIN_HANDLED
cs_set_user_model(id,"models/player/neon_blue/neon_blue.mdl")
show_hudmessage(player,"Your neon blue")
return PLUGIN_HANDLED
}
Ares0016 is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-22-2005 , 16:13  
Reply With Quote #2

cs_set_user_model takes the model name, not the entire path.

Code:
/* Modelthem V.1.0 By Zamma */ #include <amxmod> #include <amxmisc> #include <cstrike> public plugin_init() {      register_plugin("tomodel", "1.0", "Zamma/tm16gods-ares")      register_concmd("amx_model","modik", ADMIN_KICK,"<authid, nick or #userid>") } public plugin_precache(){ precache_model("models/player/neon_blue/neon_blue.mdl") } public modik(id,level,cid){ if (!cmd_access(id,level,cid,2))       return PLUGIN_HANDLED new arg[32] read_argv(1,arg,31) new player = cmd_target(id,arg,5) if (!player) return PLUGIN_HANDLED cs_set_user_model(id,"neon_blue") show_hudmessage(player,"Your neon blue") return PLUGIN_HANDLED }

Also, try checking out my plugin:
CS User Model Menuz
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Dizzy
Veteran Member
Join Date: Jun 2004
Location: Massachusetts
Old 02-22-2005 , 17:17  
Reply With Quote #3

also when you post post it in "Small" not code

Thanks
__________________
My Plugins

Purchase Mod - Stable
Type Sounds - Stable
Monster Spawner - Stable
Nade Giver - Maintenance
Dizzy is offline
Send a message via AIM to Dizzy
Ares0016
Junior Member
Join Date: Jan 2005
Old 02-23-2005 , 15:39   thanks
Reply With Quote #4

i swiched it and it works put i personally like the other plugin thanks
-=TM16GODS=-Ares0016
Ares0016 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 14:00.


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