Zmajk0

Untitled

Dec 31st, 2020
1,147
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cmd:ngpaketic(playerid)
  2. {
  3.     new dan,mesec,godina;
  4.     getdate(godina,mesec,dan);
  5.     if(!IsPlayerInRangeOfPoint(playerid,5,200.7610,-1834.2843,3.8399)) return SendClientMessage(playerid, GRAD2, !"Morate biti u blizini jelke kod plaze (/ngbina)!");
  6.     if(Stats[playerid][NGPaketic]>2020) return SendClientMessage(playerid, GRAD2, !"Vec si otvorio paketic, zar oces oped??? Cekaj sledecu godinu jbg...!");
  7.     if(Stats[playerid][pNivo]<3) return SendClientMessage(playerid, GRAD2, !"Paketic je predvidjen samo za igrace sa levelom 3+!");
  8.     if(dan<11&&godina==2021&&mesec==1)
  9.     {
  10.         GiveMoney(playerid,300000);
  11.         Stats[playerid][pNivo]+=4;
  12.         Stats[playerid][NGPaketic]=2021;
  13.         SendClientMessage(playerid, 0xcc0000ff, !"XO {ffffff}XO {cc0000}XO {ffffff}XO {cc0000}XO {ffffff}XO");
  14.         SendClientMessage(playerid, 0xcc0000ff, !"Srecne novogodisnje praznike zeli Vam Ver Mont Tim!");
  15.         SendClientMessage(playerid, 0xcc0000ff, !"Dobili ste novogodisnju nagradu!");
  16.         SendClientMessage(playerid, 0xcc0000ff, !"Sadrzaj nagrade:");
  17.         SendClientMessage(playerid, 0xcc0000ff, !"$300.000 + 4 level up-a!");
  18.         SetPlayerScore(playerid,Stats[playerid][pNivo]);
  19.         UpdatePlayerSQLInt(playerid,"level",Stats[playerid][pNivo]);
  20.         UpdatePlayerSQLInt(playerid,"ngpaket",Stats[playerid][NGPaketic]);
  21.     }
  22.     else return SendClientMessage(playerid, GRAD2, !"Novogodisnji paketici ce biti aktivni od 1.1.2021 do 10.1.2021!");
  23.     return true;
  24. }
RAW Paste Data