SA-MP Forums Archive
[Tutorial] How to crash player's client - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] How to crash player's client (/showthread.php?tid=420040)



How to crash player's client - ¤Adas¤ - 03.03.2013

Hello, may people are searching for a reliable way of crashing player's client.
Here is the very simple function.

pawn Code:
stock CrashClient(playerid)
{
if(!IsPlayerConnected(playerid)) return false;
return GameTextForPlayer(playerid, "~k~~INVALID_KEY~", 100, 4);
}
What it does: Game texts are able to show how your controller is set, simply said. For example: When you have the number 8 at the numpad set as KEY_UP, GameTextForPlayer(id, "~k~~KEY_UP~", x, x2) shows "NUM 8" or your screen. But if you use invalid key name (it can be anything that doesn't exist, INVALID_KEY is used for better understanding), the client will crash.


I hope you like my simple tutorial, everybody must understand this, but, please, do not misuse this function for crashing player's clients for fun



Re: How to crash player's client - SmithyComp - 03.03.2013

How could this be used in a positive way?


Re: How to crash player's client - ¤Adas¤ - 03.03.2013

Quote:
Originally Posted by SmithyComp
View Post
How could this be used in a positive way?
To crash annoying players, for example


Re: How to crash player's client - PabloDiCostanzo - 03.03.2013

Nice


Re: How to crash player's client - Luis- - 03.03.2013

What about just kicking / banning the annoying person..?


Re: How to crash player's client - ¤Adas¤ - 03.03.2013

Quote:
Originally Posted by -Luis
View Post
What about just kicking / banning the annoying person..?
Yeah, but it is just a tutorial, I did it because I have heard many people asking for it.


Re: How to crash player's client - Jochemd - 03.03.2013

This is stupid...


Re: How to crash player's client - Vince - 03.03.2013

It's a good way to get rid of these faggots that have auto-reconnect. You kick them and they instantly reconnect without having to close their game.


Respuesta: How to crash player's client - Onfroi - 03.03.2013

Yeah this is useful to get rid of annoying players, because when they get kicked they laugh, but when they get crashed they get mad, also this could be used to test an Anti-Crash System.

Good Job!


Respuesta: How to crash player's client - oOFotherOo - 03.03.2013

Good Job!