18.03.2016, 18:31
The code is probably off, but you can probably get the idea of what I mean with this.
pawn Код:
if(gift == 10)
{
PurchaseVehicleFromDealer(playerid, 487, 0, 100);
SendClientMessage(playerid,-1,"Ai castigat un Maverick");
format(string, sizeof(string), "There are %i cars in the giftbox.", giftnumber); //Be sure to make a string variable and have a variable that keeps track of how many vehicles are left.
SendClientMessage(playerid, -1, string);
}