Raised This Month: $ Target: $400
 0% 

Add objective in map


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 11-07-2013 , 09:32   Re: Add objective in map
Reply With Quote #1

PHP Code:
// g_VipT will store terrorist vip index
new g_VipT

public plugin_init()
{
    
register_event("HLTV""EventRoundStart""a""1=0""2=0")
}

public 
EventRoundStart()
{
    
g_VipT GetRandomPlayer("ae""TERRORIST")
}

GetRandomPlayer(const Flags[]="", const Team[]="")
{
    new 
Players[32], Pnum
    get_players
(PlayersPnumFlagsTeam)
    
    return (
Pnum 0) ? Players[random(Pnum)] : 0

Search "Terminate round"
__________________
alan_el_more is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 11-07-2013 , 17:07   Re: Add objective in map
Reply With Quote #2

Quote:
Originally Posted by alan_el_more View Post
PHP Code:
// g_VipT will store terrorist vip index 
Nah, it won't. Players haven't spawned at HLTV event.

@Jhob You could play around with the CGameRules memory offsets.
My bad read your request incorrectly. Simple select a random alive terrorist and when he is killed you can use Round Terminator to kill the round.

Last edited by hornet; 11-07-2013 at 17:31.
hornet is offline
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 23:20.


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