Jump to content
MakeWebGames

Recommended Posts

Posted

I dont class myself as a coder but mostly i manage. I have never asked for help before but i am stuck on this. Please can any one tell me how i stop players selling items if they are under a certain value. For example if you have breakable items you cant sell them if they are broke. Thanx.

Posted

Re: Can someone help

$damaged=itemdamage > 0 (or <100 if you have it set that way)

If($GET_['ID'] == $damaged)

{print"You can not sell a damaged item";}

else

{(insert into itemadd...........................)}

This will not work its an example.

I have no idea of the weapon damage mod or its sql's so your on your own there.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...