[FilterScript] Hotdogs Job v1.0
#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


Messages In This Thread
[SIDE:JOB]Hotdogs v1.0 - by WhiteAngels - 02.02.2014, 05:39
Re: Hotdogs Job v1.0 - by WhiteAngels - 02.02.2014, 05:45
Re: Hotdogs Job v1.0 - by FarCry - 02.02.2014, 05:55
Re: Hotdogs Job v1.0 - by Team_PRO - 02.02.2014, 06:38
Re: Hotdogs Job v1.0 - by WhiteAngels - 02.02.2014, 07:01
Re: Hotdogs Job v1.0 - by aznpro12345 - 02.02.2014, 07:05
Re: Hotdogs Job v1.0 - by WhiteAngels - 02.02.2014, 07:20
Re: Hotdogs Job v1.0 - by XStormiest - 02.02.2014, 12:21
Re: Hotdogs Job v1.0 - by FreeWorld - 02.02.2014, 18:22
Re: Hotdogs Job v1.0 - by Snir_sofer - 03.02.2014, 00:30
Re: Hotdogs Job v1.0 - by WhiteAngels - 03.02.2014, 11:08
Re: Hotdogs Job v1.0 - by Krisna - 03.02.2014, 12:34
Re: Hotdogs Job v1.0 - by WhiteAngels - 05.02.2014, 09:42
Re: Hotdogs Job v1.0 - by VenomMancer - 07.03.2014, 05:01
Re: Hotdogs Job v1.0 - by AroseKhanNiazi - 25.05.2014, 15:58
Re: Hotdogs Job v1.0 - by iRaiDeN - 25.05.2014, 16:02
Re: Hotdogs Job v1.0 - by Clergy - 06.06.2014, 04:48
Re: Hotdogs Job v1.0 - by GeekSiMo - 06.06.2014, 05:33
Re: Hotdogs Job v1.0 - by WhiteAngels - 06.06.2014, 05:57
Re: Hotdogs Job v1.0 - by BlackEvils - 07.06.2014, 06:09
Re: Hotdogs Job v1.0 - by iRaiDeN - 07.06.2014, 07:50
Re: Hotdogs Job v1.0 - by kaloul - 04.08.2014, 13:33

Forum Jump:


Users browsing this thread: 3 Guest(s)