08.08.2009, 12:47
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
On the bottom of the script
PS : I didn't tested this .
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;
}
}
}
pawn Код:
public timeforremoneybiz
{
playeralreadythere = 0;
}