[Pomoc] Admin Help ili /ah u dijalogu

Započeo Shone, Maj 30, 2011, 21:00:30 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Shone

Skripta koju koristim:Street Stories
Detaljan opis problema:Zelim kada Admin kuca /ahelp ili /ah da mu se pojave Admin Komande u dijalogu pa ako bi neko mogao da mi posalje sta samo treba da stavim umesto staroga /ahelp u novi /ahelp sa dijalogom...Hvala...
Dio skripte:Admin Help
Neke slike/video za lakse dobivanje pomoci(neobavezno): http://server uklonjen!.com/images/stories/komande%20be.jpg

evo naprimer dako da izgleda ali samo bez ovoga GameMaster!

S. Moderator:

- Dodao sam ti prefix, molim da ga ubuduce sam dodajes.
Poslednja Izmena: Maj 30, 2011, 21:04:24 POSLE PODNE od [AG] BloodMaster

if(!strcmp(cmdtext, "/ahelp", true))
{
    ShowPlayerDialog(playerid, 501, DIALOG_STYLE_MSGBOX, "ahelp |adminkomande",
"tvojtext", "Dobro", "");
    return 1;
}

Shone

Molim te da mi ovo u dijalogu ispises sledeće:

if(strcmp(cmd, "/ahelp", true) == 0 || strcmp(cmd, "/ah", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
         if (PlayerInfo[playerid][pAdmin] >= 1)
         {
             SendClientMessage(playerid, COLOR_WHITE, "*** Duznost *** /adminduty");
            SendClientMessage(playerid, COLOR_GRAD1, "*** Level 1 Moderator ***  /fly /givenitro /check /setint /setvw /mute /kick /kickres /masked /unfreeze /learn");
            SendClientMessage(playerid, COLOR_GRAD1, "*** Level 1 Moderator *** /ban /slap /goto /a (/ao)oc /name /setskin /ajail /freeze /specplayer /checkweapons");
         }
         if (PlayerInfo[playerid][pAdmin] >= 2)
         {
            SendClientMessage(playerid, COLOR_GRAD2,"*** Level 2 Administrator *** /skydive /noooc /setteam /bigears /respawnthiscar(/rtc) /agl /setjob /update");
            SendClientMessage(playerid, COLOR_GRAD2,"*** Level 2 Administrator *** /gotoaero /gotoburg /gotobk");
         }
         if (PlayerInfo[playerid][pAdmin] >= 3)
         {
            SendClientMessage(playerid, COLOR_GRAD3,"*** Level 3 Administrator *** /cnnn /fourdive /gotols /prison /unprison /aunlock /fuelcars /edit /vehslap");
            SendClientMessage(playerid, COLOR_GRAD4,"*** Level 3 Administrator *** /mark /gotomark /gotolv /gotosf /gethere /oldcar /gotocar /getcar /setage");
            SendClientMessage(playerid, COLOR_GRAD4,"*** Level 3 Administrator *** /respawnallcars /respawnrentbikes /respawnrentcars /unban /unbanip /fixveh");
         }
         if (PlayerInfo[playerid][pAdmin] >= 4)
         {
             SendClientMessage(playerid, COLOR_GRAD4,"*** Level 4 Administrator *** /mole /logout /logoutpl /logoutall /asellhouse /asellbiz /sellsbiz /setchamp /mk");
             SendClientMessage(playerid, COLOR_GRAD4,"*** Level 4 Administrator *** /getallhere /sethp /setarmor /forceskin /explode /supervehslap");
         }
         if (PlayerInfo[playerid][pAdmin] >= 1337)
         {
            SendClientMessage(playerid, COLOR_GRAD5,"*** 1337 Administrator ***  /weather /weatherall /makeircadmin /makeadmin /makeleader /bizentrance /sbizentrance");
            SendClientMessage(playerid, COLOR_GRAD5,"*** 1337 Administrator *** /asellcar /setstat /money");
            SendClientMessage(playerid, COLOR_GRAD5,"*** 1337 Administrator *** /givemoney /givegun /crash /changename /houseentrance /housexit /tod /startlotto");
         }
         if (PlayerInfo[playerid][pAdmin] >= 1338)
         {
            SendClientMessage(playerid, COLOR_GRAD6,"*** Vlasnik *** /apark /racehelp");
         }
      }
      return 1;
   }

Bio bih ti zahvalan...

Evo ti
if(strcmp(cmd, "/ahelp", true) == 0 || strcmp(cmd, "/ah", true) == 0)
{
       if(IsPlayerConnected(playerid))
       {
           if (PlayerInfo[playerid][pAdmin] >= 1)
   {
               ShowPlayerDialog(playerid, 10, DIALOG_STYLE_LIST, "{F81414}Admin panel","Admin level 1\nAdmin level 2\nAdmin level 3\nAdmin level 4\nAdmin level 1337\nAdmin level 1338", "Komande", "Odustani");
       }
       else
{
SendClientMessage(playerid, COLOR_GREY, "({F81414}Greska!{C3C3C3}) Ovu komandu mogu koristiti samo Admini.");
   }
}
   return 1;
}

I pod OnDialogResponse dodaj ovo
if(dialogid == 10)
{
if(response)
{
if(listitem == 0) //
{
if (PlayerInfo[playerid][pAdmin] >= 1)
{
                   SendClientMessage(playerid, LIGHTRED, "|_____________________________________________________________________________|");
SendClientMessage(playerid, SVETLOPLAVA, "-/fly /check /setint /setvw /mute /kick /kickres /masked /unfreeze /learn");
SendClientMessage(playerid, SVETLOPLAVA, "-/ban /slap /goto /a (/ao)oc /name /setskin /ajail /freeze /spec /checkweapons");
SendClientMessage(playerid, LIGHTRED, "|_____________________________________________________________________________|");

}
}
if(listitem == 1) //
{
if (PlayerInfo[playerid][pAdmin] >= 2)
{
   SendClientMessage(playerid, LIGHTRED, "|____________________________________________________________________________|");
SendClientMessage(playerid, SVETLOPLAVA, "-/skydive /noooc /setteam /bigears /respawnthiscar(/rtc)  /setjob /update");
SendClientMessage(playerid, SVETLOPLAVA,"-/gotols /gotolv /gotosf /gotoburg /gotobolnica /gotocross /gotorace  /gotohell");
   SendClientMessage(playerid, LIGHTRED, "|____________________________________________________________________________|");
}
}
if(listitem == 2) //
{
if (PlayerInfo[playerid][pAdmin] >= 3)
{
   SendClientMessage(playerid, LIGHTRED, "|___________________________________________________________________________|");
SendClientMessage(playerid, SVETLOPLAVA, "-/cnnn /fourdive /prison /unprison /aunlock /fuelcars /edit /vehslap");
SendClientMessage(playerid, SVETLOPLAVA, "-/mark /gotomark /gethere /oldcar /gotocar /getcar /setage");
   SendClientMessage(playerid, SVETLOPLAVA, "-/respawnallcars /respawnrentbikes /respawnrentcars");
   SendClientMessage(playerid, LIGHTRED, "|___________________________________________________________________________|");
}
}
if(listitem == 3) //
{
if (PlayerInfo[playerid][pAdmin] >= 4)
{
                   SendClientMessage(playerid, LIGHTRED, "|___________________________________________________________________________|");
   SendClientMessage(playerid, SVETLOPLAVA, "-/destroycars /sethp /setarmor /forceskin /explode /supervehslap /unban ");
   SendClientMessage(playerid, SVETLOPLAVA, "-/fixveh /mole /odjavi /odjaviigraca /odjavisve /unbanip /setchamp /mk");
   SendClientMessage(playerid, SVETLOPLAVA, "-/asellhouse /asellbiz /sellsbiz");
   SendClientMessage(playerid, LIGHTRED, "|___________________________________________________________________________|");
}
}
if(listitem == 4) //
{
if (PlayerInfo[playerid][pAdmin] >= 1337)
{
SendClientMessage(playerid, LIGHTRED, "|___________________________________________________________________________|");
   SendClientMessage(playerid, SVETLOPLAVA, "-/weather /weatherall /makeircadmin /makeadmin /makeleader /bizentrance");
   SendClientMessage(playerid, SVETLOPLAVA, "-/asellcar /setstat /money(sets money) /sbizentrance /startlotto");
   SendClientMessage(playerid, SVETLOPLAVA, "-/givemoney /givegun /crash /changename /houseentrance /housexit /tod");
   SendClientMessage(playerid, LIGHTRED, "|___________________________________________________________________________|");
}
}
if(listitem == 5) //
{
if (PlayerInfo[playerid][pAdmin] >= 1338)
{
                   SendClientMessage(playerid, LIGHTRED, "|__________________________________________________________________________|");
   SendClientMessage(playerid, SVETLOPLAVA, "/apark /racehelp");
   SendClientMessage(playerid, LIGHTRED, "|__________________________________________________________________________|");
}
}
}
}

Evo ti boje ako ih nemas dodaj ih
#define SVETLOPLAVA 0x33CCFFAA
#define LIGHTRED 0xFF6347AA
#define COL_RED            "{F81414}"
#define COL_GREY           "{C3C3C3}"
Poslednja Izmena: Maj 30, 2011, 21:40:48 POSLE PODNE od Outlawz

zasto sve to pod on dialog response? Pa dovljno je ShowPlayerDialog u komandi i to je to :SSS
Uskoro novi stunt server iStunt. DoÄ'ite i zabavite se!




   
   




Dizajniram za $$$
Popis stvari koje radim:

Wallpaper √  Signature ×  Logo √  Dizajn stranice (Ne kodiranje) √  Baner √  Avatar √  Animacija √  Intro √

Citat: boris.pwn poslato Maj 30, 2011, 21:58:44 POSLE PODNE
Trebam neki bolji GarHouse mi se nesvidaj da ga Edit za stanove
jes ti glup? Imas temu trebam nesto - tema pa tamo pitaj ne po drugim temam
Uskoro novi stunt server iStunt. DoÄ'ite i zabavite se!




   
   




Dizajniram za $$$
Popis stvari koje radim:

Wallpaper √  Signature ×  Logo √  Dizajn stranice (Ne kodiranje) √  Baner √  Avatar √  Animacija √  Intro √


Jel vidis da je DIALOG_STYLE_LIST a ne DIALOG_STYLE_MSGBOX


if(!strcmp(cmdtext, "/ahelp", true))
{
    ShowPlayerDialog(playerid, 501, DIALOG_STYLE_MSGBOX, "Admin Komande","ode stavi se koamne koristi \n za novi red", "Ok", "");
    return 1;
}

samosamo tako stavi!
Uskoro novi stunt server iStunt. DoÄ'ite i zabavite se!




   
   




Dizajniram za $$$
Popis stvari koje radim:

Wallpaper √  Signature ×  Logo √  Dizajn stranice (Ne kodiranje) √  Baner √  Avatar √  Animacija √  Intro √