• 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!

[SOLVED] First login

VirrageS

←•†ĿuĀ && ©¤¤•→
Joined
May 30, 2010
Messages
984
Reaction score
63
Location
Poland
Hello !

I need script which will show (doPlayerSendTextMessage)
"Welcome first time on our server" <<-- when player first time log in on his character.


But when he log in next time message will be "Welcome again on our server"

Thanks for helping. :thumbup:
 
Last edited:
/search.php

LUA:
function onLogin(cid) 

 local serverName = getConfigInfo('serverName') 
 local storage = getPlayerStorageValue(cid, 1000) 
  
 if storage == -1 then 
 doPlayerSendTextMessage(cid, 22, "Welcome first time on our server") 
 setPlayerStorageValue(cid, 1000, 1) 
 else 
 doPlayerSendTextMessage(cid, 22, "Welcome again on our server "..getPlayerName(cid).."!") 
 end 
 return TRUE
 
Back
Top