sprunk machine
#2

PHP код:
if(PRESSED(KEY_SECONDARY_ATTACK)){
    if(
GetPlayerMoney(playerid) >= 1){
        if(
IsPlayerInRangeOfPoint(playerid1.0320.1455,1733.6205,997.6163)){
            new 
Float:HP;
            
GetPlayerHealth(playeridHP);
            if(
HP 100.0){
                
HP += 20.0;
                if(
HP 100.0HP 100.0;
                
SetPlayerHealth(playeridHP);
                
GivePlayerMoney(playerid, -1);
                
ApplyAnimation(playerid,"VENDING","VEND_Use",1.4,,1,1,0,2500,1);
            }
        }
    }

Reply


Messages In This Thread
sprunk machine - by rambalili2 - 02.11.2015, 17:21
Re: sprunk machine - by AbyssMorgan - 02.11.2015, 17:26
Re: sprunk machine - by rambalili2 - 02.11.2015, 17:31
Re: sprunk machine - by AbyssMorgan - 02.11.2015, 17:37
Re: sprunk machine - by rambalili2 - 02.11.2015, 17:42

Forum Jump:


Users browsing this thread: 2 Guest(s)