Raised This Month: $ Target: $400
 0% 

Help with some Plugin ..Pls Help!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
nikeboy648
Member
Join Date: Dec 2013
Old 12-14-2013 , 13:54   Help with some Plugin ..Pls Help!
Reply With Quote #1

I have this plugin in my server:

Code:
#include < amxmodx >
#include < hamsandwich >
#include < fakemeta_util >
#include < cstrike >


public plugin_precache() 
{
	precache_model( "models/player/ctmodel/ctmodel.mdl" );
	precache_model( "models/player/tmodel/tmodel.mdl" );
}


public plugin_init() 
{
	register_plugin( "Player Models", "v1", "Angryx" );
	RegisterHam( Ham_Spawn, "player", "HamSpawnPost", 1 );
}


public HamSpawnPost( client )
{
	if( !is_user_alive( client ) || is_user_bot( client ) || is_user_hltv( client ) )
		return HAM_IGNORED;
	
	switch( cs_get_user_team( client ) )
	{
		case CS_TEAM_T:
			cs_set_user_model( client, "tmodel" );
		case CS_TEAM_CT:
			cs_set_user_model( client, "ctmodel" );
	}
	
	setUser( client );
	return HAM_IGNORED;
}


stock setUser( client )
{
	fm_strip_user_weapons( client )
	fm_give_item( client, "weapon_knife" );
}
But he make the server crash..
someone can fix that?

thnx ..
nikeboy648 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 20:37.


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