Guest User

Untitled

a guest
May 27th, 2011
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. COMMAND:heal(playerid, params[])
  2. {
  3. if (PlayerInfo[playerid][pAdminLevel] < 0) return SendClientMessage(playerid, 0xFF0000AA, "Unknown Command");
  4. {
  5. new id;
  6. if(sscanf(params, "u", id)) return SendClientMessage(playerid, 0xFF0000AA, "Usage: /heal (nick/id)");
  7. else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, "Unable To Locate User");
  8. else
  9. {
  10. SetPlayerHealth(id, 100.0);
  11. SetPlayerArmour(id, 100.0);
  12. }
  13. return 1;
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment