View Single Post
Old 22/06/2013, 12:01 PM   #3
Huge Clucker
Areax's Avatar
Join Date: Mar 2013
Location: Slovenia
Posts: 464
Reputation: 14
Default Re: Script Request Thread #6

Originally Posted by mohammedsohailahmed View Post
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;
Areax is offline   Reply With Quote