AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   a motd window which opens up its last viewed (https://forums.alliedmods.net/showthread.php?t=89788)

eagle.eye 04-10-2009 12:51

a motd window which opens up its last viewed
 
hey guys i guess the title says pretty much everything, but ill put it in more detail.

i have a curent plugin which when a command is written a html based motd pops up and gives clients many options , after clients have chosen trought all there options and have clicked the ok butten, they find it anoying re openeing it from the start and searchign trought all teh querys.

is there a way where i can make a command (/lastviewed) which will trow up the motd with exactly wat was veiwed last by that client?

suggestions would be great :up:

thanks

fysiks 04-10-2009 14:37

Re: a motd window which opens up its last viewed
 
I dont' think it's possible. Unless you cache it in on the webserver and have a unique identifier per client on the server. As far as AMXX goes I doubt it's possible.

eagle.eye 04-10-2009 23:55

Re: a motd window which opens up its last viewed
 
thanx mate but im trying to think away from amxx it self

wat i mean by this basically , gett the server the open the motd without executing anything ,which would lead it to open the last veiwed motd, and i no it sound liek it aint possible but there is some logic in it..

ethier way ill keep at it thats for that:):)

fysiks 04-11-2009 08:01

Re: a motd window which opens up its last viewed
 
Yeah, I thought about that too but I couldn't get the motd window open without telling it to open a specific page/document.

Hunter-Digital 04-11-2009 08:04

Re: a motd window which opens up its last viewed
 
You say you have like a quiz there and it's inserted in a database ? well... select the last row, easy...
if it's mysql: "SELECT * FROM `table` ORDER BY `id` DESC LIMIT 1;"

eagle.eye 04-11-2009 13:04

Re: a motd window which opens up its last viewed
 
yea exactly i gave it a go and yes i couldnt get it to work or open without telling it to open something,

uhm hunter im not to sure wat ur saying, but u have given me an idea as to how and wat i can do, if i suceed ill share it, if i fail , well :D ;)

and in advance thanx guys


All times are GMT -4. The time now is 02:27.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.