Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.41 KB | None | 0 0
  1. public OnPlayerCommandText(playerid, cmdtext[])
  2. {
  3.     if(!strcmp(cmdtext, "/heal", true))
  4.     {
  5.         new Float:Health;
  6.         GetPlayerHealth(playerid, Health);
  7.         if(Health < 100.0)
  8.         {
  9.             SetPlayerHealth(playerid, 100.0);
  10.             SendClientMessage(playerid, 0x18FE12FF, "Uzupełniłeś HP!");
  11.             GivePlayerMoney(playerid, -1000);
  12.         }
  13.         SendClientMessage(playerid, 0x18FE12FF, "Masz całe HP!");
  14.         return 1;
  15.     }
  16. return 1;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement