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
}
__________________