#2

Код:
//OnPlayerPickUpPickUp 
    new houseid = -1; 
    new IDD = IsPlayerNearHouse(playerid); //is -1
    for(new idd; idd<MAX_HOUSES; idd++) 
    { 
        if(HouseInfo[idd][HousePickup] == pickupid) 
        { 
            houseid = idd; 
            break; 
        } 
    } 
    if(houseid != -1 && IDD != -1) 
    { 
        new str[128]; 
        format(str, 128, "~y~Price: ~w~$%d~n~~y~Owner: ~w~%s~n~~y~House ID: ~w~%d", HouseInfo[houseid][HouseValue], HouseInfo[houseid][HouseOwner], IDD); 
        GameTextForPlayer(playerid, str, 6000, 3); 
        new ownerid = GetPlayerID(HouseInfo[IDD][HouseOwner]); 
        if(ownerid == playerid) 
        { 
              SetPlayerHealth(ownerid,100.0); 
            SetPlayerArmour(ownerid,100.0); 
        } 
    }
Reply


Messages In This Thread
AMX - by Loinal - 06.05.2017, 15:52
Re: AMX - by AbyssMorgan - 06.05.2017, 16:31
Re: AMX - by rt-2 - 06.05.2017, 17:12
Re: AMX - by Loinal - 06.05.2017, 21:28
Re: AMX - by rt-2 - 07.05.2017, 13:26
Re: AMX - by Loinal - 07.05.2017, 14:10
Re: AMX - by rt-2 - 08.05.2017, 04:24

Forum Jump:


Users browsing this thread: 1 Guest(s)