Paint & Spray BIZ
#2

I guess that because the script it's executed more than once , coz it check's the position more than once.
Try to make another case , like

On top of the script
Код:
 new playeralreadythere = 0
Код:
 new forward timeforremoneybiz
pawn Код:
else if(PlayerToPoint(2.0,i,1040.7855,-1021.7409,31.8312) || PlayerToPoint(2.0,i,-2722.4807,217.0514,4.1886))
     {
      If(playeralreadythere == 0)
      {
           if(IsPlayerInAnyVehicle(i))
           {
            SBizzInfo[5][sbTill] += 500;
            ExtortionSBiz(5, 500);
            SBizzInfo[5][sbProducts]--;
            playeralreadythere = 1;
            SetTimer("timeforremoneybiz", 5000, 0);
            return 1;
            }
       }
     }
On the bottom of the script
pawn Код:
public timeforremoneybiz
{
  playeralreadythere = 0;
}
PS : I didn't tested this .
Reply


Messages In This Thread
Paint & Spray BIZ - by Master_FM - 08.08.2009, 12:37
Re: Paint & Spray BIZ - by Dj_maryo1993 - 08.08.2009, 12:47
Re: Paint & Spray BIZ - by Master_FM - 08.08.2009, 12:50
Re: Paint & Spray BIZ - by dice7 - 08.08.2009, 12:51

Forum Jump:


Users browsing this thread: 1 Guest(s)