Advertising
LUA - screenshot request without rcon-pw

20.01.2011 - 15:48:10

Here a (very) little code-snippet to request a screenshot from each player currently connected, without need of using rcon.

Place the code in a lua file and ensure the lua is executed by server config.

By entering
/screenshots
in the console, they`ll be requested

 Code
1:
2:
3:
4:
5:
6:
7:
8:
 function et_ClientCommand(clientNum, command) -- get client commands

    if command == "screenshots" then -- get the "/save" command
       et.trap_SendConsoleCommand( et.EXEC_APPEND, "pb_sv_getss\n" )
           return 1
    end
  return 0
end

  schnoog
First Sergeant

User Pic

Posts: 294
Registred: 08.12.2010
Origin: Südbaden

    

0 approved this posting.


20.01.2011 - 16:01:39

screenshot from every guids or what?

IronEagle
gelöschter User

User Pic


0 approved this posting.


20.01.2011 - 20:01:38

From each player on the server the command is entered.

It sends the command pb_sv_getss to the server, which requests a screenshot from each pb slot.

  schnoog
First Sergeant

User Pic

Posts: 294
Registred: 08.12.2010
Origin: Südbaden

    

0 approved this posting.




Images by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Powered by IlchBB Forum 3.1 © 2010 Weblösungen Florian Körner