Jump to content

[FilterScript] Job Vanzator De Inghetata


Uzzi25

Recommended Posts

Daca stiti scripting il puteti modifica si aduce la o versiune mai buna 

pEbywEI.png

Salut SA-MP.RO faceam curat in hard cand am gasit un notpad cu acest job !
Nu detin credite pentru el dar am zis sa il pun aici :D

CgI4Q0p.png

In primul rand adaugam in Gamemode:

new VanzatorJob[256];

Acum creem Textul si Pickup pentru a sti de unde luom jobul:

 

CreatePickup(1239, 1, 2093.2429,-2077.0288,13.5469);
Create3DTextLabel("Vanzator de Înghetata\n\n/Inghetata", 0xFFFFFFFF, 2093.2429,-2077.0288,13.5469, 40.0, 0, 0);

Adaugam si Masinile pentru Job:

 

AddStaticVehicle(423,2097.6541,-2071.8462,13.5749,180.0187,0,7); //


    AddStaticVehicle(423,2102.8674,-2073.2124,13.5750,179.1448,0,7); //
    AddStaticVehicle(423,2108.8743,-2071.8142,13.5802,183.3722,0,7); //
    AddStaticVehicle(423,2114.5137,-2070.5913,13.5790,187.0777,0,7); //
    AddStaticVehicle(423,2121.2070,-2070.4863,13.5721,185.2174,0,7); //

Comanda pentru angajare :

 

 CMD:inghetata(playerid, params[])


{
    if(Job[playerid] == 1) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "{FFCC33}Ai deja un job. Scrie: {FF0000}/Demisie {FFCC33}pentru a-ti da demisia!");
    if(IsPlayerInRangeOfPoint(playerid, 5.0, 2093.2429,-2077.0288,13.5469))
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Te-ai angajat ca si Vanzator de înghetata!");
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Pentru a incepe munca, va rugam scrieti: {FF0000}/StartV {FFCC33}!");
        Job[playerid] = 1;
    }
    else
    {
        SendClientMessage(playerid, -1, "{FFCC33}Nu esti destul de aproape de job!");
    }
    return 1;
}

Comanda pentru a incepe munca(iti seteaza automat un punct rosu pe harta le puteti modifica dupa bunul plac):

 

 

 CMD:startv(playerid, params[])


{
    VanzatorJob[playerid] = 1;
    SetPlayerCheckpoint(playerid, -128.7080,-371.8720,1.4297,5.0);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai inceput munca ca fiind un Vanzator de înghetata!");
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Urmareste checkpoint-urile rosii de pe harta pentru a fi platit!");
    return 1;
}
    if(VanzatorJob[playerid] == 1)
    {
        DisablePlayerCheckpoint(playerid);
        VanzatorJob[playerid] = 2;
        GivePlayerMoney(playerid, 9912);
        SetPlayerCheckpoint(playerid, 1966.4468,-2014.7025,12.9459, 5.0);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai primit suma de bani, pentru aceasta livrare: {FF0000}9912 $!");
        return 1;
    }
    if(VanzatorJob[playerid] == 2)
    {
        DisablePlayerCheckpoint(playerid);
        VanzatorJob[playerid] = 3;
        GivePlayerMoney(playerid, 8841);
        SetPlayerCheckpoint(playerid, 1996.1888,-1757.2458,12.9417, 5.0);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai primit suma de bani, pentru aceasta livrare: {FF0000}8841 $!");
        return 1;
    }
    if(VanzatorJob[playerid] == 3)
    {
        DisablePlayerCheckpoint(playerid);
        VanzatorJob[playerid] = 4;
        GivePlayerMoney(playerid, 8921);
        SetPlayerCheckpoint(playerid, 2210.5994,-1750.5896,13.0132, 5.0);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai primit suma de bani, pentru aceasta livrare: {FF0000}8921 $!");
        return 1;
    }
    if(VanzatorJob[playerid] == 4)
    {
        DisablePlayerCheckpoint(playerid);
        VanzatorJob[playerid] = 5;
        GivePlayerMoney(playerid, 12312);
        SetPlayerCheckpoint(playerid, 2113.4717,-2102.0234,13.1208, 5.0);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai primit suma de bani, pentru aceasta livrare: {FF0000}12312 $!");
        return 1;
    }
    if(VanzatorJob[playerid] == 5)
    {
        DisablePlayerCheckpoint(playerid);
        VanzatorJob[playerid] = 0;
        GivePlayerMoney(playerid, 12321);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ti-ai terminat tura. Poti face ore suplimentare, daca doresti!");
        return 1;
    }

Edited by Uzzi25

2c4AJX1.png

Link to comment
Share on other sites

Niste poze, un video mai bine?

Pare interesant dar fara o poza/video altii nici nu se uita sau citesc(fac parte din ei)

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

Acum 4 ore, Mister a spus:

Niste poze, un video mai bine?

Pare interesant dar fara o poza/video altii nici nu se uita sau citesc(fac parte din ei)

Credeam ca se subintelege e ceva simplu iei jobu urci in masina dai / startv  si urmezi  Checkpointul .

L-am pus mai mult ca primeam mesaje despre jobul creat de Edu si l-am gasit pe asta prin pc 

2c4AJX1.png

Link to comment
Share on other sites

  • 5 months later...

U

On 7/21/2016 at 8:18 PM, Uzzi25 said:

Credeam ca se subintelege e ceva simplu iei jobu urci in masina dai / startv  si urmezi  Checkpointul .

L-am pus mai mult ca primeam mesaje despre jobul creat de Edu si l-am gasit pe asta prin pc 

Unde este localizat?

Link to comment
Share on other sites

  • 5 weeks later...
  • 5 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.