20.06.2010, 18:21
how do you want to add playerid to SendRconCommand lol?
//edit: you can try that:
the command get's the rcon from server.cfg but it doesnt log the player
//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;
}