House system
#5

Quote:
Originally Posted by YouHack
Посмотреть сообщение
Quote:
Originally Posted by ShihabSoft
Посмотреть сообщение
You need to create a 3d text draw above the pickup with the info you want, then the info would be shown. Just creating a pickup won't show any text.
Doesn't need because that

PHP код:
//OnPlayerPickUpPickUp
    
new houseid = -1
    new 
IDD IsPlayerNearHouse(playerid);
    for(new 
iddidd<MAX_HOUSESidd++)
    {
        if(
HouseInfo[idd][HousePickup])
        {
            
houseid idd;
            break;
        }
    }
    if(
houseid != -1)
    {
        new 
str[128];
        
format(str128"~y~Price: ~w~$%d~n~~y~Owner: ~w~%s~n~~y~House ID: ~w~%d"HouseInfo[houseid][HouseValue], HouseInfo[houseid][HouseOwner], IDD);
        
GameTextForPlayer(playeridstr60003);
        new 
ownerid GetPlayerID(HouseInfo[IDD][HouseOwner]);
        if(
ownerid == playerid)
        {
              
SetPlayerHealth(ownerid,100.0);
            
SetPlayerArmour(ownerid,100.0);
        }
    } 
I think the problem that the command doesn't give id for the house how can i let it give id?
Reply


Messages In This Thread
House system - by Loinal - 06.05.2017, 21:08
Re: House system - by Loinal - 07.05.2017, 05:10
Re: House system - by ShihabSoft - 07.05.2017, 06:59
Re: House system - by YouHack - 07.05.2017, 10:19
Re: House system - by Loinal - 07.05.2017, 10:44
Re: House system - by YouHack - 07.05.2017, 10:47
Re: House system - by Loinal - 07.05.2017, 10:49
Re: House system - by ShihabSoft - 07.05.2017, 10:51
Re: House system - by YouHack - 07.05.2017, 10:55
Re: House system - by Loinal - 07.05.2017, 11:02

Forum Jump:


Users browsing this thread: 1 Guest(s)