Advertisement
danya777_kirov

checkhp

Dec 16th, 2013
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.61 KB | None | 0 0
  1. CMD:checkhp(playerid, params[])
  2. {
  3.     if (!gAuthorize[playerid]) SendClientMessage(playerid, -1, " *Вторичную авторизацию пройди.");
  4.     else
  5.     {
  6.         if(!sscanf(params, "u", params[0]))
  7.         {
  8.             if (IsPlayerConnected(params[0]) && PlayerInfo[playerid][pAdmin] > 0)
  9.             {
  10.                 new Float: health; new msg[128];
  11.                 GetPlayerHealth(params[0], health);
  12.                 format(msg, sizeof(msg), " *checkhp: %i health %0.1f vs. %0.1f", health, GetPVarFloat(params[0], "H"));
  13.                 SendClientMessage(playerid, -1, msg);
  14.             }
  15.         }
  16.         else SendClientMessage(playerid, -1, " *Юзай /checkhp [user]");
  17.     }
  18.     return 1;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement