Jobs - Correct Usage? - 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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Jobs - Correct Usage? (
/showthread.php?tid=180807)
Jobs - Correct Usage? -
Luis- - 02.10.2010
pawn Код:
switch ( classid )
{
case 280 .. 286, 297: {
g_iJob[ playerid ] = JOB_POLICE;
SetPlayerColor(playerid, COLOR_PD);
}
case 274 .. 276: {
g_iJob[ playerid ] = JOB_EMS;
SetPlayerColor(playerid, COLOR_EMS);
}
case 277, 288, 289: {
g_iJob[ playerid ] = JOB_FIREMAN;
SetPlayerColor(playerid, COLOR_FIRE);
}
}
Correct?
Re: Jobs - Correct Usage? -
Chaprnks - 02.10.2010
If your asking if the syntax is correct, yes.
Re: Jobs - Correct Usage? -
Luis- - 02.10.2010
Okay thanks, But still when I join and have I say have a EMS skin my Name Tag is not Pink?
Re: Jobs - Correct Usage? -
Chaprnks - 02.10.2010
Make sure the definition "COLOR_EMS" is pink, it is setup correctly.