Raised This Month: $ Target: $400
 0% 

Two random players of each team


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
rak
Veteran Member
Join Date: Oct 2011
Location: banned country
Old 05-07-2012 , 10:47   Re: Two random players of each team
Reply With Quote #3

example

PHP Code:
#include <amxmodx>
#include <fun>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "[R]ak"

new id_ctid_tt
public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_event("HLTV""RoundStart""a""1=0""2=0")
}

public 
RoundStart() {
    new 
players[32], pnum
    
    get_players
(playerspnum"ae""CT")
    
    
id_ct players[random(pnum)]
    
    
get_players(playerspnum"ae""TERRORIST")
    
    
id_tt players[random(pnum)]
    
    if(
id_ct && id_tt) {
        
set_user_health(id_ct200)
        
SendMsj(id_ct)
        
        
set_user_health(id_tt200)
        
SendMsj(id_tt)
    }
}

public 
SendMsj(id)
    
client_print(idprint_chat"[AMX] You won 200 of life"
__________________

www.amxmodx-es.com

Steam: Luchokoldo

Last edited by rak; 05-07-2012 at 10:49.
rak is offline
Send a message via MSN to rak Send a message via Skype™ to rak
 



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 00:27.


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