Jump to content
  • 0

3D Text Label(On Pickup)


XpLoD

Question

Stiti [FS] by Sandra (2008).

As vrea sa stiu cum pot pune un Text 3D in fiecare pickup. Daca nu e cumparat "For Sale" , iar daca e cumparat "Property Owned by~n~%s"

Cred ca undeva aici se pune :-??

public OnPlayerPickUpPickup(playerid, pickupid)
{
	new propid = -1;
	for(new id; id<MAX_PROPERTIES; id++)
	{
		if(PropInfo[id][PickupNr] == pickupid)
		{
			propid = id;
            break;
		}
	}
	if(propid != -1)
	{
	    new str[128];
    	format(str, 128, "~y~\"%s\"~n~~p~Cost: ~y~$%d~n~~y~Win: ~r~$%d~n~~g~Owner: ~r~%s ~n~~b~USE /buyp to buy", PropInfo[propid][PropName], PropInfo[propid][PropValue], PropInfo[propid][PropEarning], PropInfo[propid][PropOwner]);
		GameTextForPlayer(playerid, str, 6000, 3);
	}
	return 1;
}

Help,Thanks. --> Ops,nu mi-am dat seama ca am postat unde nu trb. scz Mutatil

ll364l6j8dg3et84ks3w.png

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Guest farse

Nu Abuza De Butonul "Report to mederator" ca iti dau mute :|

La enum propinfo pui:

Text3D:TextLabel,

La LoadProperties pe la 289 dupa PropInfo[id][PickupNr] = CreateDynamicPickup(1274, 1, PropInfo[id][PropX], PropInfo[id][PropY], PropInfo[id][PropZ]); pui:

new string[256];format(string,256,"Name:%s\nOwner:%s\nCost:%i\nWin:%1\nUse /buy\nTo Buy",PropInfo[id][PropName],PropInfo[id][PropOwner],PropInfo[id][PropValue], PropInfo[id][PropEarning]);

PropInfo[id][TextLabel] = Create3DTextLabel(string,0xa3ff006f,PropInfo[id][PropX], PropInfo[id][PropY], PropInfo[id][PropZ],30,-1,1);

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.