AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Get vip escape event (https://forums.alliedmods.net/showthread.php?t=204115)

darktemplar 12-28-2012 01:53

Get vip escape event
 
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 , :)

DjOptimuS 12-28-2012 02:56

Re: Get vip escape event
 
PHP Code:

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


darktemplar 12-28-2012 03:15

Re: Get vip escape event
 
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

Arkshine 12-28-2012 04:42

Re: Get vip escape event
 
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.


All times are GMT -4. The time now is 13:42.

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