The other and major difference is that the time stamp does not take place from Janu00:00:00, but from the pre-set beginning of the year.įor example, the first registered X player will be on Janu(time is not important) and I know that the server will no longer store any older data but always newer (later registered, timeban. This version does not use unnecessarily two-dimensional variables (which store 12 months, for every 2 possible days of the month and a time stamp) as in the original versions. What is the difference between the original and this version? In this case, after the experience and use of the TimestampToDate and 'date' functions, which often showed me a slightly different date than I had, I would make my own conversion to date.
While it is true that I test the cycle functions repeating 1,000,000x (to ensure the differences) and in practice they are triggered so they go, maybe 2x 3x, but it does not change that the code must be unclear and unnecessarily complicated when it It's easy. I'm developing my own mode, where I do not use foreign features other than plugins, I always try to do everything in my own right so that it is faster and, if possible, less burdensome than RAM or CPU than Internet versions. I would like to thank in advance for your attention and patience in reading this long post, I tried to shorten it as much as possible so it was understandable and it had a head and a heel. Hi, I'd like to introduce my version of the timestamp to date - ReturnDate. ReturnDate => Transfer time stamp to date Note: If you add this to your server as a FilterScript restarting the server using gmx won't re-create the created objects, You have to add it to your game mode to fix this. Dynamic Objects n Or Pastebin LinkĪnd the final step is to create a folder with "ObjectsFile" as a name in your "scriptfiles" folder./objectinfo - To check the object's information.Īfter adding these includes to your "Pawno\includes" folder, Simply add this FilterScript to your folder and server settings.If you spotted a bug or have a suggestion, Explain it in a reply here or just PM me. I hope that some new guys will be able to learn from this and even improve it.įinaly, Please keep the credits. So when I was a beginer at Pawn, I thought it will be a hard work but it was an easy one. You will be able to know who created the object and when (DD/MM/YYYY) and if the object is edited (Pos.) You will be able to know who edited it. So I've been scripting for my own game mode and I wanted to make this so I and my mappers will be able to add some stuff InGame easly, So yeah, Why don't i share it for everyone? So it will store the coordinates of the object in a. I created this filterscript over a year ago, and I decided to share it with the community as I couldn't find any others which had the same functionality. Before installing the filterscript, I'd recommend you read the Installation section.
Much more detail, including a full installation guide, a troubleshooting guide and more support can be found on the Github page, along with the download.
/sendtoloc - Send another player to a location./gotoloc - Teleport to a selected location.See the stats about the locations (To see how many times each is used, for example).Teleport other players to any location.Create a location to allow anybody to teleport to it.This simple filterscript uses a MySQL database to allow users to teleport between places on the map. SendClientMessage(playerid, 0xFFFFFFFF, "((PLANE)) The plane landed, we wish you a nice day.") SetTimerEx("EndTeleport", 10000, false, "i", playerid) SendClientMessage(playerid, 0xFFFFFFFF, "You buy ticket to the Desert Island") Public OnDialogResponse(playerid, dialogid, response, listitem, inputtext) SendClientMessage(playerid, 0xFFFFFFFF, "You are not near place to buy the ticket!") ShowPlayerDialog(playerid, 888, DIALOG_STYLE_LIST, "Tickets", "Desert Island (500$)", "Select", "Quit")