Raised This Month: $ Target: $400
 0% 

solved~close


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 04-15-2007 , 16:58   Re: Random ID on Every New Round ~
Reply With Quote #2

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 View Post
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")
}
Styles is offline
Send a message via AIM to Styles
 



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 06:36.


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