Advertisement
Guest User

Untitled

a guest
Jul 27th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. if(dialogid == DKUCA_PRODAJA)
  2. {
  3. if(!response) return 1;
  4. if(PlayerInfo[playerid][pPosedovanjeKuce] == -1) return SCM(playerid,-1, ""CRVENA"[UG:RP] "SIVA"Nemate kucu!");
  5. new i = PlayerInfo[playerid][pPosedovanjeKuce];
  6. if(response)
  7. {
  8. new cena1 = (KucaInfo[i][kCena]/4)*2;
  9. g_NovacPlus(playerid, cena1);
  10. KucaInfo[i][kProveraVlasnika] = 0; KucaInfo[i][kNovac] = 0; KucaInfo[i][kOruzije] = -1; KucaInfo[i][kMunicija] = 0;
  11. KucaInfo[i][kOdjeca] = 0; KucaInfo[i][kDroga] = 0; KucaInfo[i][kMats] = 0; KucaInfo[i][kZatvoreno] = 1; KucaInfo[i][kRent] = 0;
  12. KucaInfo[i][kHrana] = 0; strmid(KucaInfo[i][kVlasnik], "Niko", 0, strlen("Niko"), 255);
  13. for(new n=0; n<30; n++)
  14. {
  15. if(KucaInfo[i][kObjectSpawned][n] == 1)
  16. {
  17. DestroyDynamicObject(KucaInfo[i][kObjectID][n]);
  18. KucaInfo[i][kObjectID][n] = -1;
  19. KucaInfo[i][kObjectX][n] = 0;
  20. KucaInfo[i][kObjectY][n] = 0;
  21. KucaInfo[i][kObjectZ][n] = 0;
  22. KucaInfo[i][kObjectSpawned][n] = 0;
  23. KucaInfo[i][kObjectKupit][n] = 0;
  24. }
  25. }
  26. PlayerInfo[playerid][pPosedovanjeKuce] = -1;
  27. SacuvajKucu(i); KuceLP(i); SavePlayer(playerid);
  28. SCMF(playerid,-1,""HZELENA"[UG:RP] "BELA"Prodali ste kucu za %d$!",cena1);
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement