Raised This Month: $32 Target: $400
 8% 

kill detect


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sanjay Singh
Veteran Member
Join Date: Sep 2016
Old 06-28-2020 , 03:06   kill detect
Reply With Quote #1

stock to return if player is flashed or not
__________________

Last edited by Sanjay Singh; 06-28-2020 at 03:21.
Sanjay Singh is offline
Send a message via AIM to Sanjay Singh
MagNNusS
Member
Join Date: May 2018
Location: World of Bushi
Old 06-28-2020 , 15:36   Re: kill detect
Reply With Quote #2

You can use something like this.
PHP Code:
stock bool:is_user_flashed(const id)
{
    return 
get_pdata_float(id514) > get_gametime()

I really can't say if this is the most efficient way to check if the user is 'flashed'.
__________________
Just an impractical signature
nothing to see here.
MagNNusS 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 00:17.


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