[INC] xJobs V.1.9 c, 12 Jobs,Good For RolePlay And TDM(Redownload new version) -
Rozzie - 16.07.2008
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 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)" !!!!
Removes specific player from job.
Script Example: RemoveJob(11); Its remove playerids 11 Jobs
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
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.
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!!!
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: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;
}
Re: [INC] Jobs V.1.0, 3 Jobs, For RolePlay/ DM -
CJoao - 16.07.2008
Nice...
Re: [INC] Jobs V.1.0, 3 Jobs, For RolePlay/ DM -
Rozzie - 16.07.2008
Quote:
Originally Posted by CJoao
Nice...
|
Thanks :P
Re: [INC] Jobs V.1.0, 3 Jobs, For RolePlay/ DM -
[HiC]TheKiller - 16.07.2008
Nice good for RP
Re: [INC] Jobs V.1.0, 3 Jobs, For RolePlay/ DM -
Rozzie - 16.07.2008
Quote:
Originally Posted by [HiC
TheKiller ]
Nice good for RP
|
yep :P im working right now on Verion 1.5 xD with more jobs
Re: [INC] Jobs V.1.0, 3 Jobs, For RolePlay/ DM -
winker2k6 - 16.07.2008
yeah
when will that be released??
Re: [INC] Jobs V.1.0, 3 Jobs, For RolePlay/ DM -
Rozzie - 16.07.2008
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.
Re: [INC] Jobs V.1.6, 6 Jobs,Good For RolePlay And TDM -
winker2k6 - 17.07.2008
the payment time
PaymentTime(time);
is the time minutes second or miliseconds?
Re: [INC] Jobs V.1.6, 6 Jobs,Good For RolePlay And TDM -
Rks25 - 17.07.2008
Pastebin plesae.
Re: [INC] Jobs V.1.6, 6 Jobs,Good For RolePlay And TDM -
winker2k6 - 17.07.2008
just download it, it's only 4.32 kb
Re: [INC] Jobs V.1.6, 6 Jobs,Good For RolePlay And TDM -
Rozzie - 17.07.2008
rkks just open it with notepad, and its miliseconds.
But you wanted so,
http://pastebin.com/m4b846e16
Re: [INC] Jobs V.1.6, 6 Jobs,Good For RolePlay And TDM -
winker2k6 - 17.07.2008
and have different jobs got different pay, if not, that is my suggestion, plus you could makesomet like
SetJobPay(id,value);
Re: [INC] Jobs V.1.6, 6 Jobs,Good For RolePlay And TDM -
Rozzie - 17.07.2008
SetPayment(jobid, Payment)
it sets jobs value of payment.
i alreally thinked bout that
Re: [INC] Jobs V.1.6, 6 Jobs,Good For RolePlay And TDM -
matt2127 - 17.07.2008
I Have Everything But A Freakin Drug Dealer Job Where Can I Get It
Re: [INC] Jobs V.1.6, 6 Jobs,Good For RolePlay And TDM -
Rozzie - 17.07.2008
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
Re: [INC] Jobs V.1.6, 6 Jobs,Good For RolePlay And TDM -
matt2127 - 17.07.2008
doesnt work it compiles and everything but cmds have no effect
Re: [INC] Jobs V.1.6, 6 Jobs,Good For RolePlay And TDM -
Rozzie - 17.07.2008
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.
Re: [INC] Jobs V.1.6, 6 Jobs,Good For RolePlay And TDM -
pspleo - 17.07.2008
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.
Re: [INC] Jobs V.1.6, 6 Jobs,Good For RolePlay And TDM -
matt2127 - 17.07.2008
Im Using Pen1 If It Makes A Difference
Re: [INC] Jobs V.1.6, 6 Jobs,Good For RolePlay And TDM -
Rozzie - 17.07.2008
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.