toribio

toribio

Aug 28th, 2009
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #define COR_INFO 0x007E00AA
  4.  
  5. public OnFilterScriptInit()
  6. {
  7.     return 1;
  8. }
  9.  
  10. public OnPlayerUpdate(playerid)
  11. {
  12.     new Float:vida;
  13.     static vbaixa[MAX_PLAYERS];
  14.     GetPlayerHealth(playerid, vida);
  15.     if((vida >= 10 && vida <= 15) && vbaixa[playerid] == 0)
  16.     {
  17.         SendClientMessage(playerid, COR_INFO, "[INFO] Sua vida est� baixa, � recomend�vel que voc� chame um m�dico!");
  18.         vbaixa[playerid] = 1;
  19.     } else vbaixa[playerid] = 0;
  20.     return 1;
  21. }
Add Comment
Please, Sign In to add comment