Chatbe vagy Dialogba?
Dialog:
[pawn]#include <a_samp>
new cmds;
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(\"/cmds\", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid,cmds,DIALOG_STYLE_MSGBOX,\"Parancsok\",\"ide a parancsokat\",\"Oké!\",\"Oké!\");//ha akarod hogy ket sor egymas alatt legyen akkor kb5 parancs után ird: \\n
return 1;
}
return 0;
}[/pawn]
Chatbe:
[pawn]#include <a_samp>
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(\"/cmds\", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,0xFF0000FF,\"ide a parancsot\");
SendClientMessage(playerid,0xFF0000FF,\"ide a parancsot\");
SendClientMessage(playerid,0xFF0000FF,\"ide a parancsot\");
SendClientMessage(playerid,0xFF0000FF,\"ide a parancsot\");
SendClientMessage(playerid,0xFF0000FF,\"ide a parancsot\");
return 1;
}
return 0;
}[/pawn]