Raised This Month: $ Target: $400
 0% 

3 simple questions


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
MaximusBrood
Veteran Member
Join Date: Sep 2005
Location: The Netherlands
Old 12-23-2005 , 08:49  
Reply With Quote #8

If you take it from the code Ven posted:

Code:
#include <amxmodx>
#include <amxmisc>

public plugin_init() {
    register_event("TextMsg", "event_drop", "bc", "2=#Game_bomb_drop")
    register_event("TextMsg", "event_got", "b", "2=#Got_bomb")
}

public event_drop() {
	new name[32]
	read_data(3, name, 31)
	new id = get_user_index(name)
	
	//Get all terrorists
	new players[32], playernum, a
	get_players(players, playernum, "ce", "TERRORIST")
	
	//Use a for loop to show all the messages
	for(a = 0; a < playernum; a++)
	{
		//Check if it isn't the player who dropped the bomb
		if(players[a] != id)
		{
			client_print(players[a], print_chat, "[AMX] %s dropped the bomb")
		}
	}
    
	//Now give the dropper a personal message
	client_print(id, print_chat, "[AMXX] You lost the bomb")
	
    
	//To make sure original message isn't shown
	return PLUGIN_HANDLED
}

public event_got(id) {
    // same here :)
}
__________________
Released six formerly private plugins. Not active here since ages.
MaximusBrood 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 15:49.


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