I Need Help, again
#5

Have fun, it's in zcmd btw.

pawn Код:
COMMAND:pm(playerid, params[])
{
    new targetid, string[128], message[128];

    if(sscanf(params,"uS(No message specified)[128]",targetid,message)) return SendClientMessage(playerid,SERVER_ORANGE," Correct usage is /pm [ name/id ] [ message ].");

    format(string, sizeof(string),"[ Received PM ] %s[%d]: %s",Player[playerid][name],playerid,message);
    SendClientMessage(targetid,PLAYER_COLOR_YELLOW,string);

    format(string, sizeof(string),"[ Sent PM ] %s[%d]: %s",Player[targetid][name],targetid,message);
    SendClientMessage(playerid,PLAYER_COLOR_YELLOW,string);
    return true;
}
Reply


Messages In This Thread
I Need Help, again - by Cody_Maverak - 19.11.2011, 00:32
Re: I Need Help, again - by Elka_Blazer - 19.11.2011, 11:40
Re: I Need Help, again - by CSSI - 19.11.2011, 11:42
Re: I Need Help, again - by Cody_Maverak - 19.11.2011, 16:35
Re: I Need Help, again - by FuTuяe - 19.11.2011, 16:43

Forum Jump:


Users browsing this thread: 1 Guest(s)