Raised This Month: $ Target: $400
 0% 

Getting players at the end of every round


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bwgrubbs1
Senior Member
Join Date: Sep 2006
Old 05-27-2007 , 15:47   Getting players at the end of every round
Reply With Quote #1

How would i get all the players alive at the end of the round and then check if they are Terrorists, and then if they remaining players are terrorists i would be able to do something to each of these players such as a server_cmd ??
bwgrubbs1 is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 05-27-2007 , 16:11   Re: Getting players at the end of every round
Reply With Quote #2

=>>

Code:
#include <amxmodx>
#include <amxmisc>
 
#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"

public plugin_init() {
 
 register_plugin(PLUGIN, VERSION, AUTHOR);
 register_logevent("round_end", 2, "1=Round_End");

}
public round_end()
{
 new tplayers[32], num
 get_players(tplayers, num, "ae", "TERRORIST");
 
 new player
 for(new i = 0; i < num; i++)
 {
  player = tplayers[i]
  
  //
  //do stuffs to T players alive
  //E.g client_print(player,print_chat,"You still alive! ^^ Gj :P);
  //
 }
}
__________________
Still...lovin' . Connor noob! Hello

Last edited by Alka; 05-27-2007 at 16:15.
Alka is offline
Reply



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 10:35.


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