AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   kill detect (https://forums.alliedmods.net/showthread.php?t=325585)

Sanjay Singh 06-28-2020 03:06

kill detect
 
stock to return if player is flashed or not

MagNNusS 06-28-2020 15:36

Re: kill detect
 
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'.


All times are GMT -4. The time now is 18:27.

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