new mapname[100]
new bool: poseduje
new bool: time_delete
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd( "kz_delete_rec", "uradjeno" )
}
public uradjeno(id)
{
if( !is_user_admin( id ) )
{
client_print( id, print_console, "You must be an admin to reset someone's record." )
return PLUGIN_HANDLED
}
poseduje = false;
new dir = open_dir("/addons/amxmodx/configs/kz/top15/", mapname, sizeof(mapname)-1)
new file, fname[100]
new readdata[128]
new ptime[20],psteamid[40],pname[32],pdate[20]
new szarg1[32]
read_argv(1,szarg1,31)
remove_quotes(szarg1);
if( !( containi(szarg1, "STEAM") != -1 || strlen( szarg1 ) > 3 ) )
{
client_print( id, print_console, "Moras STEAM:ID ili Nick duzi od 3 slova !" )
return PLUGIN_HANDLED;
}