i need a help
#1

hi im making a pass and username filterscript for start gm im making like

(in samp-server.exe)

loading gm.............

please insert a pass for start your server(type the pass under)




how i can make this ?
Reply
#2

I think it's not as easy as you think. At first you need a variable that you use OnGameModeInit. Then you need to check in every callback if the variable is TRUE or FALSE. Like this:

pawn Код:
OnGameModeInit([...])
{
if(PassEntered==TRUE)
{
//REAL CODE
}
if(PassEntered==FALSE)return 0;
}
And if you entered the password, it should execute OnGameModeInit again.
Reply
#3

You can only get console input via a filterscript, so you will need to save information to a file.

Ex: InputtedPassword = false

But then they could easily open and edit the value, so hash it.

Then simply check on the gamemode if the file equals true (hashed).

-Conroy
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)