[HELP]GetPlayerHealth
#4

i lined them for you!

Код:
if (strcmp(cmd,"/menu1", true) == 0)
{
  if (PlayerToPoint (2.0, playerid, 1215.5399, -906.5798,42.4896)) {
    if(GetPlayerMoney(playerid < 100)) {
      SendClientMessage(playerid,0xAA3333AA,"You don't have the cash!");
      return 1;
    }
    new Float:health;
    GetPlayerHealth(playerid, health);
    GivePlayerMoney (playerid, -100);
    SetPlayerHealth(playerid, health+30);
    SendClientMessage (playerid, 0xAA3333AA, "You bought a Coca-Cola, a sandwich and French fries.");
    return 1;
  }
  return 1;
}
Reply


Messages In This Thread
[HELP]GetPlayerHealth - by lpstvv - 22.02.2010, 20:15
Re: [HELP]GetPlayerHealth - by Razvann - 22.02.2010, 20:25
Re: [HELP]GetPlayerHealth - by lpstvv - 22.02.2010, 20:26
Re: [HELP]GetPlayerHealth - by dclaw - 22.02.2010, 20:28
Re: [HELP]GetPlayerHealth - by lpstvv - 22.02.2010, 20:37
Re: [HELP]GetPlayerHealth - by dclaw - 22.02.2010, 20:40
Re: [HELP]GetPlayerHealth - by lpstvv - 22.02.2010, 20:50
Re: [HELP]GetPlayerHealth - by pyrodave - 22.02.2010, 20:55
Re: [HELP]GetPlayerHealth - by lpstvv - 22.02.2010, 20:58
Re: [HELP]GetPlayerHealth - by HerronInd - 24.02.2011, 08:19

Forum Jump:


Users browsing this thread: 1 Guest(s)