06.04.2010, 07:44
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
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