Raised This Month: $ Target: $400
 0% 

Choose random player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 05-03-2012 , 13:24   Re: Choose random player
Reply With Quote #1

PHP Code:
public Cmd_KillVip(id) {
    
    new 
players[32], tsct
    get_players
(playersts"a""TERRORIST")
    
get_players(playersct"a""CT")
    
    new 
randomtsplayer players[random(ts)]
    new 
randomctplayer players[random(ct)]
    
    
set_user_health(randomtsplayer300)
    
set_user_health(randomctplayer300)
    
    
ColorChat(idGREEN"[%s] Objective:^1 Kill the opposite VIP!"szPrefix)
    
ColorChat(idGREEN"[%s]^1 The current round is:^4 Kill the VIP!"szPrefix)

Will this work?
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Reply



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:19.


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