Guest User

Untitled

a guest
May 23rd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.49 KB | None | 0 0
  1. New:
  2. new Text:House1;
  3. new Text:House2;
  4. OnGameModeExitFunc:
  5. TextDrawDestroy(Text:House1);
  6. TextDrawDestroy(Text:House2);
  7. OnGameModeInit:
  8. /*------------------------------------------------------------------------------*/
  9. House1 = TextDrawCreate(2.000000, 133.000000, "Dobrodosli"); TextDrawBackgroundColor(House1, 255); TextDrawFont(House1, 1); TextDrawLetterSize(House1, 0.370000, 1.200000); TextDrawColor(House1, -1); TextDrawSetOutline(House1, 1); TextDrawSetProportional(House1, 1); TextDrawUseBox(House1, 1); TextDrawBoxColor(House1, 90); TextDrawTextSize(House1, 192.000000, 0.000000);
  10. /*------------------------------------------------------------------------------*/
  11. House2 = TextDrawCreate(2.000000, 113.000000, "Ukucajte /enter"); TextDrawBackgroundColor(House2, 255); TextDrawFont(House2, 3); TextDrawLetterSize(House2, 0.549999, 1.800000); TextDrawColor(House2, -1); TextDrawSetOutline(House2, 1); TextDrawSetProportional(House2, 1); TextDrawUseBox(House2, 1); TextDrawBoxColor(House2, -84215127); TextDrawTextSize(House2, 192.000000, 0.000000);
  12. /*------------------------------------------------------------------------------*/
  13.  
  14.  
  15. Pod Public Pickups:
  16. new Float:oldposx, Float:oldposy, Float:oldposz;
  17. new string[128];
  18. //NameTimer();
  19. foreach (Player, i)
  20. {
  21. GetPlayerPos(i, oldposx, oldposy, oldposz);
  22. new tmpcar = GetPlayerVehicleID(i);
  23. if(oldposx!=0.0 && oldposy!=0.0 && oldposz!=0.0)
  24. {
  25. for(new h = 0; h < sizeof(SBizzInfo); h++)
  26. {
  27. if(IsATruck(tmpcar) && PlayerToPoint(10.0, i, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]))
  28. {
  29. format(string, sizeof(string), "~w~%s~n~~r~Produkta Potrebno~w~: %d~n~~y~Cijena po Produktu: ~w~: $%d~n~~g~Novac: ~w~: $%d",SBizzInfo[h][sbMessage],(SBizzInfo[h][sbMaxProducts]-SBizzInfo[h][sbProducts]),SBizzInfo[h][sbPriceProd],SBizzInfo[h][sbTill]);
  30. TextDrawSetString(OwnerShip2,string);
  31. TextDrawShowForPlayer(i,OwnerShip1);
  32. TextDrawShowForPlayer(i,OwnerShip2);
  33. SetTimerEx("UnistiTDKuce",6000,0,"d",i);
  34. return 1;
  35. }
  36. }
  37. for(new h = 0; h < sizeof(HouseInfo); h++)
  38. {
  39. if(PlayerToPoint(2.0, i, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]))
  40. {
  41. if(HouseInfo[h][hOwned] == 1)
  42. {
  43. if(HouseInfo[h][hRentabil] == 0)
  44. {
  45. format(string, sizeof(string), "~g~Vlasnik~n~~w~%s~n~%d Level",HouseInfo[h][hOwner],HouseInfo[h][hLevel]);
  46. TextDrawSetString(House1, string);
  47. TextDrawShowForPlayer(i, House1);
  48. TextDrawShowForPlayer(i, House2);
  49. SetTimerEx("UnistiTDKuce",6000,0,"d",i);
  50. }
  51. else
  52. {
  53. format(string, sizeof(string), "~g~Vlasnik~n~~w~%s~n~Renta: $%d Level: %d~n~~y~/rentroom",HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel]);
  54. TextDrawSetString(House1, string);
  55. TextDrawShowForPlayer(i, House1);
  56. TextDrawShowForPlayer(i, House2);
  57. SetTimerEx("UnistiTDKuce",6000,0,"d",i);
  58. }
  59. return 1;
  60. }
  61. else
  62. {
  63. format(string, sizeof(string), "~g~Prodaje se!~n~~w~%s~n~$%d~n~%d Level~n~~y~/kupikucu",HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel]);
  64. TextDrawSetString(House1, string);
  65. TextDrawShowForPlayer(i, House1);
  66. TextDrawShowForPlayer(i, House2);
  67. SetTimerEx("UnistiTDKuce",6000,0,"d",i);
  68. }
  69. return 1;
  70. }
  71. }
  72. for(new h = 0; h < sizeof(BizzInfo); h++)
  73. {
  74. if(IsATruck(tmpcar) && PlayerToPoint(10.0, i, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]))
  75. {
  76. format(string, sizeof(string), "~w~%s~n~~r~Potrebno produkata~w~: %d~n~~y~Cijena produkta: ~w~: $%d~n~~g~Novac: ~w~: $%d",BizzInfo[h][bMessage],(BizzInfo[h][bMaxProducts]-BizzInfo[h][bProducts]),BizzInfo[h][bPriceProd],BizzInfo[h][bTill]);
  77. TextDrawSetString(OwnerShip2,string);
  78. TextDrawShowForPlayer(i,OwnerShip1);
  79. TextDrawShowForPlayer(i,OwnerShip2);
  80. SetTimerEx("UnistiTDKuce",6000,0,"d",i);
  81. return 1;
  82. }
  83. }
  84. }
  85.  
  86.  
  87. PublicNa Kraj:
  88. forward UnistiTDKuce(playerid);
  89. public UnistiTDKuce(playerid)
  90. {
  91. TextDrawHideForPlayer(playerid,Text:House1);
  92. TextDrawHideForPlayer(playerid,Text:House2);
  93. }
Add Comment
Please, Sign In to add comment