Posts: 366
Threads: 113
Joined: Feb 2014
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)".