Jump to content

TextDraw fantoma...


buNNyy
 Share

Recommended Posts

Problema era la ACCESORI ( asta e sa ajut pe cei carora le da eroarea acceasta ! )

 

update_accs(playerid) {
	new 
		string[64],
		i = ObjectSlot[playerid][ObjectID[playerid]];

	if(objectInfo[i][objPremium] == 0) format(string, sizeof(string), "Price: ~g~$%s", FormatNumber(objectInfo[i][objMoney]));
	else if(objectInfo[i][objPremium] > 0 && objectInfo[i][objMoney] == 0) format(string, sizeof(string), "Price: ~p~%s PP", FormatNumber(objectInfo[i][objPremium]));
	else if(objectInfo[i][objPremium] > 0 && objectInfo[i][objMoney] > 0) format(string, sizeof(string), "Price: ~g~$%s~w~~h~ / ~p~%s PP", FormatNumber(objectInfo[i][objMoney]), FormatNumber(objectInfo[i][objPremium]));
	PlayerTextDrawSetString(playerid, AccsPTD[0], string);
	PlayerTextDrawShow(playerid, AccsPTD[0]);

	PlayerTextDrawSetPreviewModel(playerid, AccsPTD[1], objectInfo[i][objModel]);
	PlayerTextDrawShow(playerid, AccsPTD[1]);

	format(string, sizeof(string), "%d/%d", ObjectID[playerid]+1, count_objects(ObjectType[playerid]));
	PlayerTextDrawSetString(playerid, AccsPTD[2], string);
	PlayerTextDrawShow(playerid, AccsPTD[2]);

	SetPlayerAttachedObjectEx( playerid, ObjectType[playerid], objectInfo[i][objModel], objectInfo[i][objBone], objectInfo[i][objfOffsetX], objectInfo[i][objfOffsetY], objectInfo[i][objfOffsetZ], objectInfo[i][objfRotX], objectInfo[i][objfRotY], objectInfo[i][objfRotZ], 1.000000, 1.000000, 1.000000 );
	return 1;
}

Bafta.

youtube.com/buNNyRO

www.codeup.ro

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...