Advertisement
Guest User

Untitled

a guest
Aug 13th, 2011
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. public OnPlayerCommandText(playerid, cmdtext[])
  2. {
  3.  
  4.  
  5. dcmd(heal, 4, cmdtext);
  6. return 0;
  7.  
  8. }
  9.  
  10. dcmd_heal(playerid, params[])
  11. {
  12. new id;
  13. if(sscanf(params, "u", id)) SendClientMessage(playerid, COLOR_AZUL, "Usa: /heal [ID]");
  14. else if(id == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_AZUL, "Este jugador no esta conectado");
  15. else
  16. {
  17. SetPlayerHealth(id, 100.0);
  18. SendClientMessage(id, COLOR_AZUL, "Te han curado");
  19. SendClientMessage(playerid, COLOR_AZUL, "Lo has curado");
  20. }
  21. return 1;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement