• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

-=[TFS]=- 0.4 8.60 Need of Script What Show Message Login Server of player.

samuel157

/root
Joined
Mar 19, 2010
Messages
447
Solutions
3
Reaction score
49
Location
São Paulo, Brazil
GitHub
Samuel10M
Need of Script What Show message in orange every time I log in to ot.

Need of Script What Show Login Server do player.

Login Here

It is yours 1 login to ots.

Login Here

It is yours 2 login to ots.


etc...
Screenshot_1.png
 
On login.lua add:

local loginstorage = getPlayerStorageValue(cid,9999)
setPlayerStorageValue(cid,9999,loginstorage +1)
doPlayerSendMessage(cid,19,"It is yours" ..loginstorage.. " login to ots".
 
He asked me for a private message and I corrected the script. I sent it to him and he tested it. The script worked correctly. It's already solved, OK.

for those who want to use the script .. enjoy and use your server :D
Lua:
local loginstorage = getPlayerStorageValue(cid, 9999)
setPlayerStorageValue(cid, 9999, loginstorage + 1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "It is yours " .. loginstorage + 1 .. " login to ots")
 
If I were you I would count it only once a day otherwise its kinda a useless system?
Imagine you relog all the time for some mins :D
 
Last edited:
He asked me for a private message and I corrected the script. I sent it to him and he tested it. The script worked correctly. It's already solved, OK.

for those who want to use the script .. enjoy and use your server :D
Lua:
local loginstorage = getPlayerStorageValue(cid, 9999)
setPlayerStorageValue(cid, 9999, loginstorage + 1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "It is yours " .. loginstorage + 1 .. " login to ots")
Thank you for edit. I was writing this code from memory with no functions on the table.
 
Back
Top