09.10.2016, 18:29
create the command and copy everything from OnPlayerCommandText where you put if( !strcmp( "/command", text ) ) paste it into the new command.
example
for every strcmp that checks for the text make a new command for.
example
Код:
CMD:yourcommand(playerid, params[]) // the part that is bold is the only thing that needs to change when making a new command
{
/* your pasted command here */
return 1;
}
public OnPlayerCommandText( playerid, cmdtext[] )
{
if( !strcmp( "/help", cmdtext ) )
{
// copy anything inbetween this to the command you made above
}
}

