[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
#2

Nice...
Reply
#3

Quote:
Originally Posted by CJoao
Nice...
Thanks :P
Reply
#4

Nice good for RP
Reply
#5

Quote:
Originally Posted by [HiC
TheKiller ]
Nice good for RP
yep :P im working right now on Verion 1.5 xD with more jobs
Reply
#6

yeah

when will that be released??
Reply
#7

Quote:
Originally Posted by Winker2k6
yeah

when will that be released??
soon making now a new function right now to decine how fast the paycheck will come
EDIT: Look at first post.
Reply
#8

the payment time
PaymentTime(time);
is the time minutes second or miliseconds?
Reply
#9

Pastebin plesae.
Reply
#10

just download it, it's only 4.32 kb
Reply
#11

rkks just open it with notepad, and its miliseconds.
But you wanted so, http://pastebin.com/m4b846e16
Reply
#12

and have different jobs got different pay, if not, that is my suggestion, plus you could makesomet like

SetJobPay(id,value);
Reply
#13

SetPayment(jobid, Payment) it sets jobs value of payment. i alreally thinked bout that
Reply
#14

I Have Everything But A Freakin Drug Dealer Job Where Can I Get It
Reply
#15

Quote:
Originally Posted by matt2127
I Have Everything But A Freakin Drug Dealer Job Where Can I Get It
thanks for idea will add soon :P
Reply
#16

doesnt work it compiles and everything but cmds have no effect
Reply
#17

Quote:
Originally Posted by matt2127
doesnt work it compiles and everything but cmds have no effect
me and leopard tested it, and it worked, It means that you scripted wrong.
Reply
#18

Quote:
Originally Posted by .::Dark Xe0::.
Quote:
Originally Posted by matt2127
doesnt work it compiles and everything but cmds have no effect
me and leopard tested it, and it worked, It means that you scripted wrong.
Good 'ol times XD!
good inc a double post with suggestions () in an hour or two.
Reply
#19

Im Using Pen1 If It Makes A Difference
Reply
#20

Quote:
Originally Posted by matt2127
Im Using Pen1 If It Makes A Difference
Well, maybe it dont work with pen1, But try to use the newest version, it have a test version.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)