[CAMPANIE STAFF]Cautam moderatori si designeri activi!
Welcome to WTFCS Community Forums!
Servere gaming la super-preturi! [HOSTING SERVICE]
-->






rLogs | Server Logs
Author : Robotelul WtfCS, Category : Include, 0 Replyes, 1450 Views
EVALUATE THIS TOPIC
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
1 Guest(s)
Wtfcs Community
         
21
POSTS
2,008
THREADS
390
REPUTATION
Male
Sex

WtfCs Coins: 0[w]

8Y
08-24-2012, 02:23 PM (This post was last modified: 12-05-2014, 02:29 PM by D0G.)
#1
Rock's Log Include
Scripted by Rock

Informatii:
Este un include ce iti permite sa salvezi log-uri pentru orice doresti din server.
Ex: kick: motiv, timp, data, admin, player.
Toate astea se salveza intr-un fisier setat de tine.

Mod de folosire:
Eu am dat un exemplu foarte simplu pentru voi sa intelegi cam cum sta treaba.
Code:
------------------------------------------------------------------------------------------------------------
#include < a_samp >
#include <  rLogs >
#include <  zcmd  >

new r_var[ 5 ] = "Rock";

CMD:createlog( playerid, params[ ] )
{
   new r_g_log[ 15 ];
   if( !LogExist( "Test.log" ) ) // Check if "Test.log" doesen't exist.
   {
      CreateLog( "Test.log" ); // Create "Test.log"

      format( r_g_log, sizeof( r_g_log ), "Test Log: %s", r_var ); // format string before using "WriteLog"
      WriteLog( "Test.log", r_g_log ); // Write in "Test.log" formated string, in my case "r_g_log"
   }

   return 1;
}

CMD:readlog( playerid, params[ ] )
{
   ReadLog( "Test.log" ); // Read "Test.log", text will be displayed in console.

   return 1;
}

CMD:deletelog( playerid, params[ ] )
{
   DeleteLog( "Test.log" ); // Delete "Test.log"

   return 1;
}
------------------------------------------------------------------------------------------------------------

Download:
You are not allowed to view links. Register or Login to view.
You are not allowed to view links. Register or Login to view.
Regulament forum: You are not allowed to view links. Register or Login to view.

You are not allowed to view links. Register or Login to view.

You are not allowed to view links. Register or Login to view.


Forum Jump: