AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Getting players at the end of every round (https://forums.alliedmods.net/showthread.php?t=55682)

bwgrubbs1 05-27-2007 15:47

Getting players at the end of every round
 
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 ??

Alka 05-27-2007 16:11

Re: Getting players at the end of every round
 
=>>

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);
  //
 }
}



All times are GMT -4. The time now is 10:35.

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