17.05.2011, 22:29
I'll convert your /b command for you:
pawn Код:
// 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
// OnPlayerCommandText
dcmd(b,1,cmdtext) // b = command name 1 = command length cmdtext = not 100% sure what it is lol
// bottom of script
dcmd_b(playerid,params[])
{
if(!strlen(params)) return SendClientMessage(playerid, COLOR_ERRORRED, "USAGE: /b [ooc chat]");
new str[128];
GetPlayerName(playerid, str, sizeof(str));
format(str, sizeof(str), "(( %s: %s ))", str, cmdtext[3]);
ProxDetector(10.0, playerid, str, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);
return 1;
}