Raised This Month: $ Target: $400
 0% 

Help with some Plugin ..Pls Help!


Post New Thread Reply   
 
Thread Tools Display Modes
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
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 12-21-2013 , 15:43   Re: Help with some Plugin ..Pls Help!
Reply With Quote #2

Just use Connor's plugin. The method you are using is shit.
__________________
My Plugins:
UltimatePlugin
UltimateSurf
UltimateAdmin
Code:
rcon version | rcon amxx version | rcon meta version
rcon amxx plugins | rcon meta list | rcon status
I AM INACTIVE ON THIS FORUM - For direct contact: [email protected]
tonykaram1993 is offline
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 12-22-2013 , 14:33   Re: Help with some Plugin ..Pls Help!
Reply With Quote #3

check your file and models >>

PHP Code:
    precache_model"models/player/ctmodel/ctmodel.mdl" );     precache_model"models/player/tmodel/tmodel.mdl" ); 
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
Reply


Thread Tools
Display Modes

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