18.02.2009, 07:19
http://pastebin.com/m10c00f8a
I find these rather useful, you might, too
Just so you know, they need dcmd, too:
I find these rather useful, you might, too
Just so you know, they need dcmd, too:
pawn Code:
// OnPlayerCommandText:
dcmd(north, 5, cmdtext);
dcmd(south, 5, cmdtext);
dcmd(east, 4, cmdtext);
dcmd(west, 4, cmdtext);
dcmd(up, 2, cmdtext);
dcmd(down, 4, cmdtext);
// top of script:
#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