login as rcon
#1

guys whats wrong with this code when i made it in the first time it was working but when i added the co-owner name it stoped working but then i removed it and its still not working
pawn Код:
GetPlayerName(playerid,pname,sizeof(pname));
    if(strcmp(pname,"TomatoRage",true)==0)
    {
        SendRconCommand("login xxxxx");
    }
Reply
#2

Here:
Код:
    new pname[MAX_PLAYER_NAME+1];
   GetPlayerName(playerid,pname, sizeof(pname));
   if(!strcmp(pname,"TomatoRage",true))
   {
	   SendRconCommand("login xxxxx");
   }
Reply
#3

still not working :/
Reply
#4

https://sampwiki.blast.hk/wiki/SendRconCommand

- Note: Does not support login, due to the lack of a 'playerid' parameter.
Reply
#5

SendRconCommand will only send it from the console, so basically what xF4Life is saying will not work. It's not possible to do that, you have to manually do /rcon login [password]. It's for security purposes anyway...
Reply
#6

Yes this is not possible. To reduce unsecure Rcon login sessions. Just use standard /rcon login...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)