View Single Post
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 07-31-2016 , 04:49   Re: [CS:GO] Lasermines 1.5.1
Reply With Quote #28

Code:
public Action OnPlayerDeath_Pre(Event event, const char[] name, bool dontBroadcast) {     int attacker = GetClientOfUserId( GetEventInt( event, "attacker" ) );         int userid = GetClientOfUserId( GetEventInt( event, "userid" ) );         if ( ( 1 <= attacker <= MaxClients ) && ( 1 <= userid <= MaxClients ) )     {         char g_szWeapon[ 32 ];                 GetEventString( event, "weapon", g_szWeapon, sizeof( g_szWeapon ) );         if ( StrEqual( g_szWeapon, "env_beam" ) )         {             SetEventString( event, "weapon", s_wpn_dmg );                         if (b_lm_hs)             {                 SetEventBool(event, "headshot", true);             }         }     }         return Plugin_Continue; }

Problem with pre method and env_beam, HS not works now!

Last edited by ZASTRELIS; 07-31-2016 at 05:46.
ZASTRELIS is offline