08.11.2008, 16:38
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
![](http://www.fallfromthesky.com/resources/Download+button.jpg)
Leave comments, please
![Smiley](images/smilies/smile.png)