Thread: [PVP] Allow Deathmatch

Results 1 to 2 of 2
  1. #1
    Registered User yemez123's Avatar
    Join Date
    May 2017
    Posts
    10

    Lightbulb [PVP] Allow Deathmatch

    Hi there, I was make deathmatch mode. if it's possible can anybody help? because that's be first on sven co-op.

    Code:
    float flDamage;int bitsDamageType;
    
    
    void PluginInit()
    {
    	g_Hooks.RegisterHook( Hooks::Player::PlayerPostThink, @PlayerPostThink );
    }
    
    
    HookReturnCode PlayerPostThink( CBasePlayer@ pPlayer )
    {
    	TraceResult tr;
    		
    	if( tr.flFraction < 1.0 )
    	{
    		if( tr.pHit !is null )
    		{
    			CBaseEntity@ pHit = g_EntityFuncs.Instance( tr.pHit );
    					
    			if (pHit.IsPlayer() == true)
    			{
    				pHit.TakeDamage( pHit.pev, pHit.pev, flDamage, bitsDamageType );
    			}
    		}
    	}
    	return HOOK_CONTINUE;
    }
    deathmatch.as - include
    SOLVED - anyone won't helping because wanting moneys...
    Last edited by yemez123; 19-04-2018 at 12:33 PM.

  2. #2
    Registered User
    Join Date
    Feb 2017
    Posts
    22

    Re: [PVP] Allow Deathmatch [Help Request]

    How far is the script?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •