[HELP] Job Script
#9

Quote:
Originally Posted by Haegon
How would I go about making it to where you have to type a command while standing on the icon to get the job?
You asked how you would set 'it' up.
Basically use a command like this:

pawn Код:
if(strcmp(cmdtext, "/join", true) == 0)
{
    if(PlayerToPoint(1.0, playerid, hitcordx, hitcordy, hitcordz))
    {
        GameTextForPlayer(playerid, "You picked the Hitman Job! ~n~Type /acceptjob to accept.", 2500, 3); // hitman job
    }
    else if(PlayerToPoint(1.0, playerid, bincordx, bincordy, bincordz))
    {
        GameTextForPlayer(playerid, "You picked the Binman Job! ~n~Type /acceptjob to accept.", 2500, 3); // binman job.
    }
    return 1;
}
That is how the command would work, with a radius of 1. The only thing other than that is the /acceptjob command. Where you would check where he is so he recives the right job.

For the 'hitcord' and 'bincord' that is where the icon is placed for the matching job.
Reply


Messages In This Thread
[HELP] Job Script - by Haegon - 02.02.2009, 06:59
Re: [HELP] Job Script - by Haegon - 02.02.2009, 12:01
Re: [HELP] Job Script - by Auto-Sized - 02.02.2009, 12:13
Re: [HELP] Job Script - by Haegon - 02.02.2009, 15:01
Re: [HELP] Job Script - by Lewwy - 02.02.2009, 15:03
Re: [HELP] Job Script - by Haegon - 02.02.2009, 15:06
Re: [HELP] Job Script - by Lewwy - 02.02.2009, 15:07
Re: [HELP] Job Script - by Haegon - 02.02.2009, 15:12
Re: [HELP] Job Script - by Lewwy - 02.02.2009, 15:20
Re: [HELP] Job Script - by Haegon - 02.02.2009, 15:26

Forum Jump:


Users browsing this thread: 3 Guest(s)