Raised This Month: $ Target: $400
 0% 

Internal Error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
poiuy_qwert
Junior Member
Join Date: Mar 2004
Old 09-28-2004 , 08:18  
Reply With Quote #4

Code:
/*
No Clip, v0.1
By poiuy_qwert
*/

#include <amxmodx>
#include <fun>

new NoClip
new Killed
new NoClipName[31]
new Maxpl = get_maxplayers()

public plugin_init()
{
	register_plugin("No Clip","0.1","poiuy_qwert")
	register_event("DeathMsg","deathmsg","a")
	register_logevent("roundstart",2,"0=World triggered","1=Round_Start")
	register_event( "TextMsg", "mapstart", "a", "2=#Game_Commencing", "2=#Game_will_restart_in" )
	return PLUGIN_CONTINUE
}
public deathmsg() {
	Killed = read_data(2)
	if(Killed == NoClip) {
		NoClip = read_data(1)
		get_user_name( NoClip, NoClipName, 30)
		client_print( 0, print_chat, "%s will be No Clipped Next Round!", NoClipName)
	}
}
public roundstart() 
{
	set_user_noclip( NoClip )
	return PLUGIN_CONTINUE
}
public mapstart() 
{
	NoClip = random_num( 1, Maxpl)
	while (!is_user_connected( NoClip))
	{
    	NoClip = random_num( 1, Maxpl)
    }
	get_user_name( NoClip, NoClipName, 30)
	client_print( 0, print_chat, "%s is the first person to be No Clipped!", NoClipName)
	return PLUGIN_CONTINUE
}
__________________
[p_q]poiuy_qwert[z_p]
poiuy_qwert 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 16:01.


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