Doriți să reacționați la acest mesaj? Creați un cont în câteva clickuri sau conectați-vă pentru a continua.



 
AcasaUltimele imaginiCăutareÎnregistrareConectare

Distribuiţi|

[FS] Petrol Trucker Job

Vezi subiectul anterior Vezi subiectul urmator In jos
AutorMesaj
I'm sorry
Fondator
I'm sorry


Rank: Fondator
Sex Sex : masculin
Mesaje Mesaje : 157
€uro €uro : 86228
Varsta Varsta : 30
Joburi/Distractii Joburi/Distractii : Street Workout
[FS] Petrol Trucker Job Empty
MesajSubiect: [FS] Petrol Trucker Job [FS] Petrol Trucker Job Icon_minitimeMier Apr 10, 2013 10:43 am

Pentru cei care nu aveti joburi cu care sa faceti banii:
Faceti un Fs cu :

Cod:
#include <a_samp>
#define COLOR_DARKGOLD 0x808000AA
#define COLOR_RED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA
new PetrolJob[256];
public OnFilterScriptInit()
{
    AddStaticVehicle(403,2057.3081,-1939.9397,13.9432,270.4501,0,0); // Petrol Trucker (Spawn Front)
    AddStaticVehicle(584,2045.2939,-1939.9041,13.0633,268.2366,0,0); // Petrol Trucker (Spawn Back)
    AddStaticVehicle(403,2032.4635,-1939.7537,13.9389,271.0817,0,0); // Petrol Trucker (Spawn Front)
    AddStaticVehicle(584,2020.9797,-1940.1196,13.9476,270.5276,0,0); // Petrol Trucker (Spawn Back)
}
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/petrol", cmdtext, true, 10) == 0)
    {
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 403)
            {
                    if(!IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))){ SendClientMessage(playerid,COLOR_RED,"* You don't have a trailer attached to the vehicle!"); return 1; }
                    if(PetrolJob[playerid] != 1 && PetrolJob[playerid] != 2 && PetrolJob[playerid] != 3){ PetrolJob[playerid] = 1; }
                 
                    new name[MAX_PLAYER_NAME], string[48];
                    GetPlayerName(playerid, name, sizeof(name));
                    format(string, sizeof(string), "* %s is now a Petrol Trucker.", name );
                    SendClientMessageToAll(COLOR_YELLOW, string);
                 
                    if(PetrolJob[playerid] == 1){
                            PetrolJob[playerid] = 2;
                            SetPlayerCheckpoint(playerid,1944.7424,-1771.1267,13.1157,10);
                            return 1;
                    }
                    if(PetrolJob[playerid] == 2){
                            PetrolJob[playerid] = 3;
                            SetPlayerCheckpoint(playerid,1003.4263,-941.8485,41.8079,10);
                            return 1;
                    }
                    if(PetrolJob[playerid] == 3){
                            PetrolJob[playerid] = 1;
                            SetPlayerCheckpoint(playerid,-97.8173,-1166.7585,2.2650,10);
                            return 1;
                    }
                    return 1;
            }
            SendClientMessage(playerid, COLOR_RED,"You have to be in a courier truck to start the job");
    }
    return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
        if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 403)
        {
                SendClientMessage(playerid, COLOR_RED, "* You can start the Petrol Trucking by typing /petrol");
        }
        return 0;
}
public OnPlayerEnterCheckpoint(playerid)
{
        if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 403)
        {
            if(!IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))){ SendClientMessage(playerid,COLOR_RED,"* You don't have a trailer attached to the vehicle!"); DisablePlayerCheckpoint(playerid); return 1; }
            GivePlayerMoney(playerid,500);
            SendClientMessage(playerid,COLOR_YELLOW,"* You have earned $500!");
            DisablePlayerCheckpoint(playerid);
        }
        return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
    if(PetrolJob[playerid] > 0)
    {
            SendClientMessage(playerid, COLOR_RED, "* You have left your job, you won't be payed.");
            DisablePlayerCheckpoint(playerid);
    }
}
Sus In jos
eXoKiLLeR
Fondator
eXoKiLLeR


Rank: Fondator
Sex Sex : masculin
Mesaje Mesaje : 192
€uro €uro : 86609
Varsta Varsta : 25
Joburi/Distractii Joburi/Distractii : Couter Strike
[FS] Petrol Trucker Job Empty
MesajSubiect: Re: [FS] Petrol Trucker Job [FS] Petrol Trucker Job Icon_minitimeJoi Apr 11, 2013 8:56 am

BV
Sus In jos
https://amorezati.forummo.com
+100/500
Administrator
+100/500


Rank: Administrator
Sex Sex : masculin
Mesaje Mesaje : 108
€uro €uro : 85403
Varsta Varsta : 27
Joburi/Distractii Joburi/Distractii : Cs 1.6
[FS] Petrol Trucker Job Empty
MesajSubiect: Re: [FS] Petrol Trucker Job [FS] Petrol Trucker Job Icon_minitimeJoi Apr 11, 2013 9:00 am

Unora le pride bine acete lucruri BV BV
Sus In jos
https://amorezati.forummo.com/
Continut sponsorizat


Rank:
[FS] Petrol Trucker Job Empty
MesajSubiect: Re: [FS] Petrol Trucker Job [FS] Petrol Trucker Job Icon_minitime

Sus In jos

[FS] Petrol Trucker Job

Vezi subiectul anterior Vezi subiectul urmator Sus
Pagina 1 din 1

Permisiunile acestui forum:Nu puteti raspunde la subiectele acestui forum
 :: Gaming :: SA-MP :: FilterScripts-