25.09.2009, 10:56
Top of the Script:
OnPlayerCommandText:
At the bottom:
pawn Код:
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
pawn Код:
dcmd(swatskin, 8, cmdtext);
pawn Код:
dcmd_swatskin(playerid, params[])
{
#pragma unused params
SetPlayerSkin(playerid, 285); // May not be the correct skin ID.
return 1;
}