![]() |
|
|
#1 |
|
Архивный участник
Join Date: Dec 2005
Posts: 242
|
Well, I'm around here.. and the ppl who know me know that i'm on antibot dev, but this time come here with a nice mod. For example I'm a simple user that I play on your server, I log on and my player is clean. When I logged in, I re-writed last_ip login, so will be more difficult find a responsable.
This mod what it did is save the last login before me. + Add column last_ip_old to user_account + Modify Procedure from lin2db called ap_SLog Code:
set ANSI_NULLS ON set QUOTED_IDENTIFIER ON go ALTER PROCEDURE [dbo].[ap_SLog] @uid int, @lastlogin datetime, @lastlogout datetime, @LastGame int, @LastWorld tinyint, @LastIP varchar(15) AS Declare @LastAddr varchar(15) SELECT @LastAddr=last_ip FROM user_account WHERE uid=@uid UPDATE user_account SET last_login = @lastlogin, last_logout=@lastlogout, last_world=@lastWorld, last_game=@lastGame, last_ip=@lastIP,last_ip_old=@LastAddr WHERE uid=@uid Pd: if u need help (maybe someone yes) take messenger. |
|
|
|
|