Advertisement
Kwarde

OPD Example

Aug 12th, 2011
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.34 KB | None | 0 0
  1. #include <a_samp>
  2. #include <OPD> //OPD.inc
  3.  
  4. public OnPlayerHealthChange(playerid, Float:oldHealth, Float:newHealth, Float:oldArmor, Float:newArmor)
  5. {
  6.     new str[100];
  7.     format(str, 100, "You just lost %.1f health and/or %.1f armor!", oldHealth - newHealth, oldArmor - newArmor);
  8.     GameTextForPlayer(playerid, str, 3000, 3);
  9.     return 1;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement