Guest User

Untitled

a guest
Jul 20th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.83 KB | None | 0 0
  1. antimoney antihealth not working and tell me about score explain it to me
  2.  
  3. i mean how much score it willl give and explain this
  4.  
  5. for(new i=0;i<MAX_PLAYERS;i++))
  6.  
  7.  
  8.  
  9.  
  10. // This is a comment
  11. // uncomment the line below if you want to write a filterscript
  12. //#define FILTERSCRIPT
  13.  
  14. #include < a_samp >
  15.  
  16. #define TEAM_ZOMBIES 1
  17. #define TEAM_HUMANS 2
  18. #define TEAM_ZOMBIES_COLOR 0x00FF00AA // Bright Green (in RGBA format)
  19. #define TEAM_HUMANS_COLOR 0xFF00FFAA // Bright Purple
  20. #define VERSION "v1.1"
  21. #define DEVELOPER "Bhupesh Yadav"
  22. #define SOFFICIALNAME "Black Zombie World TDM"
  23. #undef MAX_PLAYERS
  24. #define MAX_PLAYERS 100
  25.  
  26.  
  27.  
  28. new gTeam [MAX_PLAYERS];
  29. new Score[MAX_PLAYERS];
  30.  
  31.  
  32.  
  33. //Forwards....
  34. forward antihealth(playerid);
  35. forward SetScore();
  36. forward antimoney(playerid);
  37.  
  38.  
  39.  
  40. main()
  41. {
  42. printf("Version : %s | Developer : %s ", VERSION,DEVELOPER);
  43. printf(" Server Name : %s By Developer : %s has been started",SOFFICIALNAME,DEVELOPER);
  44. }
  45.  
  46. public OnGameModeInit()
  47. {
  48. // Don't use these lines if it's a filterscript
  49. SetGameModeText(" Black Zombie World TDM");
  50. UsePlayerPedAnims();
  51.  
  52. SetTimer(" antihealth", 10000, true);
  53. SetTimer (" antimoney", 10000, true);
  54.  
  55. AddPlayerClass(162,2469.7866,-1692.7161,243.3932,1.2240,0,0,0,0,0,0);
  56. AddPlayerClass(285,2559.3259,-1648.7723,243.3932,183.5961,0,0,0,0,0,0);
  57. return 1;
  58. }
  59.  
  60. public OnGameModeExit()
  61. {
  62. return 1;
  63. }
  64.  
  65. public OnPlayerRequestClass(playerid, classid)
  66. {
  67.  
  68. SetPlayerPos(playerid, -1959.4025,700.4174,46.5625);
  69. SetPlayerCameraPos(playerid, -1958.2029,711.0995,53.6375);
  70. SetPlayerCameraLookAt(playerid, -1959.4025,700.4174,46.5625);
  71. SetPlayerFacingAngle(playerid,357.4232);
  72.  
  73. SetPlayerTeamFromClass(playerid, classid);
  74.  
  75. return 1;
  76. }
  77.  
  78. public OnPlayerConnect(playerid)
  79. {
  80. return 1;
  81. }
  82.  
  83. public OnPlayerDisconnect(playerid, reason)
  84. {
  85. return 1;
  86. }
  87.  
  88. public OnPlayerSpawn(playerid)
  89. {
  90. if (gTeam[playerid] == TEAM_ZOMBIES)
  91. {
  92. SetPlayerPos(playerid, 2516.8049,-1686.8934,17.0275);
  93. }
  94. else if (gTeam[playerid] == TEAM_HUMANS)
  95. {
  96. SetPlayerPos(playerid, 2511.4084,-1651.8239,13.8696);
  97. }
  98.  
  99. if (gTeam[playerid] == TEAM_ZOMBIES)
  100. {
  101. GivePlayerWeapon(playerid, 10, 1000);
  102. }
  103. else if (gTeam[playerid] == TEAM_HUMANS)
  104. {
  105. GivePlayerWeapon(playerid, 12, 1200);
  106. }
  107.  
  108. SetPlayerToTeamColor (playerid);
  109.  
  110.  
  111.  
  112. return 1;
  113. }
  114.  
  115. public OnPlayerDeath(playerid, killerid, reason)
  116. {
  117.  
  118. return 1;
  119. }
  120.  
  121. public OnVehicleSpawn(vehicleid)
  122. {
  123. return 1;
  124. }
  125.  
  126. public OnVehicleDeath(vehicleid, killerid)
  127. {
  128. return 1;
  129. }
  130.  
  131. public OnPlayerText(playerid, text[])
  132. {
  133. return 1;
  134. }
  135.  
  136. public OnPlayerCommandText(playerid, cmdtext[])
  137. {
  138. if (strcmp("/kill", cmdtext, true, 10) == 0)
  139. {
  140. SetPlayerHealth ( playerid , 0 ) ;
  141. return 1;
  142. }
  143.  
  144. if(strcmp("/ehcash", cmdtext, true, 10) == 0)
  145. {
  146. GivePlayerMoney(playerid, 1000000);
  147. return 1;
  148. }
  149.  
  150. return 0;
  151. }
  152.  
  153. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  154. {
  155. return 1;
  156. }
  157.  
  158. public OnPlayerExitVehicle(playerid, vehicleid)
  159. {
  160. return 1;
  161. }
  162.  
  163. public OnPlayerStateChange(playerid, newstate, oldstate)
  164. {
  165. return 1;
  166. }
  167.  
  168. public OnPlayerEnterCheckpoint(playerid)
  169. {
  170. return 1;
  171. }
  172.  
  173. public OnPlayerLeaveCheckpoint(playerid)
  174. {
  175. return 1;
  176. }
  177.  
  178.  
  179. public OnPlayerRequestSpawn(playerid)
  180. {
  181. return 1;
  182. }
  183.  
  184. public OnObjectMoved(objectid)
  185. {
  186. return 1;
  187. }
  188.  
  189. public OnPlayerObjectMoved(playerid, objectid)
  190. {
  191. return 1;
  192. }
  193.  
  194. public OnPlayerPickUpPickup(playerid, pickupid)
  195. {
  196. return 1;
  197. }
  198.  
  199. public OnVehicleMod(playerid, vehicleid, componentid)
  200. {
  201. return 1;
  202. }
  203.  
  204. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  205. {
  206. return 1;
  207. }
  208.  
  209. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  210. {
  211. return 1;
  212. }
  213.  
  214. public OnPlayerSelectedMenuRow(playerid, row)
  215. {
  216. return 1;
  217. }
  218.  
  219. public OnPlayerExitedMenu(playerid)
  220. {
  221. return 1;
  222. }
  223.  
  224. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  225. {
  226. return 1;
  227. }
  228.  
  229. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  230. {
  231. return 1;
  232. }
  233.  
  234. public OnRconLoginAttempt(ip[], password[], success)
  235. {
  236. return 1;
  237. }
  238.  
  239. public OnPlayerUpdate(playerid)
  240. {
  241. return 1;
  242. }
  243.  
  244. public OnPlayerStreamIn(playerid, forplayerid)
  245. {
  246. return 1;
  247. }
  248.  
  249. public OnPlayerStreamOut(playerid, forplayerid)
  250. {
  251. return 1;
  252. }
  253.  
  254. public OnVehicleStreamIn(vehicleid, forplayerid)
  255. {
  256. return 1;
  257. }
  258.  
  259. public OnVehicleStreamOut(vehicleid, forplayerid)
  260. {
  261. return 1;
  262. }
  263.  
  264. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  265. {
  266. return 1;
  267. }
  268.  
  269. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  270. {
  271. new Float:x, Float:y, Float:z;
  272. GetPlayerPos(clickedplayerid, x,y,z);
  273. SetPlayerPos(playerid, x,y,z);
  274. return 1;
  275. }
  276.  
  277. stock SetPlayerTeamFromClass(playerid, classid)
  278. {
  279. if (classid == 0)
  280. {
  281. GameTextForPlayer(playerid,"~r~ Zombie Eat Human Brains",3000,3);
  282. gTeam[playerid] = TEAM_ZOMBIES;
  283. }
  284. else
  285. {
  286. gTeam[playerid] = TEAM_HUMANS;
  287. GameTextForPlayer(playerid,"~b~ Humans Kill Zombies",1000,3);
  288. }
  289. }
  290.  
  291. stock SetPlayerToTeamColor(playerid)
  292. {
  293. if (gTeam[playerid] == TEAM_ZOMBIES)
  294. {
  295. SetPlayerColor(playerid, TEAM_ZOMBIES_COLOR);
  296. }
  297. else if (gTeam[playerid] == TEAM_HUMANS)
  298. {
  299. SetPlayerColor(playerid, TEAM_HUMANS_COLOR);
  300. }
  301. }
  302.  
  303.  
  304. public antihealth(playerid)
  305. {
  306. new Float:health;
  307. GetPlayerHealth (playerid, health);
  308. if ( health > 100)
  309. {
  310. Ban (playerid);
  311. }
  312. return 1;
  313. }
  314.  
  315. public SetScore()
  316. {
  317. for(new i=0;i<MAX_PLAYERS;i++)
  318. {
  319. Score[i]=GetPlayerMoney(i);
  320. SetPlayerScore(i, Score[i]);
  321. printf("All player's has been gives Score = %s.", Score[i]);
  322. }
  323. return 1;
  324. }
  325.  
  326. public antimoney(playerid)
  327. {
  328. new playermoney;
  329. playermoney = GetPlayerMoney(playerid);
  330. if ( playermoney < 100000)
  331. {
  332. Ban(playerid);
  333. printf("The Player with ID %s has been banned for money hack",playerid);
  334. }
  335. return 1;
  336. }
Add Comment
Please, Sign In to add comment