23.07.2012, 10:06
Do something like this if you wish to do something like /gang invite [id].
Requires sscanf and zcmd.
Requires sscanf and zcmd.
pawn Код:
CMD:gang(playerid,params[])
{
new option[10];
if(sscanf(params,"s[10])",option)) return SendClientMessage(playerid,-1,"Usage : /gang [options]");
if(!strcmp(option, "create", true)==0)
{
SendClientMessage(playerid,-1,"You used /gang create");
}
else if(!strcmp(option, "invite",true)==0)
{
new inviteid;
if(sscanf(params, "s[10]u", option, inviteid)) return SendClientMessage(playerid, -1, "Usage: /gang invite [id]");
//Do something
}
return 1;
}