Raised This Month: $ Target: $400
 0% 

Get vip escape event


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
darktemplar
Member
Join Date: Sep 2009
Old 12-28-2012 , 01:53   Get vip escape event
Reply With Quote #1

Hi everybody
Could you answer a question for me , I have a problem that : I want to know when a Vip reach safety zone (I mean escape successfully ) . I dont know what is the event of Vip escape and how to retrieve index of Vip

Thank you ,
darktemplar is offline
DjOptimuS
Senior Member
Join Date: Jan 2009
Old 12-28-2012 , 02:56   Re: Get vip escape event
Reply With Quote #2

PHP Code:
register_event("TextMsg""hook_vip_escaped""a""2&#VIP_Escaped");
register_event("TextMsg""hook_vip_assassinated""a""2&#VIP_Assassinated"); 

Last edited by DjOptimuS; 12-28-2012 at 02:56.
DjOptimuS is offline
darktemplar
Member
Join Date: Sep 2009
Old 12-28-2012 , 03:15   Re: Get vip escape event
Reply With Quote #3

But how can I retrieve the player id (who is vip) . For example , I want to print a text "congratulation" to the vip who successfully escaped
darktemplar is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-28-2012 , 04:42   Re: Get vip escape event
Reply With Quote #4

One way is to hook func_vip_safetyzone touch, and checking the second param with cs_get_user_vip. If true, it means that is your player.
__________________
Arkshine 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 13:42.


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