SA-MP Forums Archive
Help in RP Server - 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: Help in RP Server (/showthread.php?tid=332115)



Help in RP Server still not solved Rep++ - Harish - 07.04.2012

Hided__And Solved


Re: Help in RP Server - Rob_Maate - 07.04.2012

wow so original bro


Re: Help in RP Server - Jack.7331 - 07.04.2012

W-wait...you want us to make this for you?
No.


Re: Help in RP Server - Harish - 07.04.2012

Can you give any ideas to improve the job levels

i need just the text of jobs like i posted above


Re: Help in RP Server - Jack.7331 - 07.04.2012

Text of jobs? Wha--?


Re: Help in RP Server - Rob_Maate - 07.04.2012

ok

why not give up? that's so much more productive.


Re: Help in RP Server - Jack.7331 - 07.04.2012

Wait.
I can make commands, it depends what your enums are (What you use for player variables, such as Player[playerid]...), and whether you use sscanf, foreach, mysql or whatever.


Re: Help in RP Server - Harish - 07.04.2012

Sorry for My bad engilsh..Text of jobs means List of JOBs as like i posted pizza boy and so on..

all i need is jobs with description and suitable levels..so i can make the script bigger


Re: Help in RP Server - Jack.7331 - 07.04.2012

That's easy.
Gimme 5 mins.


Re: Help in RP Server - Jack.7331 - 07.04.2012

Done!
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1)
    {
        if(response == 1)
        {
            switch(listitems)
            {
                case 0:
                {
                SendClientMessage(playerid, COLOR_GREY, "---------------------------------------");
                SendClientMessage(playerid, COLOR_WHITE, "Pizza Boy: JobHelp");
                SendClientMessage(playerid, COLOR_WHITE, "Salary: $4000, Ins: $25(Per Delivery)");
                SendClientMessage(playerid, COLOR_WHITE, "Commands: /dutyon, /dutyoff [2 hours on duty at a time!]");
                SendClientMessage(playerid, COLOR_GREY, "---------------------------------------");
                }
                case 1:
                {
                SendClientMessage(playerid, COLOR_GREY, "---------------------------------------");
                SendClientMessage(playerid, COLOR_WHITE, "Paper Boy: JobHelp");
                SendClientMessage(playerid, COLOR_WHITE, "Salary: $4000, Ins: $20(Per Delivery)");
                SendClientMessage(playerid, COLOR_GREY, "---------------------------------------");
                }
                case 2:
                {
                SendClientMessage(playerid, COLOR_GREY, "---------------------------------------");
                SendClientMessage(playerid, COLOR_WHITE, "Fisherman: JobHelp");
                SendClientMessage(playerid, COLOR_WHITE, "Salary: $4000, Ins: $25");
                SendClientMessage(playerid, COLOR_WHITE, "Commands: /fish");
                SendClientMessage(playerid, COLOR_GREY, "---------------------------------------");
                }
                case 3:
                {
                SendClientMessage(playerid, COLOR_GREY, "---------------------------------------");
                SendClientMessage(playerid, COLOR_WHITE, "Drug Dealer: JobHelp");
                SendClientMessage(playerid, COLOR_WHITE, "Salary: $50 per drug.");
                SendClientMessage(playerid, COLOR_WHITE, "Commands: /buydrug, /selldrug");
                SendClientMessage(playerid, COLOR_GREY, "---------------------------------------");
                }
                case 4:
                {
                SendClientMessage(playerid, COLOR_GREY, "---------------------------------------");
                SendClientMessage(playerid, COLOR_WHITE, "Mechanic: JobHelp");
                SendClientMessage(playerid, COLOR_WHITE, "Salary: $4000, Ins: $30");
                SendClientMessage(playerid, COLOR_WHITE, "Commands: /noscar, /repaircar, /hydcar");
                SendClientMessage(playerid, COLOR_GREY, "---------------------------------------");
                }
            }
        }
    }

    return 1;
}
Under OnPlayerCommandText:
pawn Код:
if (strcmp("/jobhelp", cmdtext, true, 10) == 0)
    {
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Choose a job you need help with!", "Pizza Boy\nPaper Boy\nFisherman\nDrug Dealer\nMechanic\nGarbage Man");
        return 1;
    }
I hope this is what you meant :c