Assist system
#1

hello everyone i have created an assist system but i need some help in it

PHP код:
new assist[MAX_PLAYERS];
new 
Float:Tdamage[MAX_PLAYERS][MAX_PLAYERS];
public 
OnPlayerGiveDamage(playeriddamagedidFloat:amountweaponid)
{
    
Tdamage[playerid][damagedid]=Tdamage[playerid][damagedid]+amount;
    return 
1;
}
public 
OnPlayerDeath(playeridkilleridreason)
{
    for(new 
i;i<=MAX_PLAYERS;i++)
    {
        if(
Tdamage[i][playerid]>=50.0)
        {
            
assist[i]++;
            
SendClientMessage(i,0x33AA33AA,"You gained an assist.");
            if(
assist[i]==2)
            {
                
//kills[playerid]++;
                
SendClientMessage(i,0x33AA33AA,"You gained a kill for 2 assist's.");
                
Tdamage[i][playerid]=0;
            }
        }
    }
    return 
1;

HEre is the code
i wat to get assist just when i make damage from team human to team zombie
and also i want to get all assists of the player
Thanks
Reply
#2

AnyOne Please ? Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)