Advertisement
Guest User

Untitled

a guest
Jul 6th, 2015
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.83 KB | None | 0 0
  1. // Constructor of work post edited samp Vegalta Sendai
  2. // This fs was to the idea of ??how he wanted the job, but leave it to have little knowledge of scrip.
  3. // But I could not fix, like putting more uniform and functions.
  4. // I leave this to see who improves or makes a better FS work, the idea of the work was mine
  5. //credits of fs by TaifunX2
  6. #include <a_samp>
  7. #include <streamer>
  8. #include <zcmd>
  9.  
  10.  
  11. #define COLOR_YELLOW3d 0xFFFF00FF
  12. #define COLOR_TFNX2 0xFF0000AA
  13. #define COLOR_ALBASTRU 0x33CCFFAA
  14. #define COLOR_GALBEN 0xFFFF00AA
  15. #define FILTERSCRIPT
  16.  
  17.  
  18. new Pas[6] = {5, ...}, Text3D: label[8], bool:TransportStup[MAX_PLAYERS], string[128];
  19. new Float:PositieStup[8][8] = {{2703.6990,908.0712,10.6552},{},{},{},{},{},{},{}};
  20.  
  21.  
  22.  
  23. public OnFilterScriptInit()
  24. {
  25.  
  26. Create3DTextLabel("Tai Day Cung Cap Hon Hop\nSu Dung Xay Dung /cungcap",COLOR_YELLOW3d,2675.3425,837.4286,22.2264,10.0,0,1);
  27.  
  28. Create3DTextLabel("Chao Mung Ban Den Voi Khu Vuc Cong Truong!\nDen Noi Lay Hon Hop Roi Bat Dau Cong Viec!",COLOR_GALBEN,2717.7800,853.3139,10.8984,10.0,0,1);
  29. AddStaticPickup(1239, 23, -68.4107,-1598.3169,2.7288);
  30.  
  31. //Timer update stup
  32. SetTimer("UpdateStup" , 500 * 60, true);
  33.  
  34. //car shows as it would erase free for players xd
  35. CreateVehicle(450, 2696.2490, 894.2095, 10.5421, -87.0000, -1, -1, 100);
  36. CreateVehicle(486, 2687.2349, 902.7050, 10.3513, 0.0000, -1, -1, 100);
  37. CreateVehicle(524, 2712.5171, 905.5458, 11.5802, 275.0000, -1, -1, 100);
  38. CreateVehicle(524, 2712.3445, 898.3555, 11.5802, 275.0000, -1, -1, 100);
  39. CreateVehicle(524, 2712.2930, 890.8737, 11.5802, 275.0000, -1, -1, 100);
  40. CreateVehicle(524, 2712.7078, 885.7772, 11.5802, 275.0000, -1, -1, 100);
  41. CreateVehicle(524, 2695.8203, 909.0060, 11.5602, 86.0000, -1, -1, 100);
  42. CreateVehicle(450, 2696.7517, 886.0803, 10.5421, -87.0000, -1, -1, 100);
  43.  
  44.  
  45. //Objects HERE PUT THE 2 TOWERS
  46. CreateObject(9618, 2663.19531, 834.53632, 18.62940, 0.00000, -2.00000, 88.00000);
  47. CreateObject(9817, 2686.58813, 838.39746, 17.50166, 0.00000, 0.00000, 181.00000);
  48.  
  49. for(new i = 0x0; i != sizeof(PositieStup); i++)
  50. {
  51. label[i] = Create3DTextLabel("Hon Hop Su Dung O Dau \n Kich Chuot Trai De Lay", COLOR_YELLOW3d, PositieStup[i][0], PositieStup[i][1], PositieStup[i][2], 20.0, 0 , 0);
  52. }
  53. return 1;
  54. }
  55.  
  56. public OnPlayerConnect(playerid)
  57. {
  58.  
  59. TransportStup[playerid] = false;
  60.  
  61. RemoveBuildingForPlayer(playerid, 1685, 2698.3750, 904.9219, 10.1797, 0.25);
  62. RemoveBuildingForPlayer(playerid, 1685, 2701.5703, 908.3281, 10.3516, 0.25);
  63. RemoveBuildingForPlayer(playerid, 1685, 2695.0078, 909.0859, 10.3828, 0.25);
  64. RemoveBuildingForPlayer(playerid, 1685, 2699.5000, 911.9219, 10.5000, 0.25);
  65.  
  66. }
  67.  
  68. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  69. {
  70. if(newkeys & KEY_FIRE)
  71. {
  72. if(TransportStup[playerid]) return SendClientMessage(playerid,-1, "Nhac Nho : {00FF00}Hay Lay Hon Hop Den Noi Cung Cap Hon Hop!");
  73. for(new i = 0x0; i != sizeof(PositieStup); i++)
  74. {
  75. if(IsPlayerInRangeOfPoint(playerid,2.0,PositieStup[i][0], PositieStup[i][1], PositieStup[i][2]))
  76. {
  77.  
  78. ResetPlayerWeapons(playerid);
  79. SetPlayerAttachedObject(playerid, 1, 1329, 1,0.20,0.36,0.0,0.0,90.0, 0.0, 0.4, 0.3, 0.6);
  80. ApplyAnimation(playerid,"CARRY","crry_prtial",4.0,1,0,0,1,1,1);
  81. switch(random(3))
  82. {
  83. case 0: TransportStup[playerid] = !TransportStup[playerid], Pas[i]--, SendClientMessage(playerid,-1, "Notice : {FFFFFF}Already picked up mixture leads!");
  84. case 1: TransportStup[playerid] = !TransportStup[playerid], Pas[i]--, SendClientMessage(playerid,-1, "Notice : {FFFFFF}Already picked up mixture leads!");
  85.  
  86. }
  87. if(Pas[i] == 0) return SendClientMessage(playerid,-1, "Nhac Nho : {FFFFFF}Dieu Nay Lam Trong {00FF00}Hon Hop.");
  88. format(string,sizeof(string),"{00FF00}Luu Y Lay Hon Hop{FF0000}%d Bang Cach \nNhap{FFFFFF}Chuot Trai",Pas[i]);
  89. Update3DTextLabelText(label[i], 0xFFFFFFFF, string);
  90. break;
  91. }
  92. }
  93. }
  94. return 1;
  95. }
  96.  
  97. //trabajando empieza en lo alto de la construccion
  98. CMD:cungcap(playerid, params[])
  99. {
  100. if(!IsPlayerInRangeOfPoint(playerid,5.0,2675.3425,837.4286,22.2264)) return SendClientMessage(playerid,0xFF444499,"Canh Bao : Ban Khong O Noi Cong Truong!");
  101. if(!TransportStup[playerid]) return SendClientMessage(playerid,-1, "Notice : {FFFFFF}Go to! {00FF00}where are the mixtures.");
  102. GivePlayerCash(playerid, 5000); // <<<<<<<<<<----- Ban Da Nhan Duoc 3000$ Tu Viec Cung Cap Vat Lieu
  103. SendClientMessage(playerid,-1, "May Chu : {FFFFFF}Ban Da Nhan Duoc 5000$");
  104. TransportStup[playerid] = !TransportStup[playerid];
  105. RemovePlayerAttachedObject(playerid,1);
  106. ApplyAnimation(playerid,"CARRY","putdwn",1,0,0,0,0,0);
  107. return 1;
  108. }
  109.  
  110. forward UpdateStup();
  111. public UpdateStup()
  112. {
  113. for(new i = 0x0; i != sizeof(PositieStup); i++)
  114. {
  115. if(Pas[i] == 5) continue;
  116. Pas[i]++;
  117. format(string,sizeof(string),"{00FF00}Hop Hop {FF0000}%d Xay Dung \nBay Gio {FFFFFF}Nhap Chuot Trai De Lay Hon Hop Ay",Pas[i]);
  118. Update3DTextLabelText(label[i], 0xFFFFFFFF, string);
  119. }
  120. }
  121. ////////////////stock for money/////////////////////////
  122. //============[Stock]==========
  123. stock GivePlayerCash(playerid, money)
  124. {
  125. SetPVarInt(playerid, "Cash", GetPVarInt(playerid, "Cash")+money);
  126. GivePlayerMoney(playerid, money);
  127. return 1;
  128. }
  129.  
  130. stock ResetPlayerCash(playerid)
  131. {
  132. SetPVarInt(playerid, "Cash", 5000);
  133. return 1;
  134. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement