i need a help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: i need a help (
/showthread.php?tid=181027)
i need a help -
iJumbo - 03.10.2010
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 ?
Re: i need a help -
DeathOnaStick - 03.10.2010
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.
Re: i need a help -
Conroy - 03.10.2010
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