SA-MP Forums Archive
[Include] [INC]Job Create - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [INC]Job Create (/showthread.php?tid=139739)



[INC]Job Create - denis1999 - 06.04.2010

So here I am again. Here is my include thanks to the professions are much easier.

Installation
Job_OnPlayerPickUpPickup(playerid); => put to public OnPlayerPickUpPickup(....)
Job_OnPlayerKeyStateChange(playerid, newkeys); => put to public OnPlayerStateChange(......)

How Use?
You have to give the public OnGameModeInt
CreateJob(job_name[],id,Floatxx,Float:yyy,Float:zzz,colors,jskin1,jskin2,jskin3,jskin4,jskin5,jw1,jw1ammo,jw2,jw2ammo,jw3, jw3ammo);

job_name[] => professional title (for example "Police" (you must put you must put in "")
id => Job id (for example if(Job[playerid] != 1) return SCM(playerid,color,"You weren cop");
You can combine the definitions (For example JOB_POLICE 1 / and use if(Job[playerid] != JOB_POLICE) return 0; )
Floatxx,Float:yyy,Float:zzz => Pickup position
colors => Nick Color (For example COLOR_SYSTEM)
jskin1,jskin2,jskin3,jskin4,jskin5 => Random skins
jw1,jw1ammo,jw2,jw2ammo,jw3, jw3ammo => weapon


commands

if(strcmp(cmd, "/test", true) == 0) {
if(Job[playerid] != 2) return GameTextForPlayer(playerid,"You weren cop",5000,5);
GameTextForPlayer(playerid,"You a cop",5000,5);
return 1;
}
profession through L.ALT
1 line = 1 profession

download ?
http://solidfiles.com/d/AqNI
or
http://pastebin.com/r8CpuD4E

pls coments



Re: [INC]Job Create - denis1999 - 06.04.2010

anyone used it? ?


Re: [INC]Job Create - Lorenc_ - 06.04.2010

nice thats mad as!


Re: [INC]Job Create - denis1999 - 06.04.2010

thanks


Re: [INC]Job Create - Thrarod - 06.04.2010

Awesome!!! You did a good job man!


Re: [INC]Job Create - GTA_Rules - 06.04.2010

Good job


Re: [INC]Job Create - armyoftwo - 06.04.2010

Good, but i prefer the old way - variables


Re: [INC]Job Create - [MWR]Blood - 06.04.2010

Thanks, that's great!


Re: [INC]Job Create - denis1999 - 06.04.2010

Quote:
Originally Posted by armyoftwo
Good, but i prefer the old way - variables
here you can easily use variables. above is a guide

#define JOB_COP 1
if(Job[playerid] != JOB_COP) return GameTextForPlayer(playerid,"You not cop",5000,4);

thanks


Re: [INC]Job Create - luigifan9 - 25.04.2010

:O very nice