Razor42 Posted March 21, 2014 Share Posted March 21, 2014 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. Quote Link to comment Share on other sites More sharing options...
Guest Posted March 21, 2014 Share Posted March 21, 2014 You can only have varchar (255) ? You need longtext or text for the column "text" Quote Link to comment Share on other sites More sharing options...
Reecey12345 Posted March 21, 2014 Share Posted March 21, 2014 Wants different about this to normal events?.. Quote Link to comment Share on other sites More sharing options...
Razor42 Posted March 21, 2014 Author Share Posted March 21, 2014 @!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. Quote Link to comment Share on other sites More sharing options...
Script47 Posted March 21, 2014 Share Posted March 21, 2014 @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? Quote Link to comment Share on other sites More sharing options...
Razor42 Posted March 21, 2014 Author Share Posted March 21, 2014 How is it anything like announcments? It lets people know what other people are doing... Screenshot: [ATTACH=CONFIG]1362[/ATTACH] Quote Link to comment Share on other sites More sharing options...
sniko Posted March 21, 2014 Share Posted March 21, 2014 (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 March 21, 2014 by sniko Quote Link to comment Share on other sites More sharing options...
Script47 Posted March 21, 2014 Share Posted March 21, 2014 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! Quote Link to comment Share on other sites More sharing options...
Reecey12345 Posted March 21, 2014 Share Posted March 21, 2014 How is it anything like announcments? It lets people know what other people are doing... Screenshot: [ATTACH=CONFIG]1362[/ATTACH] Screenshots make all the difference, this is nice. Quote Link to comment Share on other sites More sharing options...
Samurai Legend Posted July 20, 2014 Share Posted July 20, 2014 (edited) You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Edited July 20, 2014 by Samurai Legend Quote Link to comment Share on other sites More sharing options...
Dayo Posted July 21, 2014 Share Posted July 21, 2014 I may add something like this to GL if you don't mind me copying your idea :) Quote Link to comment Share on other sites More sharing options...
AnonymousUser Posted August 16, 2014 Share Posted August 16, 2014 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 Quote Link to comment Share on other sites More sharing options...
bladewolf2010 Posted January 7, 2015 Share Posted January 7, 2015 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.