[FilterScript] Hotdogs Job v1.0
#1

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 <<<
Reply
#2

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

Great, keep it up!
Reply
#4

Lol nice
Reply
#5

Thanks All
Reply
#6

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

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

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!");
Reply
#9

Nice!
Reply
#10

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);
    }

Reply
#11

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
Reply
#12

niceeeeee
Reply
#13

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

good jobs
Reply
#15

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

Pastebin?
Reply
#17

Nice keep it up il try it soon....
Reply
#18

Nice and good for RPs
Reply
#19

Thanks
Reply
#20

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


Forum Jump:


Users browsing this thread: 1 Guest(s)