14.04.2012, 13:19
(
Last edited by park4bmx; 14/04/2012 at 03:17 PM.
)
there ya go
pawn Code:
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~~r~Value: ~y~$%d~n~~r~Earning: ~y~$%d~n~~r~Owner: ~y~%s", PropInfo[propid][PropName], PropInfo[propid][PropValue], PropInfo[propid][PropEarning], PropInfo[propid][PropOwner]);
new Float:posX,Float:posY,Float:posZ;GetPlayerPos(playerid,posX,posY,posZ);
Create3DTextLabel(str, -1, posX,posY,posZ, 20.0, -1,-1);//will create the 3D text in the players position!
}
return 1;
}