Raised This Month: $ Target: $400
 0% 

[SNIPPET][ANY-GAME] Remove Weapons on event death


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Chanz
Veteran Member
Join Date: Aug 2008
Location: Germany - Stuttgart
Old 04-15-2010 , 09:08   Re: [SNIPPET][ANY-GAME] Remove Weapons on event death
Reply With Quote #5

here it is:
Code:
/**
 * Checks if an entity index is a player and ingame
 *
 * @param entity        An entity index
 * @return                true if the specified entity index is a player ingame, false otherwise
 */
stock bool:Client_IsPlayer(entity) {
    
    if (entity > GetMaxEntities()) {
        entity = EntRefToEntIndex(entity);
    }

    if (entity >= 1 && entity <= MaxClients) {
        if (IsValidEntity(entity) && IsClientInGame(entity)) {
            return true;
        }
    }
    
    return false;
}
__________________
[ SourceModPlugins.org ][ My Plugins ]

Thank you for donations: [ Paypal ]

Video Tutorial (German): [ Gameserver & SourceMod Plugins mit HLSW verwalten ]
Chanz is offline
 



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:54.


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