Arrest
#8

Simple. Just when you execute the arrest command, before putting the targetid in jail, GetPlayerPos(criminal). Then, for(new i;i<Max_players;i++) isplayerinrangeofpoint(10 metres and the criminals position..) if yes, give him the required money..also, add the condition, if(i==playerid), continue; since you will be giving the money OUT of the loop.
Reply


Messages In This Thread
Arrest - by sscarface - 08.02.2013, 12:08
Re: Arrest - by sscarface - 08.02.2013, 13:24
Re: Arrest - by antonio112 - 08.02.2013, 13:33
Re: Arrest - by sscarface - 08.02.2013, 14:05
Re: Arrest - by Folly91 - 08.02.2013, 15:08
Re: Arrest - by sscarface - 08.02.2013, 15:17
Re: Arrest - by MrTransport - 08.02.2013, 15:22
Re: Arrest - by RajatPawar - 08.02.2013, 15:25
Re: Arrest - by sscarface - 08.02.2013, 15:30

Forum Jump:


Users browsing this thread: 2 Guest(s)