Jump to content
MakeWebGames

Recommended Posts

  • 3 months later...
  • 5 months later...
Posted

Re: Giving Item To All Users [FREE]

I like this Mod. ;)

But how do I get it to display the item name in the event, instead of the item ID??

Instead of:

event_add($r['userid'],"The population has just been given item {$_POST['item']}, Click Here to check.",$c);

would it be:

event_add($r['userid'],"The population has just been given item {$_POST['itmname']}, Click Here to check.",$c);

or something along the lines of that?

Posted

Re: Giving Item To All Users [FREE]

Is it possible to make it so only players that last loged on with in XXXX seconds get the item, using the unix timestamp? For example, for five days, having the current unix timestamp number be less than 432,000 above the number at 'laston' in the 'users' table.

  • 5 months later...
Posted

Re: Giving Item To All Users [FREE]

 

I like this Mod. ;)

But how do I get it to display the item name in the event, instead of the item ID??

Instead of:

event_add($r['userid'],"The population has just been given item {$_POST['item']}, Click Here to check.",$c);

would it be:

event_add($r['userid'],"The population has just been given item {$_POST['itmname']}, Click Here to check.",$c);

or something along the lines of that?

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

This is untested.....

Posted

Re: Giving Item To All Users [FREE]

 

I like this Mod. ;)

But how do I get it to display the item name in the event, instead of the item ID??

Instead of:

event_add($r['userid'],"The population has just been given item {$_POST['item']}, Click Here to check.",$c);

would it be:

event_add($r['userid'],"The population has just been given item {$_POST['itmname']}, Click Here to check.",$c);

or something along the lines of that?

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

This is untested.....

v2

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Feel free to remove the stripslashes(), as most people don't secure their files (including staff panel), it wouldn't be needed!

  • 4 months later...

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...