View Single Post
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 05-05-2021 , 03:48   Re: [REQUEST] Random VIP (as_maps)
Reply With Quote #7

If someone wants to do this: you have to set m_iConsecutiveVIP gamerules offset to 3 or higher to trick PickNextVIP into thinking the current vip was vip in 3 or more rounds and force it to choose a new one.
You can try to hook HLTV event and set the offset to 3. If this doesn't work try hooking the original PickNextVIP call, supercede, set the offset and manually call the function again.

If using HLTV works then you need either orpheu to set the gamerules offset or amxx 1.9+
If using HLTV doesn't work then you need orpheu either way to hook/call PickNextVIP.

(yes, I know this is not scripting help, I am explaining how it can be done in case someone wants to help OP and do it following my explanation)
__________________

Last edited by HamletEagle; 05-05-2021 at 03:49.
HamletEagle is offline