Raised This Month: $ Target: $400
 0% 

awp_control from amx.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
graczu
Senior Member
Join Date: Mar 2006
Old 04-07-2006 , 05:57   awp_control from amx.
Reply With Quote #1

hm its compiling with out no error's but not working, anyone know how to fix:

Code:
/* AMX Mod script. 
* 
* (c) Copyright	2002-2003, f117bomb 
* This file is provided	as is (no warranties). 
*/  

/* 
* This plugin will slay spawn shooters if they spawn shoot on awpmap
* It displays in red text when you are not allowed to shoot. 
*/ 

#include <amxmodx>

new bool:kills_allowed = true
new bool:awpmap

public kills_allowed_timer() {
	kills_allowed = true
}

public Round_Time()
{
	new Float:roundtime = get_cvar_float("mp_roundtime") * 60.0
	new rtime = read_data(1) 
	
	if ( roundtime == rtime )   { //Round Start after freezetime
		new Float:noshoot = get_cvar_float("amx_awpmap_noshoot")
		new mapname[33]
		get_mapname(mapname,32)
		set_hudmessage(140, 0, 0, -1.0, 0.50, 0, 0.01, 5.0, 0.01,0.01,19)
		show_hudmessage(0,"NIE STRZELAJ AZ NIE ZNIKNE")
		kills_allowed = false
		set_task(noshoot,"kills_allowed_timer")
		
	}	
	return PLUGIN_CONTINUE
}

public damage_msg(vIndex)
{ 
	new aIndex = get_user_attacker(vIndex)
	
	if (!aIndex )
		return PLUGIN_CONTINUE
	
	if(!kills_allowed && is_user_alive(aIndex))
	{	
		new aName[32]
		get_user_name(aIndex,aName,31)
		user_kill(aIndex,0)
		client_print(0,3,"[AMX] %s zabity za strzal przed czasem.",aName)
	}

	return PLUGIN_CONTINUE
}

public plugin_init() { 
	
	register_plugin("Awp Map Control","0.1.5","f117bomb")
	register_cvar("amx_awpmap_noshoot","5.0")  
	
	new mapname[33]
	get_mapname(mapname,32)
	awpmap = equali(mapname,"awp_map") ? true : false

	if(awpmap)   {  
		register_event("RoundTime", "Round_Time", "bc")
		register_event("Damage", "damage_msg", "b", "2!0", "3=0", "4!0")
	}
	return PLUGIN_CONTINUE 
}
__________________
graczu 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:35.


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