The last player who was shot.
#1

The last player was hit by a bullet.


How i to do it?, please help me
Reply
#2

what?
Reply
#3

Like this?
pawn Код:
new LastShotPlayer = INVALID_PLAYER_ID;

public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
    if(issuerid != INVALID_PLAYER_ID)
    {
        LastShotPlayer = playerid;
    }
    return 1;
}
Reply
#4

Quote:
Originally Posted by Schneider
Посмотреть сообщение
Like this?
pawn Код:
new LastShotPlayer = INVALID_PLAYER_ID;

public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
    if(issuerid != INVALID_PLAYER_ID)
    {
        LastShotPlayer = playerid;
    }
    return 1;
}
I think he wanted to have a function that when he type /lastshot(or any cmd) so he get message about the person who shot him last time e.g. "You was shoot last time by (shooter name)".
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)