SA-MP Forums Archive
Changing nickname with hacks - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: Changing nickname with hacks (/showthread.php?tid=474358)



Changing nickname with hacks - PeppeAC - 07.11.2013

With some hacks is possible to change the nickname in game. It doesn't disconnect the player, but only changes his nickname.

This is part of the server logs.
[20:46:54] [join] Peppe has joined the server (0:127.0.0.1)
// NO DISCONNECT LOG
[20:47:16] [join] OtherName has joined the server (0:127.0.0.1)

What I do clientside is this:
1 Join the server with the nickname Peppe.
2 Use the hack to change the nickname into "OtherName".

In serverside the OnPlayerDisconnect for Peppe isn't called and this can be abused.


Re: Changing nickname with hacks - leong124 - 07.11.2013

Yeah, I have faced this problem before.

Quote:
Originally Posted by leong124
Посмотреть сообщение
You can add an array to check if the player slot is used in your script. If someone try to connect with an used player ID, ban him.



Can they spawn even if I return 0 in OnPlayerRequestSpawn?
BTW you can always use that secret native to check for bots. GetPlayerVersion returns invalid version name too for them, while IsPlayerNPC returns false.



Re: Changing nickname with hacks - DanishHaq - 07.11.2013

Yea, under OnPlayerDisconnect it's really annoying. Perhaps store it under the player connecting, and then under the player disconnecting, get their name, compare it to the variable stored and then if it is, then you can save the user file, if not, then just do a normal kick. Could also set a 10 second timer which loops all the players and makes sure that they're legit named players.


Re: Changing nickname with hacks - MohanedZzZ - 08.11.2013

I Know this bot and i already made a Filterscript to defend your server from this bots attack like [HAX] more and more test this Anti-Cheat
https://sampforum.blast.hk/showthread.php?tid=474395
this the best you can use it


Re: Changing nickname with hacks - PeppeAC - 09.11.2013

Quote:
Originally Posted by MoHaNeD14
Посмотреть сообщение
I Know this bot and i already made a Filterscript to defend your server from this bots attack like [HAX] more and more test this Anti-Cheat
https://sampforum.blast.hk/showthread.php?tid=474395
this the best you can use it
That are not bots.

This is the main problem of this bug, that I temporarily fixed: if a player changes his name in game with this hack, the OnPlayerDisconnect with his previous name will not be called, so in this way I can avoid any saving system.


Re: Changing nickname with hacks - =KempeR= - 11.11.2013

Quote:
Originally Posted by PeppeAC
Посмотреть сообщение
That are not bots.

This is the main problem of this bug, that I temporarily fixed: if a player changes his name in game with this hack, the OnPlayerDisconnect with his previous name will not be called, so in this way I can avoid any saving system.
Fixes much easier. And it is not a 'Changing nickname' it is reconnect without calling OnPlayerDisconnect


Re: Changing nickname with hacks - Yves - 11.11.2013

Quote:
Originally Posted by MoHaNeD14
Посмотреть сообщение
I Know this bot and i already made a Filterscript to defend your server from this bots attack like [HAX] more and more test this Anti-Cheat
https://sampforum.blast.hk/showthread.php?tid=474395
this the best you can use it
Maybe thats why you got banned sadly


Re: Changing nickname with hacks - Uoe_Andreas - 12.11.2013

Some people used this hack on my server
it floods the chat with name change messages and the server log aswell.


Re: Changing nickname with hacks - Emmet_ - 13.11.2013

I've wrote some code that might fix the issue:

http://pastebin.com/RE64mGfS

However, I can't test it atm. If someone can test it for me then that would be great!


Re: Changing nickname with hacks - PeppeAC - 13.11.2013

Quote:
Originally Posted by Emmet_
Посмотреть сообщение
I've wrote some code that might fix the issue:

http://pastebin.com/RE64mGfS

However, I can't test it atm. If someone can test it for me then that would be great!
This is the most bad-coded script I ever seen...