Add A Reason
#6

pawn Код:
CMD:wslap(playerid,params[])
{
    new targetid,reason[120];
    if(pInfo[playerid][pAdminLevel] < 1) SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
    else if(sscanf(params, "uS(None)[120]", targetid, reason))  SendClientMessage(playerid,-1,""chat" /wslap [playerid] [reason]");
    else if(!IsPlayerConnected(targetid)) SendClientMessage(playerid,-1,""chat" Player is not online");
    else{
        new
            string[128],
            Float:posxx[3];

        GetPlayerPos(targetid, posxx[0], posxx[1], posxx[2]);
        SetPlayerPos(targetid, posxx[0], posxx[1], posxx[2]+4);

        format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s has warned slapped %s",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid));
        SendClientMessageToAll(-1,string);
        if(strcmp(reason,"None") != 0)
        {
            format(string, sizeof(string), ""chat""COL_LIGHTBLUE" Reason: %s",reason);
            SendClientMessageToAll(-1,string);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Add A Reason - by NoahF - 22.06.2013, 13:24
Re: Add A Reason - by SMW - 22.06.2013, 13:27
Re: Add A Reason - by Kindred - 22.06.2013, 13:35
Re: Add A Reason - by NoahF - 22.06.2013, 13:37
Re: Add A Reason - by SMW - 22.06.2013, 15:24
Re: Add A Reason - by Jefff - 22.06.2013, 15:25
Re: Add A Reason - by Kindred - 22.06.2013, 15:47

Forum Jump:


Users browsing this thread: 1 Guest(s)