Raised This Month: $ Target: $400
 0% 

Trying to change the hostage model


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
helpjoe
Junior Member
Join Date: Apr 2004
Old 06-21-2004 , 20:48   Trying to change the hostage model
Reply With Quote #1

is it possible to change the hostage model!

well this is what i came up with, but when i put it in the server crashes?

i dnt know why either!

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

public plugin_init(){
	register_plugin("changemodel","0.1","0~~ sperm")
	
	register_event("ResetHUD","newRound","b")
	// Call newRound() when the round is over
	
}

public newRound(id){
  checkModel(id)
}

public plugin_precache(){
	precache_model("player/hostige/hostige.mdl")
	return PLUGIN_CONTINUE
	//
    // Just precache the model, so if the user does not have it, they have to download
    //
}

public checkModel(id){
	cs_get_hostage_id(id)

 	if ( cs_get_hostage_id(id) )
	{
		entity_set_model(id, "player/hostige/hostige.mdl")
	}

	return PLUGIN_HANDLED
}
thank you

im trying to get it for my Diablo 3 server: 69.93.73.214:27015
__________________
Hmmm, I found a Superhero mod Counter Strike SOURCE server @ 72.232.91.93:27015
helpjoe is offline
 



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:52.


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