SA-MP Forums Archive
Adding Social Working system while in prison - 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)
+--- Thread: Adding Social Working system while in prison (/showthread.php?tid=290267)



Adding Social Working system while in prison - TheNavigator - 15.10.2011

I want to make something like for example I'm in prison for 5 minutes. Which is 5 X 60 = 300 seconds. So I work (for example) to make those 300$ and get away but without taking them and paying them to the government (which is nowhere. It will be just deducted). And also when he goes out of car for more than 2.5 minutes, his color turns red. And when he logs out or something, he returns to prison. How can I do that?


Re: Adding Social Working system while in prison - TheNavigator - 17.10.2011

Any help?


Re: Adding Social Working system while in prison - Yamoo - 17.10.2011

I really don't get it, it ain't well explained to be fair. Sorry pal.


Re: Adding Social Working system while in prison - TheNavigator - 17.10.2011

Here's more explanation

While you're in prison, you can enter command which is /communityservice

Then it displays a dialogue with list of "good" jobs

You click on one of them, then you appear in the place where you shall be working

For example you have to be in prison for 60 seconds. The amount of money you need to get so you are released is 60 X (a fair number) $

If prisoner was out of the car for example (at the taxi driver job) for more than 5 minutes, police officers are alarmed and he appears on map of all players red

Clear enough?


Re: Adding Social Working system while in prison - nilanjay - 17.10.2011

Okay I got that. You are using if someone is wanted then he appears red on the minimap, Am I right?


Re: Adding Social Working system while in prison - TheNavigator - 17.10.2011

True

But the main purpose I want is the part above it


Re: Adding Social Working system while in prison - nilanjay - 17.10.2011

You can make a timer system and a criminal script like one in a rp script. You can see that type of script in the gamemode scetion, check any rp script


Re: Adding Social Working system while in prison - TheNavigator - 17.10.2011

Can you explain it more?

I'm a scripting beginner


Re: Adding Social Working system while in prison - nilanjay - 17.10.2011

You can read about timers here

https://sampwiki.blast.hk/wiki/SetTimer


Re: Adding Social Working system while in prison - TheNavigator - 17.10.2011

I know about timers (I'm a C programmer and a Visual Basic one too)

But how are we going to use this? :/

I still need the command to open the dialogue for social work thing =(

And I need to know the actual co-ordinates of all prison cells to do that =(