SA-MP Forums Archive
Dialog_Syle_List , [+CREDITS] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dialog_Syle_List , [+CREDITS] (/showthread.php?tid=336998)



Dialog_Syle_List , [+CREDITS] - Nєχυѕ - 24.04.2012

Sup Guys?
I was just wondering if anyone can convert these teleports below to Dialog style list please? Leave the space for coords under OnDialogResponse. Yes yes , i know most of users/viewers will say "Why don't you make it Yourself?"
because i'm a NewBie and i need some one to do this for me.
Don't worry , I'll give you credits (or +Rep too) in my server , just do it.
pawn Код:
if (strcmp("/stunt", cmdtext, true)==0)
    {

    SendClientMessage(playerid, 0xFFFF00AA, "Stunt -> /chilliad /stunt1 /o.o /farm /LsTower /mstunt /nrgball[1-2] ");
    SendClientMessage(playerid, 0xFFFF00AA, "Stunt -> /sfair /aa /lvair /lsair /Parkm /sc /skroad /ball");
    SendClientMessage(playerid, 0xFFFF00AA, "Stunt -> /BmX[1-3] /jizzy /bs /ws /sg /mhp /hp /Bowl");


    if (strcmp("/jumps", cmdtext, true)==0)
 
    SendClientMessage(playerid, 0x9ACD32AA, "Jump -> /basketcar /pc /loop /Parkm /djump /WayToDeath /gj /qJump /pj");
    SendClientMessage(playerid, 0x9ACD32AA, "Jump -> /loopzor /nrgparkour /jump1 /bj[1-7] /df /tp /lc /drop /mp");
    SendClientMessage(playerid, 0x9ACD32AA, "Jump -> /xtreme /sm /nrgspeeder /BuildJump /grj /glassjump");
    SendClientMessage(playerid, 0x9ACD32AA, "Jump -> /MonsterCrash /FreeWay /UpsideDown /hj /HugeJump");
 
    if (strcmp("/dm", cmdtext, true)==0)
 
    SendClientMessage(playerid, 0x9900FFAA, "DeathMatch -> /ak47 /minigun /minigun2 /minigun3 /csitaly /chinatown ");
    SendClientMessage(playerid, 0x9900FFAA, "DeathMatch -> /ddz /glassm /cs /mdm /hdm /jailm /vulcandm /carsumo ");
    SendClientMessage(playerid, 0x9900FFAA, "DeathMatch -> /funnydm /piratedm");

    if (strcmp("/races", cmdtext, true)==0)
    {
    if(Language[playerid] == ENG)
    {
    SendClientMessage(playerid, 0xB8860BAA, "Races -> /drift /drift2 /CityDrift /bdrift /Race[1-2] /veronadrift /cdrift");
    SendClientMessage(playerid, 0xB8860BAA, "Races -> /drift3 /drift4 /drift5 /ddrift /NrgRace /egiptr /bigdrag /frace");
    SendClientMessage(playerid, 0xB8860BAA, "Races -> /driftpark /racemap /karttrack /Drag[1-2] /karting2");
 
    if (strcmp("/others", cmdtext, true)==0)
   
    SendClientMessage(playerid, 0x33CCFFAA, "Others ->  /aa /chilliad /bs /Parkm /ws /sm /loop /nrgspeeder /BmX[1-3] /farm");
    SendClientMessage(playerid, 0x33CCFFAA, "Others ->  /ls /lv /sf /pi /eiffel /jungle /party1 /sg");
    SendClientMessage(playerid, 0x33CCFFAA, "Others ->  /lsair /c 1 /c 2 /c 3 /c 4 /c 5");
    SendClientMessage(playerid, 0x33CCFFAA, "Others ->  /sfair /grove /parkour1 /driftpark ");
    SendClientMessage(playerid, 0x33CCFFAA, "Others -> /mhp /plaja /jizzy /chalet1 /chalet2 /stadium /deadJump");
Sorry if this section is wrong. I just need some help...ER:P


Re: Dialog_Syle_List , [+CREDITS] - Andrew97 - 24.04.2012

I'm Begginer at Scripting but I think after Ever CMD you Need to put:

Код:
return 1;
Thanks....


Re: Dialog_Syle_List , [+CREDITS] - Nєχυѕ - 24.04.2012

Duh... Buddy did you even read what i asked for? ^^


Re: Dialog_Syle_List , [+CREDITS] - Elysian` - 24.04.2012

Try This.


Re: Dialog_Syle_List , [+CREDITS] - Nєχυѕ - 24.04.2012

Yeah, There are many tuts around but i'm learning the basics and others these days so please?


Re: Dialog_Syle_List , [+CREDITS] - Elysian` - 24.04.2012

You will not learn by copying and pasting, refer to my last post and give it ago. If you get errors post them here, if not, go to the Scripting Request page.


Re: Dialog_Syle_List , [+CREDITS] - sniperwars - 24.04.2012

pawn Код:
if(strcmp(cmdtext, "/stunt", true, 10) == 0)
{
    new sz_msg [ 900 ];
    strcat( sz_msg, "Stunt -> /chilliad /stunt1 /o.o /farm /lstower /mstunt /nrgball[1-2]\r\n");
    strcat( sz_msg, "Stunt -> /sfair /aa /lvair /lsair /parkm /sc /skroad /ball\r\n");
    strcat( sz_msg, "Stunt -> /bmx[1-3] /jizzy /bs /ws /sg /mhp /hp /Bowl\r\n");
    ShowPlayerDialog(playerid, 1337, DIALOG_STYLE_MSGBOX, "Stunts", sz_msg, "Close", "");
    return 1;
}


if(strcmp(cmdtext, "/jumps", true, 10) == 0)
{
    new sz_msg [ 900 ];
    strcat( sz_msg, "Jump -> /basketcar /pc /loop /parkm /djump /waytodeath /gj /qjump /pj\r\n");
    strcat( sz_msg, "Jump -> /loopzor /nrgparkour /jump1 /bj[1-7] /df /tp /lc /drop /mp\r\n");
    strcat( sz_msg, "Jump -> /xtreme /sm /nrgspeeder /BuildJump /grj /glassjump\r\n");
    strcat( sz_msg, "Jump -> /monstercrash /freeway /upsidedown /hj /hugejump\r\n");
    ShowPlayerDialog(playerid, 1337, DIALOG_STYLE_MSGBOX, "Jumps", sz_msg, "Close", "");
    return 1;
}
 
if(strcmp(cmdtext, "/dm", true, 10) == 0)
{  
    new sz_msg [ 900 ];
    strcat( sz_msg, "DeathMatch -> /ak47 /minigun /minigun2 /minigun3 /csitaly /chinatown\r\n");
    strcat( sz_msg, "DeathMatch -> /ddz /glassm /cs /mdm /hdm /jailm /vulcandm /carsumo\r\n");
    strcat( sz_msg, "DeathMatch -> /funnydm /piratedm\r\n");
    ShowPlayerDialog(playerid, 1337, DIALOG_STYLE_MSGBOX, "Death Match", sz_msg, "Close", "");
    return 1;
}

if(strcmp(cmdtext, "/races", true, 10) == 0)
{
    new sz_msg [ 900 ];
    strcat( sz_msg, "Races -> /drift /drift2 /CityDrift /bdrift /Race[1-2] /veronadrift /cdrift\r\n");
    strcat( sz_msg, "Races -> /drift3 /drift4 /drift5 /ddrift /NrgRace /egiptr /bigdrag /frace\r\n");
    strcat( sz_msg, "Races -> /driftpark /racemap /karttrack /Drag[1-2] /karting2\r\n");
    ShowPlayerDialog(playerid, 1337, DIALOG_STYLE_MSGBOX, "Races", sz_msg, "Close", "");
    return 1;
}

if(strcmp(cmdtext, "/others", true, 10) == 0)
{
    new sz_msg [ 900 ];
    strcat( sz_msg, "Others ->  /aa /chilliad /bs /Parkm /ws /sm /loop /nrgspeeder /bmx[1-3] /farm\r\n");
    strcat( sz_msg, "Others ->  /ls /lv /sf /pi /eiffel /jungle /party1 /sg\r\n");
    strcat( sz_msg, "Others ->  /lsair /c 1 /c 2 /c 3 /c 4 /c 5\r\n");
    strcat( sz_msg, "Others ->  /sfair /grove /parkour1 /driftpark\r\n");
    strcat( sz_msg, "Others -> /mhp /plaja /jizzy /chalet1 /chalet2 /stadium /deadjump\r\n");
    ShowPlayerDialog(playerid, 1337, DIALOG_STYLE_MSGBOX, "Others", sz_msg, "Close", "");
    return 1;
}
Rep me if it works.


Re: Dialog_Syle_List , [+CREDITS] - Elysian` - 24.04.2012

Quote:
Originally Posted by sniperwars
Посмотреть сообщение
pawn Код:
if(strcmp(cmdtext, "/stunt", true, 10) == 0)
{
    new sz_msg [ 900 ];
    strcat( sz_msg, "Stunt -> /chilliad /stunt1 /o.o /farm /lstower /mstunt /nrgball[1-2]\r\n");
    strcat( sz_msg, "Stunt -> /sfair /aa /lvair /lsair /parkm /sc /skroad /ball\r\n");
    strcat( sz_msg, "Stunt -> /bmx[1-3] /jizzy /bs /ws /sg /mhp /hp /Bowl\r\n");
    ShowPlayerDialog(playerid, 1337, DIALOG_STYLE_MSGBOX, "Stunts", sz_msg, "Close", "");
    return 1;
}


if(strcmp(cmdtext, "/jumps", true, 10) == 0)
{
    new sz_msg [ 900 ];
    strcat( sz_msg, "Jump -> /basketcar /pc /loop /parkm /djump /waytodeath /gj /qjump /pj\r\n");
    strcat( sz_msg, "Jump -> /loopzor /nrgparkour /jump1 /bj[1-7] /df /tp /lc /drop /mp\r\n");
    strcat( sz_msg, "Jump -> /xtreme /sm /nrgspeeder /BuildJump /grj /glassjump\r\n");
    strcat( sz_msg, "Jump -> /monstercrash /freeway /upsidedown /hj /hugejump\r\n");
    ShowPlayerDialog(playerid, 1337, DIALOG_STYLE_MSGBOX, "Jumps", sz_msg, "Close", "");
    return 1;
}
 
if(strcmp(cmdtext, "/dm", true, 10) == 0)
{  
    new sz_msg [ 900 ];
    strcat( sz_msg, "DeathMatch -> /ak47 /minigun /minigun2 /minigun3 /csitaly /chinatown\r\n");
    strcat( sz_msg, "DeathMatch -> /ddz /glassm /cs /mdm /hdm /jailm /vulcandm /carsumo\r\n");
    strcat( sz_msg, "DeathMatch -> /funnydm /piratedm\r\n");
    ShowPlayerDialog(playerid, 1337, DIALOG_STYLE_MSGBOX, "Death Match", sz_msg, "Close", "");
    return 1;
}

if(strcmp(cmdtext, "/races", true, 10) == 0)
{
    new sz_msg [ 900 ];
    strcat( sz_msg, "Races -> /drift /drift2 /CityDrift /bdrift /Race[1-2] /veronadrift /cdrift\r\n");
    strcat( sz_msg, "Races -> /drift3 /drift4 /drift5 /ddrift /NrgRace /egiptr /bigdrag /frace\r\n");
    strcat( sz_msg, "Races -> /driftpark /racemap /karttrack /Drag[1-2] /karting2\r\n");
    ShowPlayerDialog(playerid, 1337, DIALOG_STYLE_MSGBOX, "Races", sz_msg, "Close", "");
    return 1;
}

if(strcmp(cmdtext, "/others", true, 10) == 0)
{
    new sz_msg [ 900 ];
    strcat( sz_msg, "Others ->  /aa /chilliad /bs /Parkm /ws /sm /loop /nrgspeeder /bmx[1-3] /farm\r\n");
    strcat( sz_msg, "Others ->  /ls /lv /sf /pi /eiffel /jungle /party1 /sg\r\n");
    strcat( sz_msg, "Others ->  /lsair /c 1 /c 2 /c 3 /c 4 /c 5\r\n");
    strcat( sz_msg, "Others ->  /sfair /grove /parkour1 /driftpark\r\n");
    strcat( sz_msg, "Others -> /mhp /plaja /jizzy /chalet1 /chalet2 /stadium /deadjump\r\n");
    ShowPlayerDialog(playerid, 1337, DIALOG_STYLE_MSGBOX, "Others", sz_msg, "Close", "");
    return 1;
}
Rep me if it works.
There is no need to beg for rep.


Re: Dialog_Syle_List , [+CREDITS] - sniperwars - 24.04.2012

Quote:
Originally Posted by Windows32
Посмотреть сообщение
There is no need to beg for rep.
Says the one that copied ******'s signature..


Re: Dialog_Syle_List , [+CREDITS] - Elysian` - 24.04.2012

Quote:
Originally Posted by sniperwars
Посмотреть сообщение
Says the one that copied ******'s signature..
Not really, this is something I do.

But, everyone is entitled to their own opinion.