Jump to content
MakeWebGames

In-Game Events


Razor42

Recommended Posts

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.

 
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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!

Link to comment
Share on other sites

  • 3 months later...
  • 4 weeks later...
  • 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...