From strcmp to zcmd.
#2

This is directly from my GM. You can edit/add things if you want.

pawn Код:
CMD:pm(playerid, params[])
{
    new iID, szMessage[80];
    if(sscanf(params, "us[79]", iID, szMessage))
        return SendClientMessage(playerid, COLOR_WHITE, "SYNTAX: /pm [nick/id] [message]");
    if(iID == INVALID_PLAYER_ID)
        return SendClientMessage(playerid, COLOR_RED, "Invalid nickname/ID.");

    new
        szString[128]
    ;
   
    format(szString, sizeof(szString), "PM from %s(%d): %s", getName(playerid), playerid, szMessage);
    SendClientMessage(iID, COLOR_YELLOW, szString);
    format(szString, sizeof(szString), "PM to %s(%d): %s", getName(iID), iID, szMessage);
    SendClientMessage(playerid, COLOR_YELLOW, szString);
    return 1;
}
Reply


Messages In This Thread
From strcmp to zcmd. - by RiChArD_A - 22.02.2013, 21:49
Re: From strcmp to zcmd. - by Scenario - 22.02.2013, 21:53
Re: From strcmp to zcmd. - by detter - 22.02.2013, 21:58
Respuesta: Re: From strcmp to zcmd. - by RiChArD_A - 23.02.2013, 12:00
Re: Respuesta: Re: From strcmp to zcmd. - by Scenario - 23.02.2013, 17:16
Respuesta: Re: Respuesta: Re: From strcmp to zcmd. - by RiChArD_A - 23.02.2013, 18:08
Re: From strcmp to zcmd. - by Patrick - 23.02.2013, 18:15
Re: From strcmp to zcmd. - by UnknownGamer - 23.02.2013, 18:40
Re: Respuesta: Re: Respuesta: Re: From strcmp to zcmd. - by Scenario - 23.02.2013, 18:47
Re: From strcmp to zcmd. - by Misiur - 23.02.2013, 20:18

Forum Jump:


Users browsing this thread: 1 Guest(s)