Skip to content

Is it possible to change the command that the player sent? #76

Description

@Walter-Correa

I have a working function that removes non-english characters from a string, and I would like that if a player types /anúncio, instead of a non-existent command, I could transform it into /anuncio and the command would be validated.

I tried to do this, but it didn't work, the original command continues to be executed(OnPlayerCommandPerformed):

public OnPlayerCommandReceived(playerid, cmd[], params[], flags)
{
  	ReplaceNonEnglishChars(cmd);
  	return 1;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions