KaLu17

[pawno.pl] -> #27792

Aug 8th, 2014
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.43 KB | None | 0 0
  1. CMD:myhp(playerid, params[])
  2. {
  3.     new Float:hp,
  4.         string[128];
  5.     if(sscanf(params, "f", hp))
  6.     {
  7.         SendClientMessage(playerid, 0x00FF00FF, "Poprawnie uzycie: /myhp [ID gracza.]");
  8.         return 1;
  9.     }
  10.     SetPlayerHealth(playerid, hp), GetPlayerHealth(playerid, hp);
  11.     format(string, sizeof(string), "Twoj aktualny poziom HP: %f", hp);
  12.     SendClientMessage(playerid, 0xFDAE33FF, string);
  13.     return 1;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment