SetPlayerTeam - Equal Death reason suicide.
#1

When 2(Two) players are in the same team(SetPlayerTeam), the reason that shows on the chat kill when they kill each other is suicide, how can i make it shows that One Killed Each Other?

I've try to make the SetPlayerTeam be different when he had 0.0 Life, But It Didn't Work.

I've made a Anti hacker For Health/Armour, but i just need to fix this thing.
Look at This ScreenShot:

Reply
#2

Bump
Reply
#3

We CANNOT help you without the code that you've created, If you haven't created anything and want to request code then there's a topic for you to do so.
Reply
#4

Here's The Code.
I Cant Make SendDeathMessage Work.
pawn Код:
// OnPlayerSpawn
SetPlayerTeam(playerid, 5)

// OnPlayerDeath
    if(pKillID[playerid] != INVALID_PLAYER_ID)
    {
         killerid = pKillID[playerid]; // 0
         
         SendDeathMessage(killerid,playerid,GetPlayerWeapon(killerid)),
            pKillID[playerid] = INVALID_PLAYER_ID;
    }

// OnPlayerGiveDamage
    if(damagedid != INVALID_PLAYER_ID)
    {
            new Float:health, Float:armour;
            GetPlayerHealth(damagedid, health);

            GetPlayerArmour(damagedid, armour);

            if(armour > 0.0)
            {
                armour -= amount;
                if(armour < 0.0) {
                    SetPlayerArmour(damagedid, 0.0);
                    if(health+(armour) <= 0.0) pKillID[damagedid] = playerid;
                    SetPlayerHealth(damagedid, health+(armour));
                    return true;
                }
                SetPlayerArmour(damagedid, armour);
            }
            else{
                health -= amount;
                if(health <= 0.0) pKillID[damagedid] = playerid;
                SetPlayerHealth(damagedid, health);
            }
    }
Reply
#5

bump
Reply
#6

Hook method 7?
Reply
#7

PHP код:
SendDeathMessage(killerid,playerid,GetPlayerWeapon(killerid)), pKillID[playerid] = INVALID_PLAYER_ID
Should Be Like This

PHP код:
SendDeathMessage(killeridplayeridreason); 
Reply
#8

BUMP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)