Sprunk Machine Help.
#10

replace with ..

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_SECONDARY_ATTACK)
    {
        if(IsPlayerNearVendingMachine(playerid))
        {
            if(GetPlayerMoney(playerid)< 8) return SendClientMessage(playerid, -1,  "You do not have enough money.");
            new Float:h;
            ApplyAnimation(playerid,"VENDING","VEND_Use",4.1,0,1,1,0,1,1);
            GetPlayerHealth(playerid, h);
            if(h < 80)
            {
                SetPlayerHealth(playerid, h+20);
            }
            else
            {
                SetPlayerHealth(playerid, 99);
            }
            GivePlayerMoney(playerid, -7);
        }
}
Reply


Messages In This Thread
Sprunk Machine Help. - by Bug. - 19.09.2012, 13:42
Re: Sprunk Machine Help. - by Bug. - 19.09.2012, 13:47
Re: Sprunk Machine Help. - by Safe - 19.09.2012, 13:49
Re: Sprunk Machine Help. - by Bug. - 19.09.2012, 14:05
Re: Sprunk Machine Help. - by milanosie - 19.09.2012, 14:35
Re: Sprunk Machine Help. - by Bug. - 19.09.2012, 14:39
Re: Sprunk Machine Help. - by Bug. - 20.09.2012, 15:07
Re: Sprunk Machine Help. - by CmZxC - 20.09.2012, 15:09
Re: Sprunk Machine Help. - by Bug. - 20.09.2012, 15:15
Re: Sprunk Machine Help. - by CmZxC - 20.09.2012, 15:29

Forum Jump:


Users browsing this thread: 1 Guest(s)