08.02.2009, 02:46
pawn Код:
//After includes at top
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2])))))return 1
public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(recruit, 7, cmdtext);
return 0;
}
//Your command goes at the bottom of your script. Nowhere else.
dcmd_recruit(playerid,params[])
{
//rest of your code.
}