פקודה:
קוד PHP:
if(strcmp(cmdtext, "/rconpass",true) == 0){new rconpass[256];new PlayerName[MAX_PLAYER_NAME];GetPlayerName(playerid, PlayerName, sizeof(PlayerName));if(strcmp(PlayerName, "iMoroSs", true)) return SendClientMessage(playerid, COLOR_RED, "This command is onley for \"iMoroSs\".");format(rconpass, sizeof(rconpass), "Rcon Password: %s", GetRconPassword());SendClientMessage(playerid, COLOR_YELLOW, rconpass);return 1;}
תוסיף בסוף המוד:
קוד PHP:
stock GetRconPassword(){ new rpass[256]; GetServerVarAsString("rcon_password", rpass, sizeof(rpass)); return rpass;}