03.03.2013, 12:15
Hello, may people are searching for a reliable way of crashing player's client.
Here is the very simple function.
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.
Here is the very simple function.
pawn Code:
stock CrashClient(playerid)
{
if(!IsPlayerConnected(playerid)) return false;
return GameTextForPlayer(playerid, "~k~~INVALID_KEY~", 100, 4);
}
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