yvadfulck Posted November 2, 2012 Share Posted November 2, 2012 hi i have this thing with a player on my server: the dude joins logs in,and a sec or Two later another player with same serial...same ip... the first time ive seen it i put a kickscript for the serial, now the dude just comes with other serial... my question:is this normal to have this Two players one serial thing going on? i shurly think you mta guys wont like a serial bug like this... can anyone give me an solution for this??? Link to comment
0 Smart. Posted November 2, 2012 Share Posted November 2, 2012 (edited) If I understood you correctly, you can use this script: function duplicateSerial(nick, ip, user, serial) for i, p in pairs(getElementsByType("player")) do if (serial == getPlayerSerial(p)) then kickPlayer(p, "Serial in use by somebody who's connecting") end end end addEventHandler("onPlayerConnect", root, duplicateSerial) Edited November 2, 2012 by Guest Link to comment
0 yvadfulck Posted November 2, 2012 Author Share Posted November 2, 2012 thank you verry much... but could you tell me how is this possible? a serial is a unique id based on your computer?or am i wrong? Link to comment
0 xTravax Posted November 2, 2012 Share Posted November 2, 2012 If I understood you correctly, you can use this script: function duplicateSerial(nick, ip, user, serial) for i, p in pairs(getElementsByType("player")) do if (serial == getPlayerSerial(p)) then kickPlayer(p, "Serial in use by connecting player") end end end addEventHandler("onPlayerConnect", root, duplicateSerial) You understanded wrong. He is asking why it happened and how its possible because he didn't have that script. Link to comment
0 Smart. Posted November 2, 2012 Share Posted November 2, 2012 thank you verry much...but could you tell me how is this possible? a serial is a unique id based on your computer?or am i wrong? You're correct and honestly, I have no idea how it's possible. Link to comment
0 yvadfulck Posted November 2, 2012 Author Share Posted November 2, 2012 could this be due to vmware? Link to comment
0 yvadfulck Posted December 10, 2012 Author Share Posted December 10, 2012 i found out how it happens... wine on linux... the user change thing is still possible on wine... Link to comment
0 DiSaMe Posted December 10, 2012 Share Posted December 10, 2012 That's the way I tested my Drawtag script before releasing it. I have also tried to look how pedestrian traffic works with two players, but two instances of GTA SA with multiple car and ped models loaded hardly fit into 512 MB of RAM Link to comment
0 yvadfulck Posted October 5, 2013 Author Share Posted October 5, 2013 If I understood you correctly, you can use this script: function duplicateSerial(nick, ip, user, serial) for i, p in pairs(getElementsByType("player")) do if (serial == getPlayerSerial(p)) then kickPlayer(p, "Serial in use by somebody who's connecting") end end end addEventHandler("onPlayerConnect", root, duplicateSerial) actualy this line would be better: as it kicks both clients and not just the client who is already connected function serialcheck(nick,ip,username,serial,versionn,versions) for i,v in ipairs(getElementsByType("player")) do local pserial = getPlayerSerial(v) if serial == pserial then cancelEvent(true,"this serial \" "..serial.." \" is already in use") kickPlayer(v,"man quit messing") outputDebugString(serial.." kicked for double") end end end addEventHandler ( "onPlayerConnect", root, serialcheck ) Link to comment
0 myonlake Posted October 5, 2013 Share Posted October 5, 2013 It's not a bug. The player is just running multiple instances of MTA. Link to comment
0 yvadfulck Posted October 5, 2013 Author Share Posted October 5, 2013 i know probabely wine on ubuntu i tested all this.. the result: funny it was possible to run 2 mta clients the same time on same pc for the same user ... and i even mannaged for both to have a different serial (lol), just playing with hardware before mta install Link to comment
Question
yvadfulck
hi i have this thing with a player on my server:
the dude joins logs in,and a sec or Two later another player with same serial...same ip...
the first time ive seen it i put a kickscript for the serial,
now the dude just comes with other serial...
my question:is this normal to have this Two players one serial thing going on?
i shurly think you mta guys wont like a serial bug like this...
can anyone give me an solution for this???
Link to comment
10 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now