[Include] [INC]Job Create
#1

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

anyone used it? ?
Reply
#3

nice thats mad as!
Reply
#4

thanks
Reply
#5

Awesome!!! You did a good job man!
Reply
#6

Good job
Reply
#7

Good, but i prefer the old way - variables
Reply
#8

Thanks, that's great!
Reply
#9

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
Reply
#10

:O very nice
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)