Advertisement
Guest User

Untitled

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