25.02.2015, 07:18
Hello, i want to do multiple command,
/clan war [invite/deny/accept]
please help, sorry for my bad english
/clan war [invite/deny/accept]
please help, sorry for my bad english
CMD:clan(playerid, params[])
{
new param[20];
if (sscanf(params, "s[20]", param))
{
SendClientMessage(playerid, 0xFFFFFFF,"[S] : /clan [type]");
SendClientMessage(playerid, 0xFFFFFFF,"[TYPES] [invite/deny/accept]");
return 1;
}
if (!strcmp(param, "invite", true, 6))
{
//code here
}
if (!strcmp(param, "deny", true, 4))
{
//code here
}
if (!strcmp(param, "accept", true, 6))
{
//code here
}
return 1;
}
sscanf(params,"s[128]",invitationtype))
new param[6], option[6];
if(sscanf(params, "s[6]s[6]", param, option))