15.09.2009, 13:24
it is possible create DIALOG_STYLE_INPUT with rcon password ?
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new string[128];
...
format(string,sizeof(string),"/rcon login %s",inputtext);
OnPlayerCommandText(playerid,string)
...
return 1;
}
|
Originally Posted by Betamaster
You could try using SendRconCommand for the login command.
|
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");
if(dialogid == 1) {
if(response) {
new string[128];
format(string,sizeof(string),"/rcon login %s",inputtext);
OnPlayerCommandText(playerid,string);}
return 1;}
|
Originally Posted by stepmex
Quote:
|
|
Originally Posted by Don Correlli
Quote:
|
|
Originally Posted by Don Correlli
And..? They're executed anyway.
|
|
Originally Posted by stepmex
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;
}
|