/command [something]
#4

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 sscanf2 https://sampforum.blast.hk/showthread.php?tid=120356

HERE the zcmd https://sampforum.blast.hk/showthread.php?tid=91354
Reply


Messages In This Thread
/command [something] - by Stinged - 08.11.2013, 06:57
Re: /command [something] - by Astralis - 08.11.2013, 07:00
Re: /command [something] - by Stinged - 08.11.2013, 07:02
Re: /command [something] - by NeMoK - 08.11.2013, 07:03
Re: /command [something] - by Stinged - 08.11.2013, 07:06
Re: /command [something] - by NeMoK - 08.11.2013, 07:07
Re: /command [something] - by Stinged - 08.11.2013, 07:10
Re: /command [something] - by NeMoK - 08.11.2013, 07:16

Forum Jump:


Users browsing this thread: 1 Guest(s)