garfield

[COD]: Bloquear comandos caso o jogador esteja morrendo.

Jan 9th, 2012
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.46 KB | None | 0 0
  1. /* 
  2.     #Autor: [iPs]SuYaNw
  3.     #Função: Bloquear o uso de comandos caso o jogador estiver morrendo.
  4.  
  5. */
  6.  
  7. #include a_samp
  8.  
  9. public OnPlayerCommandText(playerid, cmdtext[])
  10. {
  11.     static Float:Vida[MAX_PLAYERS]; GetPlayerHealth(playerid, Vida[playerid]);
  12.     iF(Vida[playerid] < 50.0)
  13.         return SendClientMessage(playerid, -1,"VocÊ não pode usar comandos quando estiver morrendo.");
  14.  
  15.     return 1;
  16. }
  17.  
  18.  
  19. // Código Reparado, Agradecimentos á Scrat por me alertar :)
Advertisement
Add Comment
Please, Sign In to add comment