SA-MP Forums Archive
[FilterScript] Pizza Job - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Pizza Job (/showthread.php?tid=251182)



Pizza Job [LS] - Mister. M - 26.04.2011

Hello Guys.

This is also one of my jobs i created in one day.
Here's the pizzaboy job, its for roleplay ("Recommended")

Example:
pawn Code:
#include <a_samp>

#define COLOR_DARKGOLD 0x808000AA
#define COLOR_RED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA

new PizzaJob[256];

public OnFilterScriptInit()
{
   
    AddStaticVehicle(448,2122.1677,-1784.2250,12.9837,180.4585,0,0); // Pizza 1
    AddStaticVehicle(448,2121.9895,-1784.7623,12.9867,181.5936,0,0); // Pizza 1
    AddStaticVehicle(448,2118.8469,-1784.5692,12.9880,181.5090,0,0); // Pizza 2
    AddStaticVehicle(448,2115.7837,-1784.6464,12.9860,181.6605,0,0); // Pizza 3
   
}
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/pizza", cmdtext, true, 10) == 0)
    {
        if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 448)
        {
            PizzaJob[playerid] = 1;
            new name[MAX_PLAYER_NAME], string[48];
            GetPlayerName(playerid, name, sizeof(name));
            format(string, sizeof(string), "* %s is now a Pizzaboy.", name );
            SendClientMessageToAll(COLOR_YELLOW, string);
            SetPlayerCheckpoint(playerid,2012.6134,-1729.3796,13.1536,10);
            SendClientMessage(playerid,COLOR_YELLOW,"* Follow the red markers and you'll recieve money!");
            return 1;
        }
        SendClientMessage(playerid, COLOR_RED,"You have to be on a pizza bike to start the job!");
    }
    return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
     if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 448)
     {
         SendClientMessage(playerid, COLOR_RED, "* You can start the pizza courier by using /pizza");
     }
     return 0;
}
public OnPlayerEnterCheckpoint(playerid)
{
     if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 448)
     {
        if(PizzaJob[playerid] == 1){
            PizzaJob[playerid] = 2;
            SetPlayerCheckpoint(playerid,2012.4771,-1640.1229,13.1431,10);
            SendClientMessage(playerid,COLOR_YELLOW,"* Please go to the next mark, and you'll be payed!");
            return 1;
         }
        if(PizzaJob[playerid] == 2){
            PizzaJob[playerid] = 3;
            SetPlayerCheckpoint(playerid,2387.0063,-1667.1498,13.1249,10);
            return 1;
         }
        if(PizzaJob[playerid] == 3){
            PizzaJob[playerid] = 4;
            SetPlayerCheckpoint(playerid,2414.9255,-1649.6678,13.1305,10);
            return 1;
         }
        if(PizzaJob[playerid] == 4){
            PizzaJob[playerid] = 5;
            SetPlayerCheckpoint(playerid,2517.6394,-1678.3141,13.9862,10);
            return 1;
         }
        if(PizzaJob[playerid] == 5){
            PizzaJob[playerid] = 6;
            SetPlayerCheckpoint(playerid,2441.1526,-2017.4093,13.1231,10);
            return 1;
         }
        if(PizzaJob[playerid] == 6){
            PizzaJob[playerid] = 7;
            SetPlayerCheckpoint(playerid,2486.2058,-2017.6384,13.1309,10);
            return 1;
         }
        if(PizzaJob[playerid] == 7){
            PizzaJob[playerid] = 8;
            SetPlayerCheckpoint(playerid,2520.9238,-2016.4714,13.1395,10);
            return 1;
         }
        if(PizzaJob[playerid] == 8){
            PizzaJob[playerid] = 9;
            SetPlayerCheckpoint(playerid,2464.7258,-2000.3944,13.1430,10);
            return 1;
         }
        if(PizzaJob[playerid] == 9){
            PizzaJob[playerid] = 10;
            SetPlayerCheckpoint(playerid,2240.8374,-1886.9504,13.1486,10);
            return 1;
         }
        if(PizzaJob[playerid] == 10){
            PizzaJob[playerid] = 11;
            SetPlayerCheckpoint(playerid,2095.5488,-1815.7517,12.9792,10);
            return 1;
         }
        if(PizzaJob[playerid] == 11){
            PizzaJob[playerid] = 0;
            DisablePlayerCheckpoint(playerid);
            SendClientMessage(playerid,COLOR_YELLOW,"* You have recieved $400 for delivering the pizzas.");
            GivePlayerMoney(playerid,400);
         }
     }
     return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
    if(PizzaJob[playerid] > 0)
    {
        PizzaJob[playerid] = 0;
        SendClientMessage(playerid, COLOR_RED, "* You have left your job, you won't be payed.");
        DisablePlayerCheckpoint(playerid);
    }
}
Download:
http://www.mediafire.com/?5t84c71f4kxhzmd

Picture(s):
/imageshack/img718/5640/samp029ae.png

Credit(s):
* Forum (SA-MP) - For the idea.

Test Server: (Don't know if its allowed to post, but if not, please tell me)
217.117.234.62:7777

Enjoy,
Mister. M (BlackBerry)


Re: Pizza Job - Mister. M - 26.04.2011

I might release a whole server soon.


Re: Pizza Job - GaGlets(R) - 26.04.2011

... These jobs are ugly unuseful.. better make something unique insted of these `race` jobs..


Re: Pizza Job - Mister. M - 26.04.2011

~~ If you give some idea's i'll take a look.


Re: Pizza Job - Ghost_BB - 26.04.2011

Quote:
Originally Posted by Mister. M
View Post
GaGlets, its just for RP server's.

Stop complaining, ty.
More about Stunt/Racing servers. And stop making a new thread to any new "samescript" you make. Just make a thread and post them all in 1.


Re: Pizza Job - Tee - 26.04.2011

GaGlets® this is what he can do for now so let him do it when he learns PAWNO more he can be as good as you but we all start out small then grow big (I did not want to see "start out as noobs" that might offend Mister. M). Mister. M these jobs are cool and useful you have given me an idea. And Cool work. 10/10 Keep on making jobs xD they are great for RP servers.


Re: Pizza Job - TheYoungCapone - 26.04.2011

Quote:
Originally Posted by GaGlets®
View Post
... These jobs are ugly unuseful.. better make something unique insted of these `race` jobs..
dam a little harsh there. But good job.


Re: Pizza Job - Mister. M - 26.04.2011

Thanks, give me some ideas, i'll see what i can do.


Re: Pizza Job - Mister. M - 26.04.2011

Quote:
Originally Posted by GaGlets®
View Post
... These jobs are ugly unuseful.. better make something unique insted of these `race` jobs..
Maybe you should start reading my thread, before posting your sh*t here.
Its a ("RPG") script.

People like you always need to f*ck other people's thread(s)/work.

So im asking it nice for now, please leave the thread.


Re: Pizza Job - NekErM@N - 26.04.2011

after they finish them money to payday?


Re: Pizza Job - Mister. M - 26.04.2011

I don't work with payday,

I mean idea's for a new job.


Re: Pizza Job - NekErM@N - 26.04.2011

Well why not get money if you work for nothing?


Re: Pizza Job - hackzor4 - 27.04.2011

Great job i'm looking for things like this for my upcoming server , roleplay server that is


Re: Pizza Job - Aldi96 - 27.04.2011

Niceeeeee!!!!


Re: Pizza Job - NekErM@N - 27.04.2011

but I still do not understand money on races that do when you receive them?


Re: Pizza Job - Ћilvėnas - 19.11.2011

please,give new link ;(


Re: Pizza Job - Astralis - 20.11.2011

link isn't working for me.