01.05.2010, 14:45
pawn Код:
tmpstr[16];
sscanf(params, "s ", tmpstr);
if(!strcmp(tmpstr, "test", true))
{
new value;
if(sscanf(params[strlen(tmpstr)], "d", value)) return SendClientMessage(playerid, COLOR_RED, "Usage: /cmd test [seconds]");
...
}
else if(!strcmp(tmpstr, "test2", true) || !strcmp(tmpstr, "t2", true))
{
new value;
if(sscanf(params[strlen(tmpstr)], "d", value)) return SendClientMessage(playerid, COLOR_RED, "Usage: /cmd test2 [seconds]");
...
}
else return SendClientMessage(playerid, COLOR_RED, "Usage: /cmd [test/test2]");