Raised This Month: $ Target: $400
 0% 

[QUESTION] Checking for player alive/connected


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Depresie
Veteran Member
Join Date: Nov 2013
Old 10-23-2015 , 13:11   [QUESTION] Checking for player alive/connected
Reply With Quote #1

Is it needed to check if user is alive or connected in curweapon or ham_reload ?

also, if i want to do something with the owner of the weapon, in ham_primary_attack, for example i have this stock to get the owner
PHP Code:
stock ham_cs_get_weapon_ent_owner(entity)
{
    return 
get_pdata_cbase(entityOFFSET_WEAPONOWNEROFFSET_LINUX_WEAPONS);

do i need to check if the user is connected or alive in ham_primary_attack?

Last edited by Depresie; 10-23-2015 at 13:12.
Depresie is offline
 


Thread Tools
Display Modes

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 22:12.


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