Raised This Month: $ Target: $400
 0% 

Cannot find tag mismatch


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 02-05-2010 , 18:22   Re: Cannot find tag mismatch
Reply With Quote #3

I've only corrected the tag mismatch warnings, not the critical errors
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#include <cstrike>
#include <engine>

new owner
new CsTeams:Ownerteam

public plugin_init()
{
    
register_plugin("Nade-Slap","1.0","r4nDoMz")
    
register_cvar("nslap_dmg""5")
    
register_touch("grenade""player""touch_nade")
    
register_cvar("amx_nslap""1")
    
RegisterHamHam_Weapon_PrimaryAttack"weapon_hegrenade""Nadethrow"// If the user throws a nade, we get the origin of it in the function
    
RegisterHamHam_Weapon_PrimaryAttack"weapon_flashbang""Nadethrow")
    
RegisterHamHam_Weapon_PrimaryAttack"weapon_smokegrenade""Nadethrow")
}

public 
touch_nade(nadeid)
{
    new 
CsTeams:hitTeam cs_get_user_team(id)
  
    if(
Ownerteam == hitTeam)
    {
        return
    }

    if(!
get_cvar_num("amx_nslap"))
    {
        return
    }

    
entity_set_edict(nadeEV_ENT_aimentid)
    
user_slap(idget_cvar_num("nslap_dmg"), 0)
    
entity_set_int(nadeEV_INT_sequence0)
}



public 
Nadethrow()
{
    
pev(pev_ownerowner)
    
Ownerteam cs_get_user_team(owner)

Seta00 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 07:26.


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