AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Model changing not working (https://forums.alliedmods.net/showthread.php?t=10538)

Ares0016 02-22-2005 11:51

Model changing not working
 
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
}


XxAvalanchexX 02-22-2005 16:13

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

Dizzy 02-22-2005 17:17

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

Thanks
:D

Ares0016 02-23-2005 15:39

thanks
 
i swiched it and it works put i personally like the other plugin thanks
-=TM16GODS=-Ares0016


All times are GMT -4. The time now is 14:00.

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