08.11.2013, 07:03
pawn Код:
#include <sscanf2>
#include <zcmd>
#define SCM SendClientMessage
#define COLOR_ERROR 0x808080FF
CMD:hat(playerid,params[])
{
new color[28];
if(sscanf(params,"s[28]",color)) return SCM(playerid,COLOR_ERROR,"Usage: /hat [color]");
if(strcmp(color, "blue", true)==0)
{
//HERE What happens if they write blue or BlUe or BLUE or bLuE etc..
}
if(strcmp(color, "red", true)==0)
{
//HERE What happens if they write red etc..
}
return 1;
}
HERE the zcmd https://sampforum.blast.hk/showthread.php?tid=91354