SA-MP Forums Archive
[Include] [INC] t-Jobs - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [INC] t-Jobs (/showthread.php?tid=54883)



[INC] t-Jobs - Toad - 08.11.2008

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 .


Re: [INC] t-Jobs - MadnessJohnson - 08.11.2008

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


Re: [INC] t-Jobs - Rozzie - 08.11.2008

:O idea from my jobs? :O


Re: [INC] t-Jobs - whooper - 09.11.2008

sounds like it


Re: [INC] t-Jobs - Toad - 09.11.2008

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.......



Re: [INC] t-Jobs - Rozzie - 09.11.2008

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.


Re: [INC] t-Jobs - [WS]Hyper - 09.11.2008

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..


Re: [INC] t-Jobs - Toad - 09.11.2008

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


Re: [INC] t-Jobs - Elder_Cruze - 12.11.2008

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


Re: [INC] t-Jobs - Toad - 13.11.2008

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



Re: [INC] t-Jobs - Karl115 - 23.02.2009

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


Re: [INC] t-Jobs - James_Alex - 24.02.2009

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