07.05.2017, 10:44
Quote:
Quote:
|
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.
|
PHP код:
//OnPlayerPickUpPickUp
new houseid = -1;
new IDD = IsPlayerNearHouse(playerid);
for(new idd; idd<MAX_HOUSES; idd++)
{
if(HouseInfo[idd][HousePickup])
{
houseid = idd;
break;
}
}
if(houseid != -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);
}
}


