Untitled
public text v1 · immutableScript_OnPlayerCommandText(playerid, cmdtext[])
{
ShowMenuForPlayer(WD, playerid);
{
if(strcmp(cmd,”/wd”,true)==0)
{
if(IsValidMenu(WD)) //Double Check the menu has been created to avoid Crash.
{
ShowMenuForPlayer(WD, playerid); //Show the Menu to the player
}
return 0;
}
return 1;
}