Guest User

Death Match system by PabloDiCostanzo

a guest
Apr 9th, 2013
454
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 10.63 KB | None | 0 0
  1. //º    º                                                               º    º  Made by PabloDiCostanzo
  2. //º    º  MM:::::8888M:::::::88::::::::8:::::888888:::M:::::M          º    º  This GameMode has copyright
  3. //º    º  8M:::::888MM::::::::8:::::::::::M::::8888::::M::::M          º    º  Downloading this, or using this
  4. //º    º  8M:::::88:M::::::::::8:::::::::::M:::8888::::::M::M          º    º  You accept all the terms I give
  5. //º    º  8MM:::888:M:::::::::::::::::::::::M:8888:::::::::M:          º    º  *Chaning something from here
  6. //º    º  88M:::88::M:::::::::::::::::::::::MM:88::::::::::::M         º    º   isn`t allowed
  7. //º    º  88M:::88::M::::::::::*88*::::::::::M:88::::::::::::::M       º    º   * Breacking this I have
  8. //º    º  88M:::88::M:::::::::88@@88:::::::::M::88::::::::::::::M      º    º   the right to make a
  9. //º    º  88MM::88::MM::::::::88@@88:::::::::M:::8::::::::::::::*8     º    º   Demeial Of service (DDOS)
  10. //º    º   88M:::8::MM:::::::::*88*::::::::::M:::::::::::::::::88@@    º    º
  11. //º    º  88 MM::::::MM:::::::::::::::::::::MM:::::::::::::::::88@@    º    º
  12. //º    º 888  M:::::::MM:::::::::::::::::::MM::M::::::::::::::::*8     º    º   All reserved under my name
  13. //º    º 88   MM:::::::MMM::::::::::::::::MM:::MM:::::::::::::::M      º    º   PabloDiCostanzo / [RH]Pablo
  14. //º    º 8     M::::::::MMMM:::::::::::MMMM:::::MM::::::::::::MM       º    º   / Pablito.
  15. //º    º 88    MM:::::::::MMMMMMMMMMMMMMM::::::::MMM::::::::MMM        º    º
  16. //º    º  88    MM::::::::::::MMMMMMM::::::::::::::MMMMMMMMMM          º    º
  17. //º    º   88   8MM::::::::::::::::::::::::::::::::::MMMMMM            º    º
  18. //º    º    8   88MM::::::::::::::::::::::M:::M::::::::MM              º    º   Enjoy!
  19. //º    º        888MM::::::::::::::::::MM::::::MM::::::MM              º    º
  20. //º    º       88888MM:::::::::::::::MMM:::::::mM:::::MM               º    º
  21. //º    º       888888MM:::::::::::::MMM:::::::::MMM:::M                º    º
  22. //º    º      88888888MM:::::::::::MMM:::::::::::MM:::M                º    º
  23. //º    º     88 8888888M:::::::::MMM::::::::::::::M:::M                º    º
  24. //º    º     8  888888 M:::::::MM:::::::::::::::::M:::M:               º    º
  25. //º    º        888888 M::::::M:::::::::::::::::::M:::MM               º    º
  26. //º    º       888888  M:::::M::::::::::::::::::::::::M:M              º    º
  27. //º    º       888888  M:::::M:::::::::@::::::::::::::M::M             º    º
  28. //º    º       88888   M::::::::::::::@@:::::::::::::::M::M            º    º
  29. //º    º      88888   M::::::::::::::@@@::::::::::::::::M::M           º    º
  30. //º    º     88888   M:::::::::::::::@@::::::::::::::::::M::M          º    º
  31. //º    º    88888   M:::::m::::::::::@::::::::::Mm:::::::M:::M         º    º
  32. //º    º    8888   M:::::M:::::::::::::::::::::::MM:::::::M:::M        º    º
  33. //º    º   8888   M:::::M:::::::::::::::::::::::MMM::::::::M:::M       º    º
  34. //º    º  888    M:::::Mm::::::::::::::::::::::MMM:::::::::M::::M      º    º
  35. //º    º        M:::::M::::::::::::::::::::MMM::::::::::::M::mm:::M    º    º
  36. //º    º       MM:::::::::::::::::::::::::MM:::::::::::::mM::MM:::M:   º    º
  37. //º    º      MM::::::m:::::::::::::::::::::::::::::::::::M::MM:::MM   º    º
  38. //º    º      M::::::::M:::::::::::::::::::::::::::::::::::M::M:::MM   º    º
  39. //º    º     MM:::::::::M:::::::::::::M:::::::::::::::::::::M:M:::MM   º    º
  40. //º    º     M:::::::::::M88:::::::::M:::::::::::::::::::::::MM::MMM   º    º
  41. //º    º     M::::::::::::8888888888M::::::::::::::::::::::::MM::MM    º    º
  42. //º    º     M:::::::::::::88888888M:::::::::::::::::::::::::M::MM     º    º
  43. //º    º     M::::::::::::::888888M:::::::::::::::::::::::::M::MM      º    º
  44. //º    º     M:::::::::::::::88888M:::::::::::::::::::::::::M:MM       º    º
  45. //º    º     M:::::::::::::::::88M::::::::::::::::::::::::::MMM        º    º
  46. //º    º     M:::::::::::::::::::M::::::::::::::::::::::::::MMM        º    º
  47. //º    º     MM:::::::::::::::::M::::::::::::::::::::::::::MMM         º    º
  48. //º    º      M:::::::::::::::::M::::::::::::::::::::::::::MMM         º    º
  49. //º    º      MM:::::::::::::::M::::::::::::::::::::::::::MMM          º    º
  50. //º    º       M:::::::::::::::M:::::::::::::::::::::::::MMM           º    º
  51. //º    º       MM:::::::::::::M:::::::::::::::::::::::::MMM            º    º
  52. //º    º        M:::::::::::::M::::::::::::::::::::::::MMM             º    º
  53. //º    º         M:::::::::::M:::::::::::::::::::::::MMM               º    º
  54. //º    º         MM:::::::::M:::::::::::::::::::::::MMM                º    º
  55. //º    º          M:::::::::M::::::::::::::::::::::MMM                 º    º
  56. //º    º          MM:::::::M::::::::::::::::::::::MMM                  º    º
  57. //º    º           MM::::::M:::::::::::::::::::::MMM                   º    º
  58. //º    º           MM:::::M:::::::::::::::::::::MMM                    º    º
  59. //º    º            MM::::M::::::::::::::::::::MMM                     º    º
  60. //º    º            MM:::M::::::::::::::::::::MMM                      º    º
  61. //º    º             MM::M:::::::::::::::::::MMM                       º    º
  62. //º    º             MM:M:::::::::::::::::::MMM                        º    º
  63. //º    º              MMM::::::::::::::::::MMM                         º    º
  64. //º    º               MM::::::::::::::::::MMM                         º    º
  65. //º    º                M:::::::::::::::::MMM                          º    º
  66. //º    º                MM::::::::::::::::MMM                          º    º
  67. //º    º                MM:::::::::::::::MMM                           º    º
  68. //º    º                MM::::M:::::::::MMM:                           º    º
  69. //º    º                mMM::::MM:::::::MMMM                           º    º
  70. //º    º                 MMM:::::::::::MMM:M                           º    º
  71. //º    º                  MM::MMMM:::::::M:M                           º    º
  72. //º    º                  MM::MMM::::::::M:M                           º    º
  73. //º    º                   MM::MM:::::::::M:M                          º    º
  74. //º    º                   MM::MM::::::::::M:m                         º    º
  75. //º    º                   MMM:::::::::::::::M:                        º    º
  76. //º    º                   MMM:::::::::::::::M::                       º    º
  77. //º    º                   mMM:::M::::::::::::M:                       º    º
  78. //º    º                   MMM::::::::::::::::Mn                       º    º
  79. //º    º                   MMM::::::::::::::::MN                       º    º
  80. //º    º                                                               º    º
  81.  
  82.  
  83.  
  84.  
  85. #include <a_samp>
  86. #include <zcmd>
  87.  
  88. //*Define
  89.  
  90. #define LIGHTGREEN   0x38FF06FF
  91. #define LIGHTBLUE2   0xF6BB0AA
  92. #define LIGHTBLUE    0x0BBF6AA
  93. #define COLOR_GREEN  0x33AA33AA
  94. #define COLOR_PINK   0xFF66FFAA
  95. #define COLOR_BLUE   0x0000BBAA
  96. #define COLOR_PURPLE 0x800080AA
  97. #define COLOR_BLACK  0x000000AA
  98. #define COLOR_WHITE  0xFFFFFFAA
  99. #define COLOR_GREEN1 0x33AA33AA
  100. #define COLOR_BROWN  0xA52A2AAA
  101. #define blue         0x375FFFFF
  102. #define BlueMsg      0x0BBF6AA
  103. #define white        0xFFFFFFAA
  104. #define red          0xFF0000AA
  105. #define lightred     0xFB0000AA
  106. #define green        0x33FF33AA
  107. #define yellow       0xFFFF00AA
  108. #define grey         0xC0C0C0AA
  109. #define Green1       0x129E12FF
  110. #define Green2       0x53D212FF
  111. #define blue1        0x2641FEAA
  112. #define orange       0xFF9900AA
  113. #define black        0x2C2727AA
  114. #define COLOR_CYAN   0x40FFFFFF
  115. #define COLOR_DEADCONNECT 0x808080AA
  116.  
  117. new InDM[MAX_PLAYERS];
  118. new Dead[MAX_PLAYERS];
  119. new DmID[MAX_PLAYERS];
  120.  
  121. public OnFilterScriptInit()
  122. {
  123.         print("------------------------------------------------------");
  124.         print("Death Mtach system by Pablo");
  125.         print("------------------------------------------------------");
  126. }
  127.  
  128. public OnFilterScriptExit()
  129. {
  130.     print("-------------------------------------------------");
  131.         print("Death Match system by PabloDiCostanzo unloaded");
  132.         print("--------------------------------------------------");
  133. }
  134.  
  135. public OnPlayerConnect(playerid)
  136. {
  137.         InDM[playerid] = 0;
  138.         DmID[playerid] = 0;
  139. }
  140.  
  141. public OnPlayerDeath(playerid, killerid)
  142. {
  143.         SetPlayerHealth(killerid, 100);
  144.         SetPlayerArmour(killerid, 100);
  145.         SendClientMessage(killerid, 0xC0C0C0AA, "You killed some one, you have all your health/armour full again");
  146.  
  147.         Dead[playerid] = 1;
  148.         return 1;
  149. }
  150.  
  151. public OnPlayerSpawn(playerid)
  152. {
  153.     if(Dead[playerid] == 1 && DmID[playerid] == 1)
  154.     {
  155.         SetPlayerInterior(playerid, 1);
  156.         SetPlayerPos(playerid, 1412.639892, -1.787510, 1000.924377);
  157.         SetPlayerVirtualWorld(playerid, 1);
  158.         Dead[playerid] = 0;
  159.         SendClientMessage(playerid, 0x808080AA, "SERVER: Position updates succesfully you are now in the death match arena");
  160.     }
  161.     return 1;
  162. }
  163.  
  164. CMD:dm(playerid, params[])
  165. {
  166.         InDM[playerid] = 1;
  167.         DmID[playerid] = 1;
  168.  
  169.         GameTextForPlayer(playerid, "~k~ Welcome to ~r~D~r~M", 2000, 6);
  170.         SetPlayerInterior(playerid, 1);
  171.         SetPlayerPos(playerid, 1412.639892, -1.787510, 1000.924377);
  172.         SetPlayerVirtualWorld(playerid, 1);
  173.  
  174.         ResetPlayerWeapons(playerid);
  175.         SetPlayerSkin(playerid, 197);
  176.         SetPlayerHealth(playerid, 100);
  177.         SetPlayerArmour(playerid, 100);
  178.         GivePlayerWeapon(playerid, 1 , cellmax);
  179.         GivePlayerWeapon(playerid, 4, cellmax);
  180.         GivePlayerWeapon(playerid, 24, cellmax);
  181.         GivePlayerWeapon(playerid, 25, cellmax);
  182.         GivePlayerWeapon(playerid, 29, cellmax);
  183.         GivePlayerWeapon(playerid, 31, cellmax);
  184.  
  185.         new str[36+MAX_PLAYER_NAME], name[MAX_PLAYER_NAME];
  186.         GetPlayerName(playerid, name, sizeof(name));
  187.         format(str, sizeof(str), "SYSTEM: Our system has detected that %s is in /dm", name, playerid);
  188.         SendClientMessageToAll(0x38FF06FF, str);
  189.         return 1;
  190. }
  191.  
  192.  
  193. CMD:leavedm(playerid, params[])
  194. {
  195.     if (InDM[playerid] == 1)
  196.     {
  197.             GameTextForPlayer(playerid, "~w~You leaved ~r~D~r~M", 2000, 6);
  198.             ResetPlayerWeapons(playerid);
  199.             SetPlayerArmour(playerid, 0);
  200.         SetPlayerVirtualWorld(playerid, 0);
  201.         SetPlayerInterior(playerid,0);
  202.         SpawnPlayer(playerid);
  203.         InDM[playerid] = 0;
  204.         DmID[playerid] = 0;
  205.         SendClientMessage(playerid, 0x808080AA, "SERVER: Position updates succesfully you are not more in death match arena");
  206.     }
  207.     else
  208.     {
  209.         return SendClientMessage(playerid,  0xFF0000AA, "ERROR: You are not in death match arena ");
  210.     }
  211.     return 1;
  212. }
Advertisement
Add Comment
Please, Sign In to add comment