#6

Here's mine

pawn Код:
CMD:pm(playerid, params[])
{
    new pID, Msg[128];
    if(sscanf(params, "ds[128]", pID, Msg)) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}Usage: /pm [PlayerID] [Message]");
    if(pID == playerid) return SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}You can't PM to yourself!");
    if(!IsPlayerConnected(pID)) return SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Invalid PlayerID or the PlayerID is not online");
    new str[256], pName[MAX_PLAYER_NAME], pName2[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pName, sizeof(pName));
    GetPlayerName(pID, pName2, sizeof(pName2));
    format(str, sizeof(str), ">PM Sent to %s (ID: %d): %s", pName2, pID, Msg);
    SendClientMessage(playerid, red, str);
    format(str, sizeof(str), ">>> PM from %s (ID: %d): %s", pName, playerid, Msg);
    SendClientMessage(pID, red, str);
    return 1;
}
Reply


Messages In This Thread
ZCMD - by Windrush - 24.08.2012, 18:11
Re: ZCMD - by Calabresi - 24.08.2012, 18:12
Re: ZCMD - by Shetch - 24.08.2012, 18:16
Re: ZCMD - by Windrush - 24.08.2012, 18:20
Re: ZCMD - by Calabresi - 24.08.2012, 18:27
Re: ZCMD - by kbalor - 24.08.2012, 18:45
Re: ZCMD - by Windrush - 24.08.2012, 18:59
Re: ZCMD - by leonardo1434 - 24.08.2012, 19:39

Forum Jump:


Users browsing this thread: 3 Guest(s)