Facebook
From Diego, 9 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 595
  1.                if(id==22)
  2.                             {
  3.                                 if(GetPVarInt(playerid, "bron") == 0)
  4.                                         {
  5.                                         new ammo=dWyswietlAmmo(playerid, id);
  6.                                         format(String,sizeof(String),"* %s wyjmuje broń z ekwipunku.",NickCzat(playerid));
  7.                                         WyswietlText(playerid,KOLOR_JA,10.0,String);
  8.                                 Ddajbron(playerid, 22, 22)
  9.                                         SetPVarInt(playerid, "bron", 1);
  10.                                         }
  11.                                         else
  12.                                         {
  13.                                         format(String,sizeof(String),"* %s chowa broń do ekwipunku.",NickCzat(playerid));
  14.                                         WyswietlText(playerid,KOLOR_JA,10.0,String);
  15.                                         ResetPlayerWeapons(playerid);
  16.                                         SetPVarInt(playerid, "bron", 0);
  17.                                         ZapiszPrzedmiot(nr);
  18.                                         ZapiszKonto(playerid);
  19.                                         }
  20.                                         return 1;
  21.                             }
  22.                if(id==23)
  23.                             {
  24.                                 if(GetPVarInt(playerid, "bron") == 0)
  25.                                         {
  26.                                         new ammo=dWyswietlAmmo(playerid, id);
  27.                                         format(String,sizeof(String),"* %s wyjmuje broń z ekwipunku.",NickCzat(playerid));
  28.                                         WyswietlText(playerid,KOLOR_JA,10.0,String);
  29.                                 dDajBron(playerid,id,ammo);
  30.                                         SetPVarInt(playerid, "bron", 1);
  31.                                         }
  32.                                         else
  33.                                         {
  34.                                         format(String,sizeof(String),"* %s chowa broń do ekwipunku.",NickCzat(playerid));
  35.                                         WyswietlText(playerid,KOLOR_JA,10.0,String);
  36.                                         ResetPlayerWeapons(playerid);
  37.                                         SetPVarInt(playerid, "bron", 0);
  38.                                         ZapiszPrzedmiot(nr);
  39.                                         ZapiszKonto(playerid);
  40.                                         }
  41.                                         return 1;
  42.                             }