04.07.2016, 04:21
Look at what I posted on your other thread: http://forum.sa-mp.com/showpost.php?...2&postcount=12
This is just a pure mess:
This is just a pure mess:
pawn Код:
while(gift == 0 && boxVariables[1][boxVehicle] != 0) gift = random(30);
while(gift > 0 || gift < 2 && boxVariables[1][boxPP] != 0) gift = random(30);
while(gift > 1 && gift < 7 && boxVariables[1][boxMoney] != 0) gift = random(30);
while(gift > 6 && gift < 12 && boxVariables[1][boxMats] != 0) gift = random(30);
while(gift > 11 && gift < 17 && boxVariables[1][boxClearWarns] != 0 && playerVariables[playerid][pWarns] != 0) gift = random(30);
while(gift > 13 && gift < 16 && boxVariables[1][boxClearFP] != 0 && playerVariables[playerid][pFP] != 0) gift = random(30);
while(gift > 15 && gift < 21 && boxVariables[1][boxFireWorks] != 0) gift = random(30);
while(gift > 20 && gift < 23 && boxVariables[1][boxHidden] != 0) gift = random(30);
while(gift > 22 && gift < 27 && boxVariables[1][boxLic] != 0) gift = random(30);