Raised This Month: $ Target: $400
 0% 

[ H3LP ] Laser sight mistake?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 07-31-2017 , 05:56   Re: [ H3LP ] Laser sight mistake?
Reply With Quote #1

You can make a timestamps to how long do you another laser will be created

PHP Code:
new Float:g_Timestamps[33]

public 
fw_Item_PostFrame(entity)
{
    if (!
is_valid_ent(entity))
        return 
HAM_IGNORED;

    static 
id 
    id 
get_pdata_cbase(entityOFFSET_WEAPONOWNEROFFSET_LINUX_WEAPONS)

    if(
g_Teamstamps[id] + 1.0 get_gametime()) //1 second
        
return HAM_IGNORED

    g_Timestamps
[id] = get_gametime()

__________________
My plugin:

Last edited by Celena Luna; 07-31-2017 at 05:57.
Celena Luna 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 23:09.


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