Question about Rcon
#10

how do you want to add playerid to SendRconCommand lol?

//edit: you can try that:

pawn Код:
if(!strcmp(cmdtext, "/login", true)){
new string[256];
new rcon[256];
GetServerVarAsString("rcon_password", rcon, 256);
format(string, 256, "login %s", rcon);
SendRconCommand(string);
SendClientMessage(playerid,COLOR_WHITE,"SERVER: You are logged in as admin.");
return 1;
}
the command get's the rcon from server.cfg but it doesnt log the player
Reply


Messages In This Thread
Question about Rcon - by Sascha - 20.06.2010, 17:01
Re: Question about Rcon - by Kar - 20.06.2010, 17:02
Re: Question about Rcon - by Sascha - 20.06.2010, 17:13
Re: Question about Rcon - by Jefff - 20.06.2010, 17:19
Re: Question about Rcon - by Sascha - 20.06.2010, 18:07
Re: Question about Rcon - by Hiddos - 20.06.2010, 18:14
Re: Question about Rcon - by Sascha - 20.06.2010, 18:17
Re: Question about Rcon - by Hiddos - 20.06.2010, 18:19
Re: Question about Rcon - by Mina - 20.06.2010, 18:20
Re: Question about Rcon - by DowNlOaD_ - 20.06.2010, 18:21

Forum Jump:


Users browsing this thread: 4 Guest(s)