help adminpm
#4

pawn Код:
CMD:adminpm(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, COLOR_GREY, "Admin Only !");
    new PID, message[75];
    if(sscanf(params, "us[75]", PID, message)) return SendClientMessage(playerid, COLOR_GREY, "Usage: /adminpm [PlayerID] [Message]");
    if(!IsPlayerConnected(PID) || PID == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, "That user is not connected!");
    new Str[128];
    format(Str, sizeof(Str), "(( PM From: Admin: %s ))", message);
    SendClientMessage(PID, COLOR_RED, Str);
    format(Str, sizeof(Str), "(( PM Sent To: %s(%d): %s ))", pName(PID), PID, message);
    SendClientMessage(playerid, COLOR_LIGHTRED, Str);
    return 1;
}
Reply


Messages In This Thread
help adminpm - by kurniarocki - 29.05.2014, 00:42
Re: help adminpm - by Scrillex - 29.05.2014, 00:51
Re: help adminpm - by Stealthshooter - 29.05.2014, 00:57
Re: help adminpm - by Threshold - 29.05.2014, 02:04
Re: help adminpm - by TazmaNiax - 29.05.2014, 02:25
Re: help adminpm - by Stinged - 29.05.2014, 03:37

Forum Jump:


Users browsing this thread: 2 Guest(s)