Szerző Téma: cmds  (Megtekintve 792 alkalommal)

cmds
« Dátum: 2011. Szeptember 24. - 08:06:06 »
0 Show voters
hogy lehet egy ojan parancsot csinalni hogy /cmds es kiadja a parancsokat
a segitseget elore is koszonom

Nem elérhető ►ѕтa

  • 2016
  • Newbie
    • Profil megtekintése
cmds
« Válasz #1 Dátum: 2011. Szeptember 24. - 08:20:39 »
0 Show voters
OnPlayerCommandText alá:
[pawn]
if(strcmp(cmdtext, \"/cmds\", true) == 0)
{
SendClientMessage(playerid, 0xFFFFFFFF, \"parancsokat ide\");
SendClientMessage(playerid, 0xFFFFFFFF, \"parancsokat ide\");
SendClientMessage(playerid, 0xFFFFFFFF, \"parancsokat ide\");
SendClientMessage(playerid, 0xFFFFFFFF, \"parancsokat ide\");
return 1;
}[/pawn]

cmds
« Válasz #2 Dátum: 2011. Szeptember 24. - 08:33:16 »
0 Show voters
[pawn]#include <a_samp>
public OnPlayerText(playerid, text[])
if(strcmp(cmdtext, \"/cmds\", true) == 0)
{
SendClientMessage(playerid, 0xFFFFFFFF, \"/buyhouse\");
SendClientMessage(playerid, 0xFFFFFFFF, \"/gohome\");
SendClientMessage(playerid, 0xFFFFFFFF, \"/housemenu\");
SendClientMessage(playerid, 0xFFFFFFFF, \"/kamionosmunka\");
SendClientMessage(playerid, 0xFFFFFFFF, \"/admins\");
SendClientMessage(playerid, 0xFFFFFFFF, \"/commands\");
return 1;
}
[/pawn]
igy jo

cmds
« Válasz #3 Dátum: 2011. Szeptember 24. - 08:34:43 »
0 Show voters
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]

cmds
« Válasz #4 Dátum: 2011. Szeptember 24. - 08:36:29 »
0 Show voters
koszi

cmds
« Válasz #5 Dátum: 2011. Szeptember 24. - 08:51:54 »
0 Show voters
Nm.De ajánlom Dialogba...
Ha megvan oldva Zárj!

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal