21.08.2012, 22:37
Here goes mine, just saw now you asked for a example.
pawn Код:
CMD:help(playerid, params[])
{
new number;
if(sscanf(params, "i", number)) return SendClientMessage(playerid,-1,"/help 0-3");
if(0 > number > 3) return SendClientMessage(playerid,-1,"0 - 3");
if(number == 0)
{
// functions
}
else if(number == 1)
{
// functions
}
else if(number == 2)
{
// functions
}
else if(number == 3)
{
// functions
}
return 1;
}