22.03.2018, 19:30
Quote:
BulletRaja Your thing might work but how do i make when the player log again it says your last time in the server? I need to safe the date and the time? If i need tell me how?
|
Код:
new Hour, Minute, Second, Year, Month, Day; gettime(Hour, Minute, Second); getdate(Year, Month, Day); //The following, I did with Y_Ini. It might differ if you don't use Y_Ini. new INI:File = INI_Open(UserPath(playerid)); INI_SetTag(File,"SomeTagHere"); INI_WriteInt(File,"Sec",Second); INI_WriteInt(File,"Min",Minute); INI_WriteInt(File,"Hour",Hour); INI_WriteInt(File,"Day",Day); INI_WriteInt(File,"Month",Month); INI_WriteInt(File,"Year",Year); ...
As for udb_hash. Every time you type your password you sure will need this check done, but a bit differently:
Код:
if(udb_hash(inputtext) == pPass) //You need to do udb_hash for inputtext since your pPass is a result of your password going through udb_hash as well.