SA-MP Forums Archive
[FilterScript] Hotdogs Job v1.0 - 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] Hotdogs Job v1.0 (/showthread.php?tid=492033)

Pages: 1 2


[SIDE:JOB]Hotdogs v1.0 - WhiteAngels - 02.02.2014

Hello All... :D

Now..
I'll Give you a Filterscript of Hotdog Job

Commands :

Quote:

/telehd for Teleport to Hotdogs Job Place
/hotdogs for Start a Job (You Must In a Vehicle ID : 588)

Note : If You Find Some Bugs , You can PM Me <<<


Re: Hotdogs Job v1.0 - WhiteAngels - 02.02.2014

Quote:
Originally Posted by Alphlax
View Post
Nice job!
Thanks brother


Re: Hotdogs Job v1.0 - FarCry - 02.02.2014

Great, keep it up!


Re: Hotdogs Job v1.0 - Team_PRO - 02.02.2014

Lol nice


Re: Hotdogs Job v1.0 - WhiteAngels - 02.02.2014

Thanks All


Re: Hotdogs Job v1.0 - aznpro12345 - 02.02.2014

Just tested it Very nice script Keep up the great work!


Re: Hotdogs Job v1.0 - WhiteAngels - 02.02.2014

Quote:
Originally Posted by aznpro12345
View Post
Just tested it Very nice script Keep up the great work!
Thanks


Re: Hotdogs Job v1.0 - XStormiest - 02.02.2014

Look at: /hotdogs command , it will appear an aditional message that say that the player is not in a car even if he is
pawn Code:
if (strcmp("/hotdogs", cmdtext, true) == 0)
    {
        if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 588)
        {
            HotDog[playerid] = 1;
            new name[MAX_PLAYER_NAME], string[256];
            GetPlayerName(playerid, name, sizeof(name));

            format(string, sizeof(string), "{0000FF}[RgX:INFO]{FF0000}%s {FFFFFF}is now a Hotdog Delivery.", name );
            SendClientMessageToAll(-1, string);

            SetPlayerCheckpoint(playerid, 804.1773,-1455.8715,13.1253,10);
            SendClientMessage(playerid, -1,"{00FFFF}Job{FFFFFF}: Follow the red markers");
            return 1;
        }
         SendClientMessage(playerid, -1,"{CE0000}You have to be on a Hotdogs car to start the job!");
    }
    return 0;
}
Anyway good job..

You should put an else:
pawn Code:
else SendClientMessage(playerid, -1,"{CE0000}You have to be in a Hotdogs car to start the job!");



Re: Hotdogs Job v1.0 - FreeWorld - 02.02.2014

Nice!


Re: Hotdogs Job v1.0 - Snir_sofer - 03.02.2014

nice job, but you can do this:
PHP Code:
#include <a_samp> // Include
new HotDog[MAX_PLAYERS]; // HotDog Job
new NextHDogs[][] =
{
    {
float:685.0278,float:-1594.2223,float:13.6814,10},
    {
float:481.5592,float:-1531.8152,float:19.3227,10},
    {
float:505.4998,float:-1357.8823,float:15.6998,10},
    {
float:667.5136,float:-1275.0409,float:13.0354,10},
    {
float:778.4696,float:-1149.0485,float:22.8772,10},
    {
float:763.7077,float:-1362.9611,float:13.5233,10}
};
public 
OnPlayerCommandText(playeridcmdtext[])
{
    if(!
strcmp(cmdtext,"/hotdogs",true,strlen(cmdtext)))
    {
        if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 588)
        {
            
HotDog[playerid] = 1;
            new 
name[MAX_PLAYER_NAME], string[256];
            
GetPlayerName(playeridnamesizeof(name));
            
format(stringsizeof(string), "{0000FF}[RgX:INFO]{FF0000}%s {FFFFFF}is now a Hotdog Delivery."name );
            
SendClientMessageToAll(-1string);
            
SetPlayerPos(playerid763.7077,-1362.9611,13.5233);
            
SetPlayerCheckpoint(playerid804.1773,-1455.8715,13.1253,10);
            
SendClientMessage(playerid, -1,"{00FFFF}Job{FFFFFF}: Follow the red markers");
            return 
1;
        }
        
SendClientMessage(playerid, -1,"{CE0000}You have to be on a Hotdogs car to start the job!");
    }
    return 
0;
}
public 
OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
     if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 588)\
         
SendClientMessage(playerid, -1"{FFFFFF}Job: You can start the Hotdogs job by using {00FF00}/hotdogs");
     return 
0;
}
public 
OnPlayerEnterCheckpoint(playerid)
{
    if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 588)
    {
        for(new 
i,j=sizeof(NextHDogs); i<ji++)
        {
            if(
HotDog[playerid] == && HotDog[playerid] != 7)
            {
                
HotDog[playerid]++;
                
SetPlayerCheckpoint(playerid,NextHDogs[i][0],NextHDogs[i][1],NextHDogs[i][2],NextHDogs[i][3]);
                } else if(
HotDog[playerid] == 7) {
                    
HotDog[playerid] = 0;
                    
DisablePlayerCheckpoint(playerid);
                    
SendClientMessage(playerid, -1,"{FF0000}Job{FFFFFF}: You have recieved {FF0000}$250000 {FFFFFF}for delivering the Hotdog");
                    
GivePlayerMoney(playerid,250000);
            }
        }
    }
    return 
1;
}
public 
OnPlayerExitVehicle(playeridvehicleid)
{
    if(
HotDog[playerid] > 0)
    {
        
HotDog[playerid] = 0;
        
SendClientMessage(playerid, -1"{FF0000}Job{FFFFFF}: You have left your job");
        
DisablePlayerCheckpoint(playerid);
    }




Re: Hotdogs Job v1.0 - WhiteAngels - 03.02.2014

Quote:
Originally Posted by XStormiest
View Post
Look at: /hotdogs command , it will appear an aditional message that say that the player is not in a car even if he is
pawn Code:
if (strcmp("/hotdogs", cmdtext, true) == 0)
    {
        if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 588)
        {
            HotDog[playerid] = 1;
            new name[MAX_PLAYER_NAME], string[256];
            GetPlayerName(playerid, name, sizeof(name));

            format(string, sizeof(string), "{0000FF}[RgX:INFO]{FF0000}%s {FFFFFF}is now a Hotdog Delivery.", name );
            SendClientMessageToAll(-1, string);

            SetPlayerCheckpoint(playerid, 804.1773,-1455.8715,13.1253,10);
            SendClientMessage(playerid, -1,"{00FFFF}Job{FFFFFF}: Follow the red markers");
            return 1;
        }
         SendClientMessage(playerid, -1,"{CE0000}You have to be on a Hotdogs car to start the job!");
    }
    return 0;
}
Anyway good job..

You should put an else:
pawn Code:
else SendClientMessage(playerid, -1,"{CE0000}You have to be in a Hotdogs car to start the job!");
Thanks for Reporting


Re: Hotdogs Job v1.0 - Krisna - 03.02.2014

niceeeeee


Re: Hotdogs Job v1.0 - WhiteAngels - 05.02.2014

Quote:
Originally Posted by Krisna
View Post
niceeeeee
Thanks Kris
I\'m Waiting your "Cendol" , hahaha :v


Re: Hotdogs Job v1.0 - VenomMancer - 07.03.2014

good jobs


Re: Hotdogs Job v1.0 - AroseKhanNiazi - 25.05.2014

Well You are using Zcmd and OnplayerText so this bugs you should add hotdog at the /telehd


Re: Hotdogs Job v1.0 - iRaiDeN - 25.05.2014

Pastebin?


Re: Hotdogs Job v1.0 - Clergy - 06.06.2014

Nice keep it up il try it soon....


Re: Hotdogs Job v1.0 - GeekSiMo - 06.06.2014

Nice and good for RPs


Re: Hotdogs Job v1.0 - WhiteAngels - 06.06.2014

Thanks


Re: Hotdogs Job v1.0 - BlackEvils - 07.06.2014

AFTER I M TELEPORT I NEED WRITE /HOTDOGS FOR START BUT THE COMANDS DON\'T MAKE ANYHING