22.06.2013, 12:01
Quote:
I want a simple script to kill people through rcon. Example: /kill [id] [reason]. And it should show a notification to player saying ''You have killed by the rcon administrator.''
|
pawn Code:
CMD:akill(playerid, params[])
{
new targetid;
if(sscanf(params, "u", targetid))return SendClientMessage(playerid, -1, "Usage: /akill [playerid]");
if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid, -1, "You aren't RCON admin!");
if(!IsPlayerConnected(targetid))return SendClientMessage(playerid, -1, "This player is not connected!");
SetPlayerHealht(targetid, -1);
SendClientMessage(targetid, -1, "You have killed by the rcon administrator.");
return 1;
}