SendRconCommand
#3

Код:
        	new PNAME[MAX_PLAYER_NAME];
			GetPlayerName(playerid, PNAME, sizeof (PNAME));
			format(chatSTRING, sizeof (chatSTRING), ""BLUE"[AdmCmd] "GREEN"%s "BLUE"has reloaded the script!", PNAME);
			SendClientMessageToAll(COLOR_BLUE, chatSTRING);
			PlayerPlaySound(playerid, 1057, 0, 0, 0);
			gettime(LogHour, LogMinute, LogSecond);
     	                getdate(LogYear, LogMonth, LogDay);
                        new File:pos=fopen("admin.log", io_append);
                        if (pos)
	                    {
                            format(FILESTRING, 256, "[%02d/%02d/%d - %02d:%02d:%02d] [AdmCmd] %s has reloaded the script!\r\n", LogDay, LogMonth, LogYear, LogHour, LogMinute, LogSecond, PNAME);
                        }
                        fwrite(pos, FILESTRING);
                        fclose(pos);
                        SendRconCommand("reloadfs matrixadmin");
Reply


Messages In This Thread
SendRconCommand - by MaTrIx4057 - 06.12.2011, 16:26
Re: SendRconCommand - by Ash. - 06.12.2011, 16:36
Re: SendRconCommand - by MaTrIx4057 - 06.12.2011, 16:39
Re: SendRconCommand - by Ash. - 06.12.2011, 16:42
Re: SendRconCommand - by MaTrIx4057 - 06.12.2011, 16:48
Re: SendRconCommand - by Ash. - 06.12.2011, 16:52
Re: SendRconCommand - by TheArcher - 06.12.2011, 17:37

Forum Jump:


Users browsing this thread: 2 Guest(s)