Jump to content
MakeWebGames

Recommended Posts

Posted

This is just a small feature that allows you to list events that have happened in your game for users to see.

First Open up phpmyadmin and run this:

You're unable to view this code.

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

 

 

Then create a file called gameevents.php and enter inside it:

You're unable to view this code.

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

 

 

Then open up global_funcs.php and add in above ?>:

 

You're unable to view this code.

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

 

 

Then anywhere you want an in-game event to be logged have:

You're unable to view this code.

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

 

 

And finally add this into your explore:

You're unable to view this code.

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

 
Posted

You can only have varchar (255) ?

You need longtext or text for the column "text"

Posted

@!Angel - I think that should be long enough? But thanks for the advice.

@Reece - Instead of it just going to one single player its events that everyone can view.

Posted
@Reece - Instead of it just going to one single player its events that everyone can view.

So like an announcement right? Not being a douche, I like the mod it's a nice little feature but doesn't it already exist through announcements?

Posted (edited)
How is it anything like announcments? It lets people know what other people are doing...

Screenshot:

[ATTACH=CONFIG]1362[/ATTACH]

Nice!

However;

Why not create a flag in the events table (viewableForEveryone TINYINT(1) NOT NULL DEFAULT 0), then edit the event_add function, and finally the query on the events page to SELECT * FROM `events` WHERE `eventTo`=$userid OR `viewableForEveryone`=1 ;)

Edited by sniko
Posted
How is it anything like announcments? It lets people know what other people are doing...

Screenshot:

[ATTACH=CONFIG]1362[/ATTACH]

Ah yes, sorry I misunderstood what you mean't. Good mod. :)

 

Nice!

However;

Why not create a flag in the events table (viewableForEveryone TINYINT(1) NOT NULL DEFAULT 0), then edit the event_add function, and finally the query on the events page to SELECT * FROM `events` WHERE `eventTo`=$userid OR `viewableForEveryone`=1 ;)

Great idea!

  • 3 months later...
  • 4 weeks later...
  • 4 months later...
Posted
Its a free mod, simply put its FREE to use :D

also why are you guys calling for globals.php haven't you updated your engine yet? :D

I know this is an old mod but how else would you of done it instead of calling globals.php?

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