Raised This Month: $ Target: $400
 0% 

Bug


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
jacksmoke2345
Junior Member
Join Date: Feb 2005
Old 06-29-2006 , 19:23   Re: Bug
Reply With Quote #3

Okay the code is

Code:
#include <amxmodx>
#include <fun>

new isninja[33] = 0
public plugin_init() {
	register_plugin("WcW's Silent Plugin","1.0","WhoCaresWho")
	register_concmd("amx_silent","do_si",ADMIN_KICK,"Makes User Silent")
	
}
public do_si(id) {
	if (!(get_user_flags(id) &ADMIN_KICK) ) {
		console_print(id, "You have no access to that command!")
		return PLUGIN_HANDLED
	}
	if (read_argc () == 0) {
		console_print (id, "Specify a user!")
		return PLUGIN_HANDLED
	}
	new user[32], uid
	read_argv(1,user,32)
	uid = find_player ("bhl", user)
	if (uid == 0) {
		console_print (id, "Nobody by that name is here")
		return PLUGIN_HANDLED
	}
	else
		{
		isninja[id] = 1
		client_print(0,print_chat,"Someone has become a ninja!",1)
	}
	return PLUGIN_HANDLED
}
public client_PreThink(id){
	if(isninja[id] > 0){
		set_user_noclip(id, 1)
		client_cmd(id,"model ninja")
		client_cmd(id,"name Ninja")
	set_user_rendering(id,kRenderFxGlowShell,255,255,255,kRenderNormal,25)
		return PLUGIN_CONTINUE
	}
	return PLUGIN_CONTINUE
}
public client_disconnect(id) isninja[id] = 0

public plugin_precache( ) {
	precache_model "models/player/ninja/ninja.mdl"
}
The part I bolded is where it seems to not work
Attached Files
File Type: sma Get Plugin or Get Source (ninja.sma - 687 views - 1.1 KB)
jacksmoke2345 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 08:07.


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