Looking for DCMD PM Command
#1

Anyone have a working DCMD PM command? I need one pretty bad. It dosnt have to be very hightech or special. Just a simple /pm. Thanks


(If this is in the wrong place im sorry)
Reply
#2

amm use zcmd... it will be easier and you won't have to f**k with dcmd
Reply
#3

He's asking for a PM command not some Advice
Reply
#4

pawn Код:
#define dcmd(%1,%2,%3) if((strcmp((%3)[1], #%1, true, (%2)) == 0)&&((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2])))))return 1

public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(pm, 2, cmdtext);
    return 0;
}

dcmd_pm(playerid, params[])
{
   new id, pName[MAX_PLAYER_NAME], pName2[MAX_PLAYER_NAME], str[128], msg[100];
   if(sscanf(params, "us[100]", id, msg)) return SendClientMessage(playerid, -1, "USAGE: /pm [id] [msg]");
   GetPlayerName(playerid, pName, sizeof(pName));
   GetPlayerName(id, pName2, sizeof(pName2));
   format(str, sizeof(str), "PM Sent to %s(%d): %s", pName2, id, msg);
   SendClientMessage(playerid, -1, str);
   format(str, sizeof(str), "PM From %s(%d): %s", pName, playerid, msg);
   SendClientMessage(id, -1, str);
   return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)