Crash a player.
It's usefull.
The command on hisself, isnt usefull.
But the crash is.
(To Ban/kick + Crash hackers etc.) (Hackers can avoid kicks).
pawn Код:
CMD:crash(playerid, params[])
{
new string[128], playerb;
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
if(PlayerInfo[playerid][pAdmin] < 4) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
if(!aDuty[playerid]) return SendClientMessage(playerid, COLOR_GREY, "You are not on Admin Duty.");
if(sscanf(params, "u", playerb)) return SendClientMessage(playerid, COLOR_WHITE, "[Usage]: /crash [playerid]");
if(PlayerInfo[playerid][pAdmin] < PlayerInfo[playerb][pAdmin]) return SendClientMessage(playerid, COLOR_GREY, "Player has a higher admin level than you.");
GameTextForPlayer(playerb, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 1000, 0);
GameTextForPlayer(playerb, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 2000, 1);
GameTextForPlayer(playerb, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 3000, 2);
GameTextForPlayer(playerb, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 4000, 3);
GameTextForPlayer(playerb, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 5000, 4);
GameTextForPlayer(playerb, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 6000, 5);
GameTextForPlayer(playerb, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 7000, 6);
SendClientMessage(playerid, COLOR_WHITE, ""•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/");
SendClientMessage(playerid, COLOR_WHITE, ""•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/");
SendClientMessage(playerid, COLOR_WHITE, ""•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/");
SendClientMessage(playerid, COLOR_WHITE, ""•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/");
SendClientMessage(playerid, COLOR_WHITE, ""•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/");
SendClientMessage(playerid, COLOR_WHITE, ""•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/");
SendClientMessage(playerid, COLOR_WHITE, ""•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/");
format(string, sizeof(string), "You have crashed %s 's game", RPN(playerb));
SendClientMessage(playerid,COLOR_RED, string);
format(string, sizeof(string), "AdmWarn: %s has crashed %s his game.", RPN(playerid), RPN(playerb));
SendAdminMessage(COLOR_DARKRED, 1, string);
return 1;
}