Raised This Month: $ Target: $400
 0% 

model change


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AAleaderNik
Member
Join Date: Dec 2005
Old 02-24-2006 , 20:05   model change
Reply With Quote #1

Code:
#include <amxmodx>
#include <engine>
#include <amxmisc>

public plugin_init()
{
	register_plugin("Model basis","1.0","AANik")
	register_event("Resethud","setplayermodel","be")
	register_cvar("custmodel_on", "1")
	return PLUGIN_CONTINUE
}

public plugin_precache()
{
	precache_model("models/player/arctic/arctic.mdl")
         return PLUGIN_CONTINUE
}

public switchmodel(id)
{
	if(get_cvar_num("custmodel_on") == 1) (
	
		switchmodel(id)
	)
}
i hope this is what u want by reposting but ya i need to know whats wrong with the code or why it doesnt work im tryin to get it so the people have to download the model and so it overrides their arctic model
AAleaderNik is offline
watch
Senior Member
Join Date: Sep 2005
Old 02-24-2006 , 22:53  
Reply With Quote #2

Code:
#include <amxmodx> #include <cstrike> public plugin_init() {     register_plugin("Model basis","1.0","AANik")     register_event("ResetHUD","setplayermodel","be")     register_cvar("custmodel_on","1") } public plugin_precache() {     precache_model("models/player/arctic/arctic.mdl") } public setplayermodel(id) {     if(get_cvar_num("custmodel_on"))     {          cs_set_user_model(id,"models/player/arctic/arctic.mdl")     }     }

use the small tags as it makes it pretty and you can't overwrite files you would have to name it artic2 or put it in a subfolder
__________________
Code:
#include <amusing_small_signiture>
watch is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 02-24-2006 , 23:00  
Reply With Quote #3

wont work. The clients won't download the model.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
watch
Senior Member
Join Date: Sep 2005
Old 02-24-2006 , 23:01  
Reply With Quote #4

because you can't overwrite existing files, i did mention that in my post
__________________
Code:
#include <amusing_small_signiture>
watch is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 02-24-2006 , 23:02  
Reply With Quote #5

No thats not it. It's because the client wont download a file it already has is the reason it won't work.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
watch
Senior Member
Join Date: Sep 2005
Old 02-24-2006 , 23:06  
Reply With Quote #6

hmm ok thats what i meant, maybe overwrite wasnt the best wording, i interpret it as the same thing though

the file already exists, therefore you can't overwrite it. I think i got the overwrite thing from his post :F

Quote:
im tryin to get it so the people have to download the model and so it overrides their arctic model
__________________
Code:
#include <amusing_small_signiture>
watch is offline
watch
Senior Member
Join Date: Sep 2005
Old 02-24-2006 , 23:35  
Reply With Quote #7

eep sorry to double post, but reading it again ive realised that maybe i wasn't as clear as i could have been, i was talking about client side too :p and that he should rename the file and change the script dir accordingly, my bad
__________________
Code:
#include <amusing_small_signiture>
watch is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 02-25-2006 , 00:03  
Reply With Quote #8

Code:
cs_set_user_model(id , "somemodel"); // models/player/somemodel/somemodel.mdl
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
AAleaderNik
Member
Join Date: Dec 2005
Old 02-25-2006 , 05:03  
Reply With Quote #9

ok maybe i might have used the wrong word all i want it to do is make it so everybody sees it like when u shoot somebody on uwc3 server with hex and they turn into that alien thing and everybody sees that thats what i want like for example lets say i wanted a simpson server and all ct skins were bart homer lisa marge, etc and i wanted everybody to see the skins what code would let me do that
AAleaderNik 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 20:22.


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