Dialog + Rcon = ? - 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: Dialog + Rcon = ? (
/showthread.php?tid=97593)
Dialog + Rcon = ? -
Maniek - 15.09.2009
it is possible create DIALOG_STYLE_INPUT with rcon password ?
Re: Dialog + Rcon = ? -
Betamaster - 15.09.2009
You could try using SendRconCommand for the login command.
Re: Dialog + Rcon = ? -
Stepashka - 15.09.2009
maybe:
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new string[128];
...
format(string,sizeof(string),"/rcon login %s",inputtext);
OnPlayerCommandText(playerid,string)
...
return 1;
}
Re: Dialog + Rcon = ? -
Stepashka - 15.09.2009
Quote:
|
Originally Posted by Betamaster
You could try using SendRconCommand for the login command.
|
These commands go not from the player are from a server
Re: Dialog + Rcon = ? -
Maniek - 15.09.2009
My code:
// public OnPlayerSpawn(playerid)
Код:
new loginmsg[128+1];
new loginname[MAX_PLAYER_NAME+1];
GetPlayerName(playerid,loginname,MAX_PLAYER_NAME);
format(loginmsg,128," [BETA 0.3].\n\nAccont: %s\n\nPassword:",loginname);
ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Login",loginmsg,"Login","Cancel");
//public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
Код:
if(dialogid == 1) {
if(response) {
new string[128];
format(string,sizeof(string),"/rcon login %s",inputtext);
OnPlayerCommandText(playerid,string);}
return 1;}
Don't work still
Any idea ?
Re: Dialog + Rcon = ? -
Correlli - 15.09.2009
Quote:
|
Originally Posted by stepmex
Quote:
|
Originally Posted by Betamaster
You could try using SendRconCommand for the login command.
|
These commands go not from the player are from a server
|
And..? They're executed anyway.
Re: Dialog + Rcon = ? -
d0 - 15.09.2009
Quote:
|
Originally Posted by Don Correlli
Quote:
|
Originally Posted by stepmex
Quote:
|
Originally Posted by Betamaster
You could try using SendRconCommand for the login command.
|
These commands go not from the player are from a server
|
And..? They're executed anyway.
|
and ? when you send the login with SendRconCommand the server doesnt know wich player logged in
Re: Dialog + Rcon = ? -
Stepashka - 15.09.2009
Quote:
|
Originally Posted by Don Correlli
And..? They're executed anyway.
|
The server cannot login to itself in the console! You tried to think before to write?
Doerfler, +1
Re: Dialog + Rcon = ? -
Correlli - 15.09.2009
Quote:
|
Originally Posted by stepmex
Quote:
|
Originally Posted by Don Correlli
And..? They're executed anyway.
|
The server cannot login to itself in the console! You tried to think before to write?
|
Ok smartie, did you tried that? Because i don't know, i never tried to use "login" command with the SendRconCommand function.
Re: Dialog + Rcon = ? -
dugi - 15.09.2009
Quote:
|
Originally Posted by stepmex
maybe:
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new string[128];
...
format(string,sizeof(string),"/rcon login %s",inputtext);
OnPlayerCommandText(playerid,string)
...
return 1;
}
|
You also have to think before posting as this code won't even work.