+ Reply to Thread
Results 1 to 3 of 3
  1. [TUTORIAL SAMP] Crearea unui JOB

    #1
    VIP ~TraNda~'s Avatar
    Member since
    Feb 2014
    Location
    WarGods
    Posts
    12,106
    Last username
    LiOn. ~JoK3r ~
    Blog Entries
    4
    Mentioned
    95 Post(s)
    Achievements Days Registered 4 Mentions Received 2 Mentions Received 1 Mentions Given 4 Mentions Given 3 Mentions Given 2 Mentions Given 1 Threads Rating Received 1
    Doneaza
    Sustine Comunitatea WarGods!
    Fii unul de-al nostru! Doneaza
    Doneaza in Cont Bancar
    Click aici pentru a face o Donatie

    [TUTORIAL SAMP] Crearea unui JOB

    Tutorialul este format din 6 pasi!

    Pasul 1.
    Jobul vostru trebuie sa aiba un ID diferit fata de cele existente deja (daca aveti job-uri de la 1 la 13 noul job trebuie sa aiba id 14).
    In showstats oferiti un nume jobului cu id-ul corespunzator .

    Pasul 2.
    Adaugati un numar de definitii pentru masinile ce urmeaza sa le adaugati. Ca de exemplu:
    Code:
    You have to register to be able to see this link. Register HERE! If you are already a member please log in! If you still you are not able to see the link you need to activate your account or an administrator need to activate your account!
    Pasul 3.
    Adaugati in callback-ul public OnGameModeInit() masinile :
    Code:
    You have to register to be able to see this link. Register HERE! If you are already a member please log in! If you still you are not able to see the link you need to activate your account or an administrator need to activate your account!
    Nota: Acel Ex este optional nu stiu cum are fiecare GM-ul structurat .

    Pasul 4.
    Adaugam restrictii pentru cine poate folosi masinile :
    In callback-ul public OnPlayerStateChange(playerid, newstate, oldstate) veti gasi if(newstate == PLAYER_STATE_DRIVER) si aici undeva veti adauga :
    Code:
    You have to register to be able to see this link. Register HERE! If you are already a member please log in! If you still you are not able to see the link you need to activate your account or an administrator need to activate your account!
    In callback-ul public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) veti adauga restrictia pentru noile masinile ale noii factiuni :
    Code:
    You have to register to be able to see this link. Register HERE! If you are already a member please log in! If you still you are not able to see the link you need to activate your account or an administrator need to activate your account!
    Pasul 5.
    Creati pick-up pentru locul de unde se ia job-ul.

    Pasul 6.
    Creati o comanda pentru jobul vostru ... depinde cu ce se ocupa dar daca trebuie sa urmeze checkpoint-uri adaugati primul checkpoint adica :
    Code:
    You have to register to be able to see this link. Register HERE! If you are already a member please log in! If you still you are not able to see the link you need to activate your account or an administrator need to activate your account!
    Pentru Checkpoint-uri daca doriti sa adaugati , cautati in gamemode public OnPlayerEnterCheckpoint(playerid) si va creati aici checkpoint-urile
    Code:
    You have to register to be able to see this link. Register HERE! If you are already a member please log in! If you still you are not able to see the link you need to activate your account or an administrator need to activate your account!



    TAGS
    Tutorial samp , SA:MP , multiplayer, job, crearea unui job, filterscript job, samp gratuit
    -------------

    TraNda - WarGods | R.R.M - AngeL - LiOn. - pichacku - Jok3r - UnicA

    P A C E

    DISCORD: unknown.cfg


  2. [TUTORIAL SAMP] Crearea unui JOB

    #2
    Membru - Silver IV Alex Motanu's Avatar
    Member since
    Jun 2014
    Location
    Iasi
    Posts
    90
    Mentioned
    0 Post(s)
    Achievements Total Posts 1 Days Since Last Visited 2 Days Since Last Visited 1 Days Registered 3 Days Registered 2 Days Registered 1 Threads 1 Confirmed Friends 1
    Doneaza
    Sustine Comunitatea WarGods!
    Fii unul de-al nostru! Doneaza
    Doneaza in Cont Bancar
    Click aici pentru a face o Donatie

    La ce se refera: "SetPlayerCheckpoint(playerid, 1964.082519,-1878.616821,13.060032, 5.0);" ?
    Shoot for the moon. Even if you miss, you'll land among the stars.
    I believe in hustle, I don't f*ck with luck!

  3. [TUTORIAL SAMP] Crearea unui JOB

    #3
    VIP ~TraNda~'s Avatar
    Member since
    Feb 2014
    Location
    WarGods
    Posts
    12,106
    Last username
    LiOn. ~JoK3r ~
    Blog Entries
    4
    Mentioned
    95 Post(s)
    Achievements Days Registered 4 Mentions Received 2 Mentions Received 1 Mentions Given 4 Mentions Given 3 Mentions Given 2 Mentions Given 1 Threads Rating Received 1
    Doneaza
    Sustine Comunitatea WarGods!
    Fii unul de-al nostru! Doneaza
    Doneaza in Cont Bancar
    Click aici pentru a face o Donatie

    Quote Originally Posted by Alex Motanu You have to register to be able to see this link. Register HERE! If you are already a member please log in! If you still you are not able to see the link you need to activate your account or an administrator need to activate your account!
    La ce se refera: "SetPlayerCheckpoint(playerid, 1964.082519,-1878.616821,13.060032, 5.0);" ?
    Sunt coordonatele locului unde apare checkpointul.
    -------------

    TraNda - WarGods | R.R.M - AngeL - LiOn. - pichacku - Jok3r - UnicA

    P A C E

    DISCORD: unknown.cfg


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Partners
Humble Monthly Bundle
Voucher PC-Garage