Tu asta :
if(RobTime[x] > 0)
{
RobTime[x]--;
if(RobTime[x] == 1)
{
new house;
house = random(systemVariables[houseCount]);
SetPlayerCheckpoint(x, houseVariables[house][hHouseExteriorPos][0], houseVariables[house][hHouseExteriorPos][1], houseVariables[house][hHouseExteriorPos][2], 5.0);
new randamount;
randamount = 50000 * playerVariables[x][pLevel];
RobPrice[x] = randamount;
playerVariables[x][pCheckpoint] = 8;
SCM(x, COLOR_LIGHTBLUE, "Go to the checkpoint to receive your money!");
new wanted;
wanted = random(10);
if(wanted == 1)
{
SCM(x, COLOR_LIGHTBLUE, "The bank employees didn't see your face. You are not wanted!");
}
else
{
playerVariables[x][pWarrants] = 6;
format(playerVariables[x][pCrimeReason], 150, "%sarmed robberyn", playerVariables[x][pCrimeReason]);
SetPlayerWantedLevel(x, 6);
format(szMessage, sizeof(szMessage), "Dispatch: %s (%d) has comitted a crime: armed robbery. Reporter: unknown. W: +6 | New Wanted Level: %d", playerVariables[x][pNormalName], x,playerVariables[x][pWarrants]);
sendDepartmentMessage(COLOR_RADIOCHAT, szMessage);
}
SetPlayerAttachedObject(x, 2, 1550, 1, -0.004022, -0.191353, -0.034982, 158.161407, 87.838058, 0.000000, 1.000000, 1.000000, 1.000000 );
playerVariables[x][pFreezeTime] = 0;
playerVariables[x][pFreezeType] = 0;
TogglePlayerControllable(x, 1);
}
}
trebuie sa il pui intr-un timer care se repeta din secunda in secunda.