Originally Posted by SAWC™
Lo pones fuera de cualquier public:
pawn Код:
public OnPlayerSpawn(playerid) { return 1; }
public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/NombreDelComando", true)) { ShowPlayerDialog(playerid, 500, DIALOG_STYLE_MSGBOX, "Menъ de ayuda", comandos, "Aceptar", "Cerrar"); return 1; } return 0; }
O si ya tienes comandos en OnPlayerCommandText:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/otrocomando", true)) { return 1; } if(!strcmp(cmdtext, "/NombreDelComando", true)) { ShowPlayerDialog(playerid, 500, DIALOG_STYLE_MSGBOX, "Menъ de ayuda", comandos, "Aceptar", "Cerrar"); return 1; } return 0; }
|