User
Pass
2FA
 
 

decompilare .amxx --> .txt / .sma ! !
Go to page Previous  1, 2, 3, 4  Next    
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Tutorials
Author Message33441
nr913
[Banned user]


Banned


Status: Offline
(since 24-10-2013 10:06)
Joined: 24 Apr 2009
Posts: 4224, Topics: 223
Location: România

Reputation: 60.3
Votes: 156

 
Post Posted: 25-02-2010, 15:30:32 | Translate post to: ... (Click for more languages)

Vrei sa zici reputatie. L-am facut, dar acum il testam.
And stop telling my real name!


Attitude - A little thing that makes a BIG difference
0 0
  
Back to top
View user's profile Send private message
eX[e]c

[Mentally Stable]



Status: Offline
(since 21-03-2013 22:29)
Joined: 13 Nov 2008
Posts: 79, Topics: None
Location: Romania

Reputation: 166
Votes: 4

 
Post Posted: 25-02-2010, 21:34:54 | Translate post to: ... (Click for more languages)

asa am vrut sa zic si eu reputatie -) -
0 0
  
Back to top
View user's profile Send private message
eX[e]c

[Mentally Stable]



Status: Offline
(since 21-03-2013 22:29)
Joined: 13 Nov 2008
Posts: 79, Topics: None
Location: Romania

Reputation: 166
Votes: 4

 
Post Posted: 01-03-2010, 15:30:27 | Translate post to: ... (Click for more languages)

se mai aude ceva de acest plugin - ??
0 0
  
Back to top
View user's profile Send private message
tepy

[Mentally Stable]



Status: Offline
(since 15-03-2010 17:12)
Joined: 07 Jul 2008
Posts: 20, Topics: 4
Location: Romania

Reputation: 174
Votes: 4

Post Posted: 02-03-2010, 13:51:59 | Translate post to: ... (Click for more languages)

Din câte vãd nu se mai aude nimic...probabil cã este în probe.
0 0
  
Back to top
View user's profile Send private message
eX[e]c

[Mentally Stable]



Status: Offline
(since 21-03-2013 22:29)
Joined: 13 Nov 2008
Posts: 79, Topics: None
Location: Romania

Reputation: 166
Votes: 4

 
Post Posted: 11-03-2010, 21:09:35 | Translate post to: ... (Click for more languages)

nu se mai aude nimik .... ?
0 0
  
Back to top
View user's profile Send private message
ShiTeNN

[Mentally Stable]



Status: Offline
(since 02-08-2019 19:54)
Joined: 30 Mar 2010
Posts: 171, Topics: 37
Location: Romania

Reputation: 260.6
Votes: 8

Post Posted: 04-04-2010, 23:11:09 | Translate post to: ... (Click for more languages)

Shocker wrote:
Cu Disassemblerul poti doar sa VEZI.

Din cate se vede acolo, e redirectul clasic cu cateva modificari, mai executa niste queryuri SQL, probabil pentru asta vrei, sa ai statistici cu redirecturile



Cum se foloseste Wraith’s Disassembler - si app SMA la acel plugin cu evideta online a redirectelor costa 150 lei -

0 0
  
Back to top
View user's profile Send private message
klesk

[7sins]



Status: Offline
(since 25-03-2015 10:05)
Joined: 24 Jan 2007
Posts: 2997, Topics: 101
Location: Romania

Reputation: 318
Votes: 107

Post Posted: 08-04-2010, 16:26:08 | Translate post to: ... (Click for more languages)

xredirect 2.0 va avea statistici pe sql, e aproape gata varianta finala

http://bugs.x-base.org/roadmap_page.php?project_id=12


sin.freakz.ro
0 0
  
Back to top
View user's profile Send private message
ShiTeNN

[Mentally Stable]



Status: Offline
(since 02-08-2019 19:54)
Joined: 30 Mar 2010
Posts: 171, Topics: 37
Location: Romania

Reputation: 260.6
Votes: 8

Post Posted: 17-04-2010, 07:05:43 | Translate post to: ... (Click for more languages)

poi cam asa lau facut si alti, eu as putea pune linku dar cred ca este reclama:). Aproape acelasi probleme au intampinat si ei -. daca pot pune linku e ok, dar sa nu primesc warm sau altceva. astept sa vad ce zc un moderator daca pot pune linku



[dm.freakz.ro] Se cauta admini capabili


0 0
  
Back to top
View user's profile Send private message
hook-

[HH88 90BPM]



Status: Offline
(since 28-08-2015 23:35)
Joined: 18 Dec 2009
Posts: 154, Topics: 13
Location: Timisoara, Ro

Reputation: 203.2
Votes: 6

 
Post Posted: 23-04-2010, 10:11:38 | Translate post to: ... (Click for more languages)

RedirectCounter.sma
Code:

/* Formatexright © 2010, tuty

Redirect Counter is free software;
you can redistribute it and/or modify it under the terms of the
GNU General Public License as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Redirect Counter; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/




#include < amxmodx >
#include < amxmisc >
#include < sqlx >

#pragma semicolon 1

#define PLUGIN_VERSION_NUM "1.0.0"

new gCvarRedirectHost;
new gCvarRedirectUser;
new gCvarRedirectPass;
new gCvarRedirectDb;

new gCvarRedirectIp;
new gCvarRedirectName;
new gCvarRedirectSvPass;
new gCvarRedirectPort;

new Handle:gSqlTuple;
new Handle:SqlConnection;

new bCountPlayerRedirects;
new szQuery[ 256 ];

public plugin_init()
{
register_plugin( "Redirect Counter", PLUGIN_VERSION_NUM, "tuty" );
register_cvar( "redirectcounter_tuty", PLUGIN_VERSION_NUM, FCVAR_SERVER | FCVAR_EXTDLL | FCVAR_SPONLY );

gCvarRedirectHost = register_cvar( "redirect_host", "link baza de date" );
gCvarRedirectUser = register_cvar( "redirect_user", "user baza de date" );
gCvarRedirectPass = register_cvar( "redirect_password", "parola baza de date " );
gCvarRedirectDb = register_cvar( "redirect_database", "nume baza de date" );

gCvarRedirectIp = register_cvar( "redirect_ip", "127.0.0.1" );
gCvarRedirectName = register_cvar( "redirect_name", "tuty" );
gCvarRedirectSvPass = register_cvar( "redirect_server_password", "" );
gCvarRedirectPort = register_cvar( "redirect_server_port", "0" );

new iSqlHost[ 64 ], iSqlUser[ 64 ], iSqlPass[ 64 ], iSqlDb[ 64 ];

get_pcvar_string( gCvarRedirectHost, iSqlHost, charsmax( iSqlHost ) );
get_pcvar_string( gCvarRedirectUser, iSqlUser, charsmax( iSqlUser ) );
get_pcvar_string( gCvarRedirectPass, iSqlPass, charsmax( iSqlPass ) );
get_pcvar_string( gCvarRedirectDb, iSqlDb, charsmax( iSqlDb ) );

gSqlTuple = SQL_MakeDbTuple( iSqlHost, iSqlUser, iSqlPass, iSqlDb );

new iError, szError[ 256 ];
SqlConnection = SQL_Connect( gSqlTuple, iError, szError, charsmax( szError ) );

if( SqlConnection != Empty_Handle )
{
SQL_QueryAndIgnore( SqlConnection,

"CREATE TABLE IF NOT EXISTS `RedirectCounter` (\
`USER_NAME` varchar(32) default NULL, \
`LAST_PLAY_DATE` timestamp(14) NOT NULL, \
`PLAYERS_REDIRECTED` int(10) NOT NULL default '0', \
,PRIMARY KEY (`PLAYERS_REDIRECTED`) ) \
COMMENT='Evidenta Redirecte by tuty'" );

SQL_FreeHandle( SqlConnection );
}

else
{
log_amx( "SQLx error (#%d) -=> [%s]", iError, szError );
}
}

public plugin_cfg()
{
new szConfigsDir[ 32 ];
new szFile[ 192 ];

get_configsdir( szConfigsDir, charsmax( szConfigsDir ) );
formatex( szFile, charsmax( szFile ), "%s/RedirectCounter.cfg", szConfigsDir );

if( file_exists( szFile ) )
{
server_cmd( "exec %s", szFile );

server_print( "[RedirectCounter] Fisierul ^"%s^" a fost incarcat cu succes!", szFile );
log_amx( "[RedirectCounter] Fisierul <%s> a fost incarcat cu succes!", szFile );
}

else
{
server_print( "[RedirectCounter] Eroare!!! Fisierul ^"%s^" nu a fost gasit!!!", szFile );
log_amx( "[RedirectCounter] Eroare!!! Fisierul ^"%s^" nu a fost gasit!!!", szFile );
}
}

public client_connect( id )
{
new szServerPassword[ 30 ];
get_pcvar_string( gCvarRedirectSvPass, szServerPassword, charsmax( szServerPassword ) );

new szServerIp[ 32 ];
get_pcvar_string( gCvarRedirectIp, szServerIp, charsmax( szServerIp ) );

if( get_playersnum() >= 0 )
{
bCountPlayerRedirects++;

if( !equal( szServerPassword, "" ) )
{
client_cmd( id, "password %s", szServerPassword );
}

client_cmd( id, "Connect %s:%d", szServerIp, get_pcvar_num( gCvarRedirectPort ) );

new szHostUserName[ 32 ];
get_pcvar_string( gCvarRedirectName, szHostUserName, charsmax( szHostUserName ) );

formatex( szQuery, charsmax( szQuery ), "INSERT INTO `RedirectCounter` SET `USER_NAME`='%s', `LAST_PLAY_DATE`=NOW(), `PLAYERS_REDIRECTED`='%d' ON DUPLICATE KEY UPDATE `USER_NAME`='%s'", szHostUserName, bCountPlayerRedirects, szHostUserName );
SQL_ThreadQuery( gSqlTuple, "SaveClient_QueryHandler", szQuery );
}
}

public SaveClient_QueryHandler( iFailState, Handle:hQuery, szError[], iErrnum, iData[], iSize, Float:fQueueTime )
{
if( iFailState != TQUERY_SUCCESS )
{
log_amx( "SQLx error (#%d) -=> [%s]", iErrnum, szError );
}
}

public plugin_end()
{
if( gSqlTuple )
{
SQL_FreeHandle( gSqlTuple );
}
}


RedirectCounter.cfg
Code:

// --| IP-ul unde vor fi redirectionati jucatorii |--
// --| Un exemplu de IP este pus mai jos |--

redirect_ip "92.82.17.139"


// --| PORT-ul serverului |--
// --| Trebuie pus ca sa se poata conecta |--

redirect_server_port "27015"


// --| Numele care va aparea in baza de date |--
// --| Sa nu fie mai mare de 32 de litere/cifre |--

redirect_name "D!nake"


// --| In caz ca serverul pe care vrei sa redirectezi jucatorii |--
// --| are parola, pune in ghilimele parola, sau daca nu are lasa |--
// --| spatiu. Adica sa fie doar "" |--

redirect_server_password ""


RedirectCounter.php
Code:

<center>

<title>Evidenta Redirecte</title>
<body bgcolor="black">
<br><hr>
<h1><font color="grey">Evidenta Redirecte</font></h1></hr>
<hr></hr><br><br><br>

<?php
$dbHost = "link baza de date";
$dbUsername = "user baza de date";
$dbPassword = "parola baza de date";
$db = "nume baza de date";

mysql_connect($dbHost, $dbUsername, $dbPassword) or die("Can't connect to MySQL server");
mysql_select_db($db) or die("An error has occoured");

$result = mysql_query("SELECT * FROM RedirectCounter ORDER BY PLAYERS_REDIRECTED DESC");
$rcount = mysql_num_rows($result);

echo "<br /><table border='10' width='50%' style='text-align: center;'><tr><th WIDTH='37%'><font color='green'><h3><blink><img src='http://www.softips.com/modules/softips_skin_v2008/views/images/User.png'></img>Proprietar<img src='http://www.softips.com/modules/softips_skin_v2008/views/images/User.png'></img></blink></h3></font></th><th WIDTH='40%'><font color='blue'><h3><blink><img src='https://www.adaptavist.com/s/1517/1/3.3.5-M3-conf210/_/download/resources/com.adaptavist.confluence.themes.sitebuilder:sitebuilder/icons/stopwatch.png'></img>Ora<img src='https://www.adaptavist.com/s/1517/1/3.3.5-M3-conf210/_/download/resources/com.adaptavist.confluence.themes.sitebuilder:sitebuilder/icons/stopwatch.png'></img></blink></h3></font></th><th WIDTH='30%'><font color='red'><h3><blink><img src='http://www.anywherecostarica.com/img/keys/sustainability/comunity-programs.png'></img>Jucatori<img src='http://www.anywherecostarica.com/img/keys/sustainability/comunity-programs.png'></img><blink></h3></font></th></tr>";
for($i=0; $i<$rcount; $i++)
{
$resultName = mysql_result($result, $i, "USER_NAME");
$resultDate = mysql_result($result, $i, "LAST_PLAY_DATE");
$resultPlayers = mysql_result($result, $i, "PLAYERS_REDIRECTED");

echo "<tr><td><font color='green'>$resultName</font></td><td><font color='blue'>$resultDate</font></td><td><font color='red'>$resultPlayers</font></td></tr>";
}
echo "</table>";
?>

</center>
<br><br><br>
<center><h4><font color="grey">Script and AMXX Plugin made by </font><font color="yellow">Novuslink Team</font></h4></center>


Si campurile pentru db:
Code:

USER_NAME
LAST_PLAY_DATE
TOTAL_TIME
PLAYERS_REDIRECTED
TOTAL_PLAYERS_REDIRECTED


Si am o intrebare, "for-ul este mai rapid decat while?"


*** hook- killed c0sLykEEE ;x with a headshot from knife ***
0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
nr913
[Banned user]


Banned


Status: Offline
(since 24-10-2013 10:06)
Joined: 24 Apr 2009
Posts: 4224, Topics: 223
Location: România

Reputation: 60.3
Votes: 156

 
Post Posted: 23-04-2010, 10:38:26 | Translate post to: ... (Click for more languages)

for-ul este la fel ca while, depinde in ce context il folosesti.

Cu ce ai postat tu acolo eu pot sa iti sparg imediat baza de date. Nu e eficient.


Attitude - A little thing that makes a BIG difference
0 0
  
Back to top
View user's profile Send private message
hook-

[HH88 90BPM]



Status: Offline
(since 28-08-2015 23:35)
Joined: 18 Dec 2009
Posts: 154, Topics: 13
Location: Timisoara, Ro

Reputation: 203.2
Votes: 6

 
Post Posted: 24-04-2010, 00:13:00 | Translate post to: ... (Click for more languages)

s-au facut niste teste si cica for-ul e mai rapid cu 0.xxxx sec.
unde este bugul?-


*** hook- killed c0sLykEEE ;x with a headshot from knife ***
0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
nr913
[Banned user]


Banned


Status: Offline
(since 24-10-2013 10:06)
Joined: 24 Apr 2009
Posts: 4224, Topics: 223
Location: România

Reputation: 60.3
Votes: 156

 
Post Posted: 24-04-2010, 00:26:28 | Translate post to: ... (Click for more languages)

Ce bug ma? Ti-l dezasamblez, vad unde te-ai conectat si PAC! O baza crapata.
Depinde de situatie, daca dai cu ++ s-ar putea sa fie mai rapid, altfel while-ul ar trebui sa faca acelasi lucru. Acelasi timp adica.


Attitude - A little thing that makes a BIG difference
0 0
  
Back to top
View user's profile Send private message
ShiTeNN

[Mentally Stable]



Status: Offline
(since 02-08-2019 19:54)
Joined: 30 Mar 2010
Posts: 171, Topics: 37
Location: Romania

Reputation: 260.6
Votes: 8

Post Posted: 24-04-2010, 20:23:31 | Translate post to: ... (Click for more languages)

pai si scriptu de mai susu este bun, sau....?



[dm.freakz.ro] Se cauta admini capabili


0 0
  
Back to top
View user's profile Send private message
hook-

[HH88 90BPM]



Status: Offline
(since 28-08-2015 23:35)
Joined: 18 Dec 2009
Posts: 154, Topics: 13
Location: Timisoara, Ro

Reputation: 203.2
Votes: 6

 
Post Posted: 03-05-2010, 01:02:58 | Translate post to: ... (Click for more languages)

=p~, dar nu cred ca arata
Code:
gCvarRedirectHost = register_cvar( "redirect_host", "link baza de date" );
gCvarRedirectUser = register_cvar( "redirect_user", "user baza de date" );
gCvarRedirectPass = register_cvar( "redirect_password", "parola baza de date " );
gCvarRedirectDb = register_cvar( "redirect_database", "nume baza de date" );


Ia Wraith's Disassembler si arata-mi.


*** hook- killed c0sLykEEE ;x with a headshot from knife ***
0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
nr913
[Banned user]


Banned


Status: Offline
(since 24-10-2013 10:06)
Joined: 24 Apr 2009
Posts: 4224, Topics: 223
Location: România

Reputation: 60.3
Votes: 156

 
Post Posted: 03-05-2010, 09:25:39 | Translate post to: ... (Click for more languages)

Nene, cu un disassembler vad orice resursa care o foloseste pluginul. Poti sa si criptezi string-ul, ca tu ca sa il folosesti, o sa il decriptezi, si eu o sa vad algoritmul de decriptare si iti decriptez si eu stringul si voila. Nu e mare smecherie.

Attitude - A little thing that makes a BIG difference
0 0
  
Back to top
View user's profile Send private message

  Topic locked


Topic is closed, you cannot post any messages in it anymore

Locked by Happy =]], 22 August 2013 11:40



 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Tutorials  
Go to page Previous  1, 2, 3, 4  Next    


The time now is 27-04-2024, 13:56:43
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x