Nume: SiNiSTER
Descriere:
Imagini: -
Dowload (link): Il creati singuri in Pawn ( copy paste )
Code:
getgift(playerid, params[])
{
if(playerVariables[playerid][pGiftPoint] >= 1)
{
new ran = random(5);
if(ran == 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "GiftBox: Ai castigat $1,774,169.");
playerVariables[playerid][pMoney] += 1774169;
playerVariables[playerid][pGiftPoint] -= 1;
}
else if(ran == 1)
{
SendClientMessage(playerid, COLOR_YELLOW, "GiftBox: Ai castigat $116,49.");
playerVariables[playerid][pMoney] += 11649;
playerVariables[playerid][pGiftPoint] -= 1;
}
else if(ran == 2)
{
SendClientMessage(playerid, COLOR_YELLOW, "GiftBox: Ai castigat $123,90");
playerVariables[playerid][pMoney] +12390;
playerVariables[playerid][pGiftPoint] -= 1;
}
else if(ran == 3)
{
SendClientMessage(playerid, COLOR_YELLOW, "GiftBox: Ai castigat 10g droguri");
playerVariables[playerid][pDrugs] += 10;
playerVariables[playerid][pGiftPoint] -= 1;
}
else if(ran == 4)
{
SendClientMessage(playerid, COLOR_YELLOW, "GiftBox: Ai castigat 50,000 de materiale");
playerVariables[playerid][pMaterials] +=50000;
playerVariables[playerid][pGiftPoint] -= 1;
}
}
else return SendClientMessage(playerid, COLOR_GREY, "Nu ai suficiente GiftPoints-uri pentru a castiga un cadou.");
}