[Include] [INC] xJobs V.1.9 c, 12 Jobs,Good For RolePlay And TDM(Redownload new version)
#1

X_Jobs Include By PeaToN^ And [K4L]Leopard.

This include allows you to add players in 12 different jobs!
The jobs are Police, Medic, army, swat, groove, ballas, drug dealer, president, Driver instructor, Hacker, trucker and Carjacker!
Commands
  • Setjob(playerid, jobid)
This Sets the special Playerid to the job.
Jobs IDs:
•1 = Police
•2 = Medic
•3 = Army
•4 = SWAT
•5 = Groove
•6 = Ballas
•7 = DrugDealer
•8 = President
•9 = Drive Instructor
•10 = Hacker
•11 = Trucker
•12 = Car Jacker
Script Example:SetJob(10, 55); This will add playerid 55 to job hacker
Note!!! I edited this from "SetJob(jobid, playerid) to SetJob(playerid, jobid)" !!!!
  • Removejob(playerid)
Removes specific player from job.
Script Example: RemoveJob(11); Its remove playerids 11 Jobs
  • PaymentTime(time);
You set special time for payment, IMPORTANT, You need to place this under OnGameModInit!
Script Example: PaymentTime(240000); It sets Time betwen paychecks 240 Seconds(4 Minutes)
  • SetPayment(jobid, Payment)
With this you can change the payment.
Same ids as for SetJob(jobid, playerid).
Script Example: SetPayment(11, 10000); It changes truckers payment amouind too 10k
  • TeamKillOn(True/False)
Write 1 For turn it off, And 0 to turn it on, This simple turn off/on Friendly Fire.
Script Example: TeamKillOn(1); It makes a Team Kill protection.
  • SetSkin(Jobid, Skinid)
You can change defaut Jobs Skins with this function.
Script Example: SetSkin(11, 155); It changes Truckers Skin to Skinid 155.NOTE: It dont change ACTIVE Truckers SKIN!!!
  • GetPlayerJobID(playerid)
With this function you can get Playerids Job id.
Script Example: if(GetPlayerJobId(11) == 1) It will check if playerid 11 is a cop.
Download

<== Version 1.9 C [2008-11-03 23:14 GMT +1] Recommended for best results!
PASTABIN: http://pastebin.com/f5c8acf2f
Ideas For Next Release:
  • Car Jacker = 100%
Do not post just 1 suggestion/post, for that pm me.
but for more that 1 suggestion you can post

Changelog:
Код:
[INC]xJobs V 1.9 C:
Fixed bug with SetJob(playerid, 1) now it shows right message!
================================
[INC]X_Jobs V 1.9 B:
Added Jobs: car jacker
Added Function:
Orther: Bug fix release. Violation with trucker job fixed now.
================================
[INC]Jobs V 1.9:
Added Jobs: Trucker
Added Function:
Orther: Bug Fix Release, Fixed some Bugs.
================================
[INC]Jobs V 1.8:
Added Jobs, Drive Instructor, Hacker
Function Added: GetPlayerJobID(playerid);
==============================
[INC]Jobs V 1.7:
Added Jobs: Drug Dealer, President

Added Function: 
SetSkin(Jobid, Skinid)

Orther:
A .pwn and .amx included to check how to script those commands.
==================================================
Код:
[INC]Jobs V 1.6:
Added Jobs:

Added Function: 
TeamKillOn(True/False)
================================
[INC]Jobs V 1.5:
Added Jobs:
SWAT,Groove,Ballas
Function Added:PaymentTime(time)
==============================
[INC]Jobs V 1.0:
Added jobs Police, Medic and Army.
Function Added:
 Setjob(jobid, playerid)
Removejob(playerid)
SetPayment(jobid, Payment)
Код:
Script Snippers!
Example of SetPlayerJob:
	if (strcmp("/police", cmdtext, true, 10) == 0)
	{
		SetPlayerJob(1,playerid); //This command will make player a police officer.
		return 1;
	}

Example Of RemoveJob(playerid);
public OnPlayerConnect(playerid)
{
	RemoveJob(playerid);
	return 1;
}
Example Of SetPayment(jobid);
public OnGameModeInit()
{
    SetPayment(1, 1000); // It will set police payment to 1000
	return 1;
}
Example Of TeamKillOn(tru/false);
public OnGameModeInit()
{
    TeamKillOn(1);//It will make able to kill polices if your police.
	return 1;
}
public OnPlayerConnect(playerid)
{
	if(GetPlayerJobId(playerid) == 0)//This checks if playerid have any job, If not, they jobid is 0, so it means civilian.
	{
		SendClientMessage(playerid, COLOR, "SERVER: Your a civilian!");
	}
	return 1;
}
Reply


Messages In This Thread
[INC] xJobs V.1.9 c, 12 Jobs,Good For RolePlay And TDM(Redownload new version) - by Rozzie - 16.07.2008, 19:19
Re: [INC] Jobs V.1.0, 3 Jobs, For RolePlay/ DM - by CJoao - 16.07.2008, 20:37
Re: [INC] Jobs V.1.0, 3 Jobs, For RolePlay/ DM - by Rozzie - 16.07.2008, 20:51
Re: [INC] Jobs V.1.0, 3 Jobs, For RolePlay/ DM - by [HiC]TheKiller - 16.07.2008, 21:13
Re: [INC] Jobs V.1.0, 3 Jobs, For RolePlay/ DM - by Rozzie - 16.07.2008, 21:40
Re: [INC] Jobs V.1.0, 3 Jobs, For RolePlay/ DM - by winker2k6 - 16.07.2008, 21:41
Re: [INC] Jobs V.1.0, 3 Jobs, For RolePlay/ DM - by Rozzie - 16.07.2008, 21:51
Re: [INC] Jobs V.1.6, 6 Jobs,Good For RolePlay And TDM - by winker2k6 - 17.07.2008, 06:24
Re: [INC] Jobs V.1.6, 6 Jobs,Good For RolePlay And TDM - by Rks25 - 17.07.2008, 07:33
Re: [INC] Jobs V.1.6, 6 Jobs,Good For RolePlay And TDM - by winker2k6 - 17.07.2008, 08:06
Re: [INC] Jobs V.1.6, 6 Jobs,Good For RolePlay And TDM - by Rozzie - 17.07.2008, 09:43
Re: [INC] Jobs V.1.6, 6 Jobs,Good For RolePlay And TDM - by winker2k6 - 17.07.2008, 10:41
Re: [INC] Jobs V.1.6, 6 Jobs,Good For RolePlay And TDM - by Rozzie - 17.07.2008, 11:51
Re: [INC] Jobs V.1.6, 6 Jobs,Good For RolePlay And TDM - by matt2127 - 17.07.2008, 11:55
Re: [INC] Jobs V.1.6, 6 Jobs,Good For RolePlay And TDM - by Rozzie - 17.07.2008, 13:00
Re: [INC] Jobs V.1.6, 6 Jobs,Good For RolePlay And TDM - by matt2127 - 17.07.2008, 14:47
Re: [INC] Jobs V.1.6, 6 Jobs,Good For RolePlay And TDM - by Rozzie - 17.07.2008, 15:37
Re: [INC] Jobs V.1.6, 6 Jobs,Good For RolePlay And TDM - by pspleo - 17.07.2008, 15:45
Re: [INC] Jobs V.1.6, 6 Jobs,Good For RolePlay And TDM - by matt2127 - 17.07.2008, 16:33
Re: [INC] Jobs V.1.6, 6 Jobs,Good For RolePlay And TDM - by Rozzie - 17.07.2008, 16:35
Re: [INC] Jobs V.1.6, 6 Jobs,Good For RolePlay And TDM - by matt2127 - 17.07.2008, 17:02
Re: [INC] Jobs V.1.6, 6 Jobs,Good For RolePlay And TDM - by Rozzie - 17.07.2008, 19:16
Re: [INC] Jobs V.1.6, 6 Jobs,Good For RolePlay And TDM - by winker2k6 - 17.07.2008, 19:44
Re: [INC] Jobs V.1.6, 6 Jobs,Good For RolePlay And TDM - by Rozzie - 17.07.2008, 19:49
Re: [INC] Jobs V.1.6, 8 Jobs,Good For RolePlay And TDM - by winker2k6 - 17.07.2008, 19:50
Re: [INC] Jobs V.1.6, 8 Jobs,Good For RolePlay And TDM - by Rozzie - 17.07.2008, 22:39
Re: [INC] Jobs V.1.6, 8 Jobs,Good For RolePlay And TDM - by winker2k6 - 18.07.2008, 18:43
Re: [INC] Jobs V.1.6, 8 Jobs,Good For RolePlay And TDM - by Rozzie - 18.07.2008, 21:28
Re: [INC] Jobs V.1.9, 11 Jobs,Good For RolePlay And TDM - by Rozzie - 19.07.2008, 22:49
Re: [INC] Jobs V.1.9, 11 Jobs,Good For RolePlay And TDM - by winker2k6 - 20.07.2008, 08:16
Re: [INC] xJobs V.1.9 c, 12 Jobs,Good For RolePlay And TDM(Redownload new version) - by sim_sima - 16.06.2012, 11:14
Re: [INC] xJobs V.1.9 c, 12 Jobs,Good For RolePlay And TDM(Redownload new version) - by yonwtz - 03.01.2013, 09:22

Forum Jump:


Users browsing this thread: 2 Guest(s)