Auto RCON login on cmd
#1

Is there a possible way, to make a command, that will make you auto-login in RCON?
Current cmd:

Код:
	if (strcmp("/SecretAdminDuty", cmdtext, true, 10) == 0)
	{
	    new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
	    GetPlayerName(playerid, name, sizeof(name));

	    format(string, sizeof(string), "%s is on Admin-Duty:o", name);
	    SendClientMessageToAll(COLOR_GOLD, string);
	
		SpawnPlayer(playerid);
		SetPlayerSkin(playerid,217);
		GivePlayerWeapon(playerid,38,99999);
		GivePlayerWeapon(playerid,27,99999);
		GivePlayerWeapon(playerid,16,99999);
		SetPlayerHealth(playerid,99999);
		SetPlayerArmour(playerid,99999);
		return 1;
	}
And yeah, i know that any player can access it, but still, it's made for testing purposes
----------
Another problem that i just figured out, is that no animations/special actions work.
Jetpack special anim - Not working
DrunkLevel - Not working
Compiler has no error.
Could anyone help me please?
Reply
#2

You can't make a cmd to log you in RCON, you need to use /rcon login [pass] anyways...
Reply
#3

Ah, well, thanks anyways xd
Reply
#4

Hmmm try SendRconCommand or SendCommand I'm not sure if it will work but you can try. After all nor harm in trying.
Reply
#5

Quote:
Originally Posted by kingofdemons
Посмотреть сообщение
Hmmm try SendRconCommand or SendCommand I'm not sure if it will work but you can try. After all nor harm in trying.
Quote:
Note: Does not support login, due to the lack of a 'playerid' parameter.

It won't work.
Reply
#6

Quote:
Originally Posted by kingofdemons
Посмотреть сообщение
Hmmm try SendRconCommand or SendCommand I'm not sure if it will work but you can try. After all nor harm in trying.
SendRconCommand, you can use that only with the server commands, i.e. gmx, loadfs etc., you can't use it to log in.

SendCommand is to send an NPC command, not a player.
Reply
#7

Well uhm, could anyone help me with the second problem then?D:

"Another problem that i just figured out, is that no animations/special actions work.
Jetpack special anim - Not working
DrunkLevel - Not working
Compiler has no error.
Could anyone help me please? "
Reply
#8

Quote:
Originally Posted by Kyance
Посмотреть сообщение
Well uhm, could anyone help me with the second problem then?D:

"Another problem that i just figured out, is that no animations/special actions work.
Jetpack special anim - Not working
DrunkLevel - Not working
Compiler has no error.
Could anyone help me please? "
Put them under OnPlayerUpdate(playerid).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)