Jump to content
GIGN Forum

Auto Demo


feli4ita
 Share

Recommended Posts

Es Atradu te Auto Demo record,bet nezinu kur to rakstit?Nevarētu paskaidrot kur to rakstit?Un iedodiet tad jau norm skript un kur lai to ieraksta?Un ka vins rakstit to demo?Piem Ka sataisit kad cilveks paspele pectam iziet no cs tad lai demo ierakstas...ko,kur,ka to darit? :pizdiblee:

Link to comment
Share on other sites

#include <amxmodx>
public plugin_init()
{
register_plugin("Demo recorder", "0.1", "PLUGINS ")
}
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)
}

izveido autodemo.sma nokompilē ar compiler.exe vai ar šo webkompileri, iemet plugins mapē, pievieno rindiņu iekš plugini.ini un aiziet :thumbsup:

Link to comment
Share on other sites

#include <amxmodx>
public plugin_init()
{
register_plugin("Demo recorder", "0.1", "PLUGINS ")
}
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)
}

izveido autodemo.sma nokompilē ar compiler.exe vai ar šo webkompileri, iemet plugins mapē, pievieno rindiņu iekš plugini.ini un aiziet :thumbsup:

a ka sataisit SMA formatu? :D

Link to comment
Share on other sites

tad jā... ieej šeit iekopē kodu lielajā laukā, ievadi short plugin name, paskrullē uz leju un tur būs compile :thumbsup:

vecīt takā ja tu ņemies ar serveri tev būtu šīs defaultās lietiņas jāzin :)

nosaukums.dem vietā Cs-Fire_Do_Am.dem

Edited by jerrico
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...