Dialog + Rcon = ?
#1

it is possible create DIALOG_STYLE_INPUT with rcon password ?
Reply
#2

You could try using SendRconCommand for the login command.
Reply
#3

maybe:
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	new string[128];
	...
	format(string,sizeof(string),"/rcon login %s",inputtext);
	OnPlayerCommandText(playerid,string)
	...
	return 1;
}
Reply
#4

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
Reply
#5

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 ?
Reply
#6

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.
Reply
#7

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
Reply
#8

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
Reply
#9

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.
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)