Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:getgift(playerid, params[]) {
- if(GiftBoxInfo[playerid][pGiftBoxOn] == 0) return SCM(playerid, -1, "Giftbox-ul nu este activ..");
- if(IsPlayerInRangeOfPoint(playerid, 5.0, GiftBoxInfo[playerid][pGiftBoxPosX], GiftBoxInfo[playerid][pGiftBoxPosY], GiftBoxInfo[playerid][pGiftBoxPosZ]))
- {
- new rand = random(11); new zzString[64];
- switch(rand) {
- case 0..5: {
- SCM(playerid, -1, "{008080}(GIFTBOX){FFFFFF}: Felicitari! Ai deschis giftbox-ul si ai castigat 10.000.000$.");
- GivePlayerCash(playerid, 10000000);
- Update(playerid, pCashx);
- mysql_format(SQL,zzString,sizeof(zzString),"UPDATE `giftboxd` SET `GiftBoxMoney`='%s'", GiftBoxInfo[playerid][pGiftBoxMoney]);
- mysql_tquery(SQL,zzString,"","");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement