sorry for a shitty response at a basketball game ( clippers ). what I would do is.
get_players then do a random(1, players).
Quote:
Originally Posted by lucky109
Ok,im trying to pick 1 player randomly each round , and giveitem AWP to him. and the AWP 3 ammo only . but this doesnt seem to work. Thanks
Code:
#include <amxmodx>
#include <fun>
#include <cstrike>
public plugin_init() {
register_event("ResetHUD","test","b")
return PLUGIN_HANDLED
}
public test() {
set_task(5.0,"random_player")
}
public random_player() {
new iPlayers[32], iNum
get_players( iPlayers, iNum )
new id, i
for( i = 0; i < iNum; i++ )
{
id = iPlayers[i]
give_item(id, "weapon_awp")
}
|