[Include] [INC] t-Jobs
#1

t-Jobs by Toad
<> Script Type <>

- Include

<> Description <>

- With this Include, you can give a player a job, remove it and pay the player.
- At the moment, there are 4 jobs (police officer, doctor, dealer and taxi driver) but you can add more.

<> Installation <>

- Download the "t-Jobs.inc".
- Copy it in your /pawno/include folder.
- Open your gamemode and copy this line under "#include <a_samp>": "#include <t-Jobs>".

<> Commands & Function <>

> JobsModeInit() - must be added under OnGameModeInit(), to start the pay-timer and restore the information.
> SetPlayerJob(playerid,jobid) - gives the player the selected job.
> Ex: SetPlayerJob(playerid,1);
> SetJobPayment(jobid,payment) - sets the job's payment to the new selected one.
> Ex: SetJobPayment(1,10000);
> SetPaymentFrequency(frequencysecs) - stops the actual timer and starts a new with the selected frequency (in seconds).
> Ex: SetPaymentFrequency(7);
> GetPlayerJob(playerid) - gets the player's job.
> Ex: if(GetPlayerJob(playerid) == 1)
> RemovePlayerJob(playerid) - removes the player's job from him, so he has no job anymore.
> Ex: RemovePlayerJob(playerid);

<> Download <>

- English Version

Leave comments, please .
Reply
#2

This looks dddaamn usefull, ima have a bash at usin this, TY
Reply
#3

:O idea from my jobs? :O
Reply
#4

sounds like it
Reply
#5

Quote:
Originally Posted by PeaToN^
:O idea from my jobs? :O
lol?
no i dont know "your jobs"...
do you mean the X_Jobs in your sig?
but there are some similarities like same functions cO
sorry i didnt know that you already released a job inc.......
Reply
#6

Quote:
Originally Posted by Toad
Quote:
Originally Posted by PeaToN^
:O idea from my jobs? :O
lol?
no i dont know "your jobs"...
do you mean the X_Jobs in your sig?
but there are some similarities like same functions cO
sorry i didnt know that you already released a job inc.......
no problem xD i just wanted to know if u didnt stealed my code,
But no u didnt, u use different code than me.
Reply
#7

But.. there is no difference with the jobs? Lol I thought this was really jobs like when you shoot a suspect as cop u get money and when u drive someone u get cash.
Well, nice anyway..
Reply
#8

that wouldnt be an include that would be a filterscript
i think thats what you have to do when you have an include like this
make functions for the jobs like shooting suspects etc
Reply
#9

It would be WAY too cool if u could add some specific cars at a single job
Reply
#10

Quote:
Originally Posted by Toad
that wouldnt be an include that would be a filterscript
i think thats what you have to do when you have an include like this
Reply
#11

Cool i like it can u add more jobs pls like dirty one's like gun dealer /drug dealer and maybe taxi/pilot
Reply
#12

i've placed the include into Pawno/includes
but when i try to compiler it , it say"Cannot read from "t-Jobs"
why ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)