SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 16/07/2008, 07:19 PM   #1
Rozzie
High-roller
 
Join Date: Nov 2007
Posts: 1,123
Reputation: 7
Default [INC] xJobs V.1.9 c, 12 Jobs,Good For RolePlay And TDM(Redownload new version)

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:
Code:
[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.
==================================================
Code:
[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)
Code:
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;
}
Rozzie is offline   Reply With Quote
Old 16/07/2008, 08:37 PM   #2
CJoao
Huge Clucker
 
CJoao's Avatar
 
Join Date: Nov 2007
Location: Portugal, Madeira
Posts: 268
Reputation: 12
Default Re: [INC] Jobs V.1.0, 3 Jobs, For RolePlay/ DM

Nice...
__________________
CJoao is offline   Reply With Quote
Old 16/07/2008, 08:51 PM   #3
Rozzie
High-roller
 
Join Date: Nov 2007
Posts: 1,123
Reputation: 7
Default Re: [INC] Jobs V.1.0, 3 Jobs, For RolePlay/ DM

Quote:
Originally Posted by CJoao
Nice...
Thanks :P
Rozzie is offline   Reply With Quote
Old 16/07/2008, 09:13 PM   #4
[HiC]TheKiller
High-roller
 
Join Date: Mar 2008
Location: New Zealand
Posts: 3,074
Reputation: 406
Default Re: [INC] Jobs V.1.0, 3 Jobs, For RolePlay/ DM

Nice good for RP
__________________
People seem to enjoy negitive repping me for topics that I made in 2009.
Therefore, if you want to view my releases, you can go here.

Skype: TheKiller@dr.com
I do NOT script for cash. Add me on MSN if you need help with small issues.
[HiC]TheKiller is offline   Reply With Quote
Old 16/07/2008, 09:40 PM   #5
Rozzie
High-roller
 
Join Date: Nov 2007
Posts: 1,123
Reputation: 7
Default Re: [INC] Jobs V.1.0, 3 Jobs, For RolePlay/ DM

Quote:
Originally Posted by [HiC
TheKiller ]
Nice good for RP
yep :P im working right now on Verion 1.5 xD with more jobs
Rozzie is offline   Reply With Quote
Old 16/07/2008, 09:41 PM   #6
winker2k6
Huge Clucker
 
Join Date: Oct 2007
Posts: 219
Reputation: 0
Default Re: [INC] Jobs V.1.0, 3 Jobs, For RolePlay/ DM

yeah

when will that be released??
winker2k6 is offline   Reply With Quote
Old 16/07/2008, 09:51 PM   #7
Rozzie
High-roller
 
Join Date: Nov 2007
Posts: 1,123
Reputation: 7
Default Re: [INC] Jobs V.1.0, 3 Jobs, For RolePlay/ DM

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.
Rozzie is offline   Reply With Quote
Old 17/07/2008, 06:24 AM   #8
winker2k6
Huge Clucker
 
Join Date: Oct 2007
Posts: 219
Reputation: 0
Default Re: [INC] Jobs V.1.6, 6 Jobs,Good For RolePlay And TDM

the payment time
PaymentTime(time);
is the time minutes second or miliseconds?
winker2k6 is offline   Reply With Quote
Old 17/07/2008, 07:33 AM   #9
Rks25
High-roller
 
Join Date: Jun 2007
Posts: 2,924
Reputation: 4
Default Re: [INC] Jobs V.1.6, 6 Jobs,Good For RolePlay And TDM

Pastebin plesae.
Rks25 is offline   Reply With Quote
Old 17/07/2008, 08:06 AM   #10
winker2k6
Huge Clucker
 
Join Date: Oct 2007
Posts: 219
Reputation: 0
Default Re: [INC] Jobs V.1.6, 6 Jobs,Good For RolePlay And TDM

just download it, it's only 4.32 kb
winker2k6 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[GameMode] [GM] San Fierro Roleplay Version 2.0 SNM Gamemode Scripts 77 13/01/2011 11:53 AM
[Map] [MAP] LS PD (good for roleplay) DominikK Maps 3 20/10/2009 03:23 PM
Any good roleplay server on? Simmeey Everything and Nothing 2 26/04/2009 03:22 PM


All times are GMT. The time now is 08:20 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.