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:
Pasul 3.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!
Adaugati in callback-ul public OnGameModeInit() masinile :
Nota: Acel Ex este optional nu stiu cum are fiecare GM-ul structurat .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 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 :
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.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!
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 :
Pentru Checkpoint-uri daca doriti sa adaugati , cautati in gamemode public OnPlayerEnterCheckpoint(playerid) si va creati aici checkpoint-urileCode: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!
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