Jump to content

need help anti multiaccount system


orcun99

Recommended Posts

function echoMsg()
	exports.WSScommands:sendMessage("1den fazla hesabı olan arkadaşlar banlanacaktır!", 255, 255, 0,root)
end

addEventHandler("onResourceStart", resourceRoot, function()
	executeSQLQuery("CREATE TABLE IF NOT EXISTS `multiacc`(ip TEXT, serial TEXT, id TEXT)")
	setTimer(echoMsg, 120000, 0)
end)


addEventHandler ( 'onPlayerLogin', getRootElement ( ),
function(source)
local serial = getPlayerSerial(source)
local account = getPlayerAccount(source)
local id = getAccountName(account) 
local ip = getPlayerIP(source)
	executeSQLQuery("INSERT INTO `multiacc` VALUES(?,?,?)", ip, serial, id)
	end
)
	

erorrs:

BAD ARGUMENT @ 'GETPLAYERSERİAL ' [Expected player at argument 1,got account]

BAD ARGUMENT @ 'GETPLAYERACCOUNT ' [Expected element at argument 1,got bolean]

BAD ARGUMENT @ 'GETACCOUNTNAME' [Expected account at argument 1,got account]

BAD ARGUMENT @ 'GETPLAYERIP ' [Expected element at argument 1,got account]

 

Link to comment
function echoMsg()
	exports.WSScommands:sendMessage("1den fazla hesabı olan arkadaşlar banlanacaktır!", 255, 255, 0,root)
end

addEventHandler("onResourceStart", resourceRoot, function()
	executeSQLQuery("CREATE TABLE IF NOT EXISTS `multiacc`(ip TEXT, serial TEXT, id TEXT)")
	setTimer(echoMsg, 120000, 0)
end)


addEventHandler ("onPlayerLogin", root,
function()
local serial = getPlayerSerial(source)
local account = getPlayerAccount(source)
local id = getAccountName(account) 
local ip = getPlayerIP(source)
	executeSQLQuery("INSERT INTO `multiacc` VALUES(?,?,?)", ip, serial, id)
	end
)
	

 

  • Like 1
Link to comment
3 minutes ago, Dimos7 said:

function echoMsg()
	exports.WSScommands:sendMessage("1den fazla hesabı olan arkadaşlar banlanacaktır!", 255, 255, 0,root)
end

addEventHandler("onResourceStart", resourceRoot, function()
	executeSQLQuery("CREATE TABLE IF NOT EXISTS `multiacc`(ip TEXT, serial TEXT, id TEXT)")
	setTimer(echoMsg, 120000, 0)
end)


addEventHandler ("onPlayerLogin", root,
function()
local serial = getPlayerSerial(source)
local account = getPlayerAccount(source)
local id = getAccountName(account) 
local ip = getPlayerIP(source)
	executeSQLQuery("INSERT INTO `multiacc` VALUES(?,?,?)", ip, serial, id)
	end
)
	

 

works thank uuu

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...