The last player who was shot.
#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


Messages In This Thread
The last player who was shot. - by _Application_ - 22.01.2015, 09:21
Re: The last player who was shot. - by Rudy_ - 22.01.2015, 09:50
Re: The last player who was shot. - by Schneider - 22.01.2015, 12:16
Re: The last player who was shot. - by Arxalan - 22.01.2015, 15:17

Forum Jump:


Users browsing this thread: 1 Guest(s)