Jump to content
GIGN Forum

Auto Demo Recorder.


Recommended Posts

#include <amxmodx>
public plugin_init()
{
register_plugin("Demo-ieraksts", "0.1", "Laikam bija gamerx... ")
}
public client_putinserver(id)
{
    set_task(15.0,"StartRecord",id);
    set_task(20.0,"StartPrintInfo",id);
}
public StartRecord(id)
{
    client_cmd(id, "stop;record nosaukums.dem")
}
public StartPrintInfo(id)
{
    new name[32], ipadd[32], authid[32], CurrentTime[32], hostname[64], mapname[64]
    get_user_name(id,name,31)
    get_user_ip(id,ipadd,31)
    get_user_authid(id,authid,31)
    client_print(id,print_chat, "Niks: %s | ID: %s | IP: %s",name,authid,ipadd) 
    get_time("%m/%d/%Y - %H:%M:%S",CurrentTime,31)
    get_cvar_string("hostname",hostname,63)
    get_mapname(mapname,63)
    client_print(id,print_chat, "Datums & Laiks: %s | Karte: %s",CurrentTime,mapname)
}

esmu iztulkojis LV un vairāk neko + izņēmis nevajadzīgu rindu!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...