Don't like ads? PRO users don't see any ads ;-)
Guest

CMD

By: a guest on May 2nd, 2012  |  syntax: PAWN  |  size: 0.45 KB  |  hits: 20  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. CMD:gethealth(playerid,params[]){
  2.         new id, health, string[64];
  3.         if(sscanf(params,"u", id) return SendClientMessage(playerid,0xFF0000AA,"USAGE: /gethealth [playerid]");
  4.         else if(id==INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, "Player not found");
  5.         else{
  6.                 format(string,sizeof[string],"Player health is ", GetPlayerHealth(id, health));
  7.                 SendClientMessage(playerid,0xFFFFFFAA,string);} //Returns message to client
  8.         return 1;
  9. }