[HELP] Limited workers in one job - 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: [HELP] Limited workers in one job (
/showthread.php?tid=130151)
[HELP] Limited workers in one job -
addinol - 25.02.2010
Hey, i wan't to make that maximum 20 player's can work in one job. like job workers limit, is it possible?
Re: [HELP] Limited workers in one job -
Martin_M - 25.02.2010
Everything's possible.
Then, the player takes job, put this function:
And, of course check how much is in PD. For example:
Код:
if(PeoplesInPD == 20)
{
SendClientMessage(playerid,0xFF0000FF,"In our Police Department is enough police officers. Sorry.");
return 1;
}
Re: [HELP] Limited workers in one job -
addinol - 25.02.2010
ok thanks! one more question, how could i make an score system, like a people every 60 seconds gets +1 score. but only if they are moving not afk or something like this.
Re: [HELP] Limited workers in one job -
addinol - 25.02.2010
and how could i make when player quit's job, there will be free worker space.
and is there a solution for this problem, when player joins job. and he leaves server. the character is still in this job, i want to make it leave automaticly if you are not active.
Re: [HELP] Limited workers in one job -
Martin_M - 25.02.2010
Quote:
Originally Posted by addinol
ok thanks! one more question, how could i make an score system, like a people every 60 seconds gets +1 score. but only if they are moving not afk or something like this.
|
Make timer.
Quote:
and how could i make when player quit's job, there will be free worker space.
|
Re: [HELP] Limited workers in one job -
addinol - 25.02.2010
oh thanks.