It retrieves a player list (alive) and return a random player id.
Of course you have to replace this function by the other above.
Code:
#include <amxmodx>
#include <fakemeta>
public plugin_init()
{
register_plugin( "", "1.0", "Amxx Community" );
register_event( "HLTV", "eNew_round", "a", "1=0", "2=0" );
}
public eNew_round()
{
give_extra( random_person() );
}
random_person()
{
new iPlayers[32], iNum
get_players( iPlayers, iNum, "a" );
return iPlayers[ random( iNum ) ];
}
give_extra( id )
{
set_pev( id, pev_health, 1000.0 );
}
__________________