RELIFE
#10

pawn Код:
if(strcmp(cmdtext, "/heal", true) == 0)
{
  new Float:health;
  GetPlayerHealth(playerid, health);
  if(health >= 100)
  {
   return SendClientMessage(playerid, 0x000000FF, "You alredy have full health!");
  }
  else
  {
    new str[128], name[24];
    GetPlayerName(playerid, name, MAX_PLAYER_NAME);
    format(str, sizeof str, "%s has just set health to 100!", name);
    SendClientMessageToAll(0x000000FF, str);
    TogglePlayerControllable(playerid, 1);
    return 1;
  }
  return 1;
}
Reply


Messages In This Thread
RELIFE - by Mikeses - 18.06.2009, 19:40
Re: RELIFE - by Correlli - 18.06.2009, 19:42
Re: RELIFE - by Mikeses - 18.06.2009, 19:48
Re: RELIFE - by mirkoiz - 18.06.2009, 21:07
Re: RELIFE - by dice7 - 18.06.2009, 21:22
Re: RELIFE - by Correlli - 18.06.2009, 21:24
Re: RELIFE - by Mikeses - 19.06.2009, 04:38
Re: RELIFE - by Grim_ - 19.06.2009, 04:59
Re: RELIFE - by Mikeses - 19.06.2009, 05:18
Re: RELIFE - by Grim_ - 19.06.2009, 05:33

Forum Jump:


Users browsing this thread: 1 Guest(s)