View Single Post
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 02-07-2021 , 13:34   Re: [CSTRIKE] team kill positive fragging
Reply With Quote #6

They do the same thing in different ways, where you add 2 kills for only TK while his code always gives + 1 for any kill.

Your code can be cleaned up a bit:
PHP Code:
public Death(id
{
    new 
killerid read_data)
    new 
victimid read_data)
    
    if ( 
is_user_connectedkillerid ) && ( cs_get_user_teamkillerid ) != cs_get_user_teamvictimid ) ) )
    {
        
set_user_fragskillerid get_user_fragskillerid ) + )
    }

__________________
Bugsy is offline