Auto RCON login on cmd -
Kyance - 19.09.2013
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?
Re: Auto RCON login on cmd -
alinategh - 19.09.2013
You can't make a cmd to log you in RCON, you need to use /rcon login [pass] anyways...
Re: Auto RCON login on cmd -
Kyance - 19.09.2013
Ah, well, thanks anyways xd
Re: Auto RCON login on cmd -
kingofdemons - 19.09.2013
Hmmm try SendRconCommand or SendCommand I'm not sure if it will work but you can try. After all nor harm in trying.
Re: Auto RCON login on cmd -
Konstantinos - 19.09.2013
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.
Re: Auto RCON login on cmd -
DanishHaq - 19.09.2013
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.
Re: Auto RCON login on cmd -
Kyance - 21.09.2013
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? "
Re: Auto RCON login on cmd -
DanishHaq - 21.09.2013
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).