Rei_Ayanami

Lazarus

Apr 27th, 2024
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  * Fallout v0.6
  3.  * Copyright (C) 2009 Lazarus
  4.  */
  5.  
  6. #include <a_samp>
  7.  
  8. #define orange 0xF4A419AA
  9. #define yellow 0xFFFF00AA
  10. #define red 0xFF0000AA
  11.  
  12. forward SpawnPlayerClass(playerid);
  13. forward SquareShake(objectid);
  14. forward ResetSpam(playerid);
  15. forward UpdatesUpdate();
  16. forward DecideWinners();
  17. forward StartFalling();
  18. forward SolarFall();
  19. forward CountDown();
  20. forward HackCheck();
  21. forward LoseGame();
  22. forward GMX();
  23.  
  24. enum eInfo
  25. {
  26.     shaketimer[101],
  27.     numberout[101],
  28.     shake[101],
  29.     timer[2],
  30.     count,
  31.     dead,
  32.     join,
  33.     end
  34. }
  35.  
  36. enum pInfo
  37. {
  38.     spamcounter,
  39.     spawned,
  40.     sentold,
  41.     lost,
  42.     sent
  43. }
  44.  
  45. new Info[eInfo];
  46. new PlayerInfo[MAX_PLAYERS][pInfo];
  47.  
  48. main()
  49. {
  50.     print("--------------");
  51.     print(" Fallout v0.6 ");
  52.     print("--------------");
  53. }
  54.  
  55. public OnGameModeInit()
  56. {
  57.     SetGameModeText("Fallout v0.6");
  58.     UsePlayerPedAnims();
  59.     SetWeather(18);
  60.  
  61.     AddPlayerClass(0, 2482.1921, -1660.4783, 161.0000, 269.1425, 0, 0, 0, 0, 0, 0);
  62.  
  63.     GMX();
  64.  
  65.     CreateObject(1697, 2482.1921, -1660.4783, 165.0000, 31.8000, 0.0000, 0.0000);
  66.    
  67.     CreateVehicle(522, 2482.1921 - random(35), -1660.4783 + random(45), 161.0000, random(360), -1, -1, -1);
  68.     CreateVehicle(522, 2482.1921 - random(35), -1660.4783 + random(45), 161.0000, random(360), -1, -1, -1);
  69.  
  70.     SetTimer("UpdatesUpdate", 2000, 1);
  71.     SetTimer("HackCheck", 2000, 1);
  72.     return 1;
  73. }
  74.  
  75. public OnPlayerRequestClass(playerid, classid)
  76. {
  77.     SetTimerEx("SpawnPlayerClass", 1000, 0, "i", playerid);
  78.     return 1;
  79. }
  80.  
  81. public OnPlayerConnect(playerid)
  82. {
  83.     PlayerInfo[playerid][sent] = 1;
  84.     PlayerInfo[playerid][sentold] = 0;
  85.  
  86.     if(Info[count] == 0)
  87.     {
  88.         PlayerInfo[playerid][spawned] = 1;
  89.     }
  90.     else
  91.     {
  92.         PlayerInfo[playerid][spawned] = 0;
  93.     }
  94.  
  95.     new pname[MAX_PLAYER_NAME], string[128];
  96.     GetPlayerName(playerid, pname, sizeof(pname));
  97.     format(string, sizeof(string), "\"%s\" has joined the game", pname);
  98.     SendClientMessageToAll(orange, string);
  99.     return 1;
  100. }
  101.  
  102. public OnPlayerDisconnect(playerid, reason)
  103. {
  104.     new pname[MAX_PLAYER_NAME], string[128];
  105.     GetPlayerName(playerid, pname, sizeof(pname));
  106.  
  107.     switch(reason)
  108.     {
  109.         case 0: format(string, sizeof(string), "\"%s\" has left the game (Timed Out/Crashed)", pname);
  110.         case 1: format(string, sizeof(string), "\"%s\" has left the game (Normal/Voluntary)", pname);
  111.         case 2: format(string, sizeof(string), "\"%s\" has left the game (Kicked/Banned)", pname);
  112.     }
  113.  
  114.     SendClientMessageToAll(orange, string);
  115.     return 1;
  116. }
  117.  
  118. public OnPlayerSpawn(playerid)
  119. {
  120.     if(PlayerInfo[playerid][spawned] == 1)
  121.     {
  122.         SetPlayerCameraPos(playerid, 2417.0642, -1684.6013, 185.3610);
  123.         SetPlayerCameraLookAt(playerid, 2490.0061, -1614.1761, 160.2135);
  124.         SetPlayerPos(playerid, 2482.1921, -1660.4783, 166.0000);
  125.         SetPlayerFacingAngle(playerid, 90);
  126.         TogglePlayerControllable(playerid, 0);
  127.  
  128.         GameTextForPlayer(playerid, "~g~Be patient!~n~A new game will start soon...", 5000, 3);
  129.     }
  130.     else
  131.     {
  132.         SetPlayerPos(playerid, 2482.1921 - random(39), -1660.4783 + random(47), 161.0000);
  133.         SetPlayerFacingAngle(playerid, random(360));
  134.     }
  135.  
  136.     new skinid;
  137.  
  138. start:
  139.     skinid = random(300);
  140.  
  141.     switch(skinid)
  142.     {
  143.         case 3, 4, 5, 6, 7, 8, 42, 65, 74, 86, 119, 149, 208, 268, 273, 289: goto start;
  144.     }
  145.  
  146.     SetPlayerSkin(playerid, skinid);
  147.     return 1;
  148. }
  149.  
  150. public OnPlayerDeath(playerid, killerid, reason)
  151. {
  152.     if(PlayerInfo[playerid][lost] == 0 && Info[end] == 0 && PlayerInfo[playerid][lost] == 0)
  153.     {
  154.         GameTextForPlayer(playerid, "~r~You lose!", 5000, 3);
  155.         PlayerInfo[playerid][lost] = 1;
  156.     }
  157.  
  158.     PlayerInfo[playerid][spawned] = 1;
  159.     return 1;
  160. }
  161.  
  162. public OnPlayerUpdate(playerid)
  163. {
  164.     PlayerInfo[playerid][sent]++;
  165.     return 1;
  166. }
  167.  
  168. public OnPlayerText(playerid, text[])
  169. {
  170.     PlayerInfo[playerid][spamcounter]++;
  171.  
  172.     if(PlayerInfo[playerid][spamcounter] == 1)
  173.     {
  174.         SetTimerEx("ResetSpam", 3000, 0, "i", playerid);
  175.     }
  176.  
  177.     if(PlayerInfo[playerid][spamcounter] == 3 + 1)
  178.     {
  179.         SendClientMessage(playerid, red, "Stop talking so fast! Wait a few seconds, next time it's a kick");
  180.         return 0;
  181.     }
  182.  
  183.     if(PlayerInfo[playerid][spamcounter] == 3 + 2)
  184.     {
  185.         Kick(playerid);
  186.     }
  187.     return 1;
  188. }
  189.  
  190. public SpawnPlayerClass(playerid)
  191. {
  192.     SpawnPlayer(playerid);
  193.     return 1;
  194. }
  195.  
  196. public SquareShake(objectid)
  197. {
  198.     if(objectid == 0)
  199.     {
  200.         return KillTimer(Info[shaketimer][objectid]);
  201.     }
  202.  
  203.     switch(Info[shake][objectid])
  204.     {
  205.         case 0, 5:
  206.         {
  207.             SetObjectRot(objectid, 31.8, 2, 0);
  208.         }
  209.         case 1, 6:
  210.         {
  211.             SetObjectRot(objectid, 33.8, 0, 0);
  212.         }
  213.         case 2, 7:
  214.         {
  215.             SetObjectRot(objectid, 31.8, -2, 0);
  216.         }
  217.         case 3, 8:
  218.         {
  219.             SetObjectRot(objectid, 29.8, 0, 0);
  220.         }
  221.         case 4, 9:
  222.         {
  223.             SetObjectRot(objectid, 31.8, 0, 0);
  224.         }
  225.         case 10:
  226.         {
  227.             new Float:X, Float:Y, Float:Z;
  228.             GetObjectPos(objectid, X, Y, Z);
  229.             MoveObject(objectid, X, Y, Z - 100, 4);
  230.         }
  231.         case 11..99:
  232.         {
  233.            SetObjectRot(objectid, 31.8 - ((Info[shake][objectid] * 2) - 20), 0, 0);
  234.         }
  235.         case 100:
  236.         {
  237.             DestroyObject(objectid);
  238.  
  239.             KillTimer(Info[shaketimer][objectid]);
  240.         }
  241.     }
  242.  
  243.     Info[shake][objectid]++;
  244.     return 1;
  245. }
  246.  
  247. public ResetSpam(playerid)
  248. {
  249.     PlayerInfo[playerid][spamcounter] = 0;
  250.     return 1;
  251. }
  252.  
  253. public UpdatesUpdate()
  254. {
  255.     for(new i = 0; i < MAX_PLAYERS; i++)
  256.     {
  257.         if(PlayerInfo[i][sent] == PlayerInfo[i][sentold])
  258.         {
  259.             PlayerInfo[i][spawned] = 1;
  260.             SpawnPlayer(i);
  261.         }
  262.         PlayerInfo[i][sentold] = PlayerInfo[i][sent];
  263.     }
  264. }
  265.  
  266. public DecideWinners()
  267. {
  268.     SetTimer("GMX", 5000, 0);
  269.  
  270.     Info[end] = 1;
  271.  
  272.     SendClientMessageToAll(yellow, "Winners:");
  273.  
  274.     new pname[MAX_PLAYER_NAME], string[128], winners;
  275.  
  276.     for(new i = 0; i < MAX_PLAYERS; i++)
  277.     {
  278.         if(PlayerInfo[i][lost] == 0 && PlayerInfo[i][spawned] == 0 && IsPlayerConnected(i) == 1)
  279.         {
  280.             winners++;
  281.  
  282.             GetPlayerName(i, pname, sizeof(pname));
  283.             format(string, sizeof(string), "%d) %s", winners, pname);
  284.             SendClientMessageToAll(yellow, string);
  285.  
  286.             SetPlayerScore(i, GetPlayerScore(i) + 1);
  287.         }
  288.     }
  289.  
  290.     if(winners == 0) SendClientMessageToAll(red, "No winners this time!");
  291.     return 1;
  292. }
  293.  
  294. public StartFalling()
  295. {
  296.     Info[timer][0] = SetTimer("SolarFall", 500, 1);
  297.     SetTimer("LoseGame", 500, 1);
  298.     return 1;
  299. }
  300.  
  301. public SolarFall()
  302. {
  303.     new objectid, go;
  304.     for(new i = 0; i < 101; i++) if(Info[numberout][i] == -1) go++;
  305.    
  306.     if(go == 3)
  307.     {
  308.         if(Info[dead] == 0) SetTimer("DecideWinners", 5000, 0);
  309.         KillTimer(Info[timer][0]);
  310.         Info[dead] = 1;
  311.         return 1;
  312.     }
  313.    
  314.     start:
  315.     objectid = random(101);
  316.     if(Info[numberout][objectid] != -1) goto start;
  317.  
  318.     Info[numberout][objectid] = 0;
  319.  
  320.     Info[shaketimer][objectid] = SetTimerEx("SquareShake", 100, 1, "i", objectid);
  321.    
  322.     new alive, connected;
  323.     for(new i = 0; i < MAX_PLAYERS; i++)
  324.     {
  325.         if(IsPlayerConnected(i) == 1) connected++;
  326.         if(IsPlayerConnected(i) == 1 && PlayerInfo[i][spawned] == 0) alive++;
  327.     }
  328.    
  329.     if(alive == 0 && Info[dead] == 0 && connected != 0)
  330.     {
  331.         SetTimer("DecideWinners", 5000, 0);
  332.         Info[dead] = 1;
  333.     }
  334.     return 1;
  335. }
  336.  
  337. public CountDown()
  338. {
  339.     new string[128], number[8];
  340.     string = "~g~ Starting in ~y~";
  341.  
  342.     format(number, sizeof(number), "%d", Info[count]);
  343.     strins(string, number, strlen(string));
  344.     GameTextForAll(string, 1000, 3);
  345.  
  346.     Info[count]--;
  347.     if(Info[count] == 0) KillTimer(Info[timer][1]);
  348.     return 1;
  349. }
  350.  
  351. public HackCheck()
  352. {
  353.     for(new i = 0; i < MAX_PLAYERS; i++)
  354.     {
  355.         new Float:X, Float:Y, Float:Z, string[128], pname[MAX_PLAYER_NAME];
  356.         GetPlayerName(i, pname, sizeof(pname));
  357.         GetPlayerPos(i, X, Y, Z);
  358.  
  359.         if(floatround(Z) >= 168 && IsPlayerConnected(i) == 1)
  360.         {
  361.             format(string, sizeof(string), "\"%s\" has been kicked for air break hacking", pname);
  362.             SendClientMessageToAll(orange, string);
  363.             Kick(i);
  364.         }
  365.  
  366.         if(GetPlayerWeapon(i) != 0 && GetPlayerAmmo(i) != 65535 && IsPlayerConnected(i) == 1)
  367.         {
  368.             format(string, sizeof(string), "\"%s\" has been kicked for weapon hacking", pname);
  369.             SendClientMessageToAll(orange, string);
  370.             Kick(i);
  371.         }
  372.     }
  373.     return 1;
  374. }
  375.  
  376. public LoseGame()
  377. {
  378.     new Float:X, Float:Y, Float:Z;
  379.  
  380.     for(new i = 0; i < MAX_PLAYERS; i++)
  381.     {
  382.         if(PlayerInfo[i][spawned] == 1) continue;
  383.  
  384.         GetPlayerPos(i, X, Y, Z);
  385.  
  386.         if(Z <= 158 && Info[end] == 0 && Info[end] == 0 && PlayerInfo[i][lost] == 0)
  387.         {
  388.             GameTextForPlayer(i, "~r~You lose!", 5000, 3);
  389.             PlayerInfo[i][lost] = 1;
  390.         }
  391.        
  392.         if(Z <= 50 && IsPlayerInAnyVehicle(i) == 1)
  393.         {
  394.             SetPlayerHealth(i, 0);
  395.         }
  396.     }
  397.     return 1;
  398. }
  399.  
  400. public GMX()
  401. {
  402.     for(new i = 0; i < 101; i++)
  403.     {
  404.         DestroyObject(i);
  405.         Info[numberout][i] = -1;
  406.         KillTimer(Info[shaketimer][i]);
  407.         KillTimer(Info[timer][0]);
  408.         Info[shake][i] = 0;
  409.     }
  410.  
  411.     Info[count] = 10;
  412.     Info[dead] = 0;
  413.     Info[end] = 0;
  414.  
  415.     CreateObject(1697, 2482.1921, -1660.4783, 160.0000, 31.8000, 0.0000, 0.0000);
  416.     CreateObject(1697, 2477.7395, -1660.4783, 160.0000, 31.8000, 0.0000, 0.0000);
  417.     CreateObject(1697, 2473.2869, -1660.4783, 160.0000, 31.8000, 0.0000, 0.0000);
  418.     CreateObject(1697, 2468.8343, -1660.4783, 160.0000, 31.8000, 0.0000, 0.0000);
  419.     CreateObject(1697, 2464.3817, -1660.4783, 160.0000, 31.8000, 0.0000, 0.0000);
  420.     CreateObject(1697, 2459.9291, -1660.4783, 160.0000, 31.8000, 0.0000, 0.0000);
  421.     CreateObject(1697, 2455.4765, -1660.4783, 160.0000, 31.8000, 0.0000, 0.0000);
  422.     CreateObject(1697, 2451.0239, -1660.4783, 160.0000, 31.8000, 0.0000, 0.0000);
  423.     CreateObject(1697, 2446.5713, -1660.4783, 160.0000, 31.8000, 0.0000, 0.0000);
  424.     CreateObject(1697, 2442.1187, -1660.4783, 160.0000, 31.8000, 0.0000, 0.0000);
  425.     CreateObject(1697, 2482.1921, -1655.1112, 160.0000, 31.8000, 0.0000, 0.0000);
  426.     CreateObject(1697, 2477.7395, -1655.1112, 160.0000, 31.8000, 0.0000, 0.0000);
  427.     CreateObject(1697, 2473.2869, -1655.1112, 160.0000, 31.8000, 0.0000, 0.0000);
  428.     CreateObject(1697, 2468.8343, -1655.1112, 160.0000, 31.8000, 0.0000, 0.0000);
  429.     CreateObject(1697, 2464.3817, -1655.1112, 160.0000, 31.8000, 0.0000, 0.0000);
  430.     CreateObject(1697, 2459.9291, -1655.1112, 160.0000, 31.8000, 0.0000, 0.0000);
  431.     CreateObject(1697, 2455.4765, -1655.1112, 160.0000, 31.8000, 0.0000, 0.0000);
  432.     CreateObject(1697, 2451.0239, -1655.1112, 160.0000, 31.8000, 0.0000, 0.0000);
  433.     CreateObject(1697, 2446.5713, -1655.1112, 160.0000, 31.8000, 0.0000, 0.0000);
  434.     CreateObject(1697, 2442.1187, -1655.1112, 160.0000, 31.8000, 0.0000, 0.0000);
  435.     CreateObject(1697, 2482.1921, -1649.7442, 160.0000, 31.8000, 0.0000, 0.0000);
  436.     CreateObject(1697, 2477.7395, -1649.7442, 160.0000, 31.8000, 0.0000, 0.0000);
  437.     CreateObject(1697, 2473.2869, -1649.7442, 160.0000, 31.8000, 0.0000, 0.0000);
  438.     CreateObject(1697, 2468.8343, -1649.7442, 160.0000, 31.8000, 0.0000, 0.0000);
  439.     CreateObject(1697, 2464.3817, -1649.7442, 160.0000, 31.8000, 0.0000, 0.0000);
  440.     CreateObject(1697, 2459.9291, -1649.7442, 160.0000, 31.8000, 0.0000, 0.0000);
  441.     CreateObject(1697, 2455.4765, -1649.7442, 160.0000, 31.8000, 0.0000, 0.0000);
  442.     CreateObject(1697, 2451.0239, -1649.7442, 160.0000, 31.8000, 0.0000, 0.0000);
  443.     CreateObject(1697, 2446.5713, -1649.7442, 160.0000, 31.8000, 0.0000, 0.0000);
  444.     CreateObject(1697, 2442.1187, -1649.7442, 160.0000, 31.8000, 0.0000, 0.0000);
  445.     CreateObject(1697, 2482.1921, -1644.3772, 160.0000, 31.8000, 0.0000, 0.0000);
  446.     CreateObject(1697, 2477.7395, -1644.3772, 160.0000, 31.8000, 0.0000, 0.0000);
  447.     CreateObject(1697, 2473.2869, -1644.3772, 160.0000, 31.8000, 0.0000, 0.0000);
  448.     CreateObject(1697, 2468.8343, -1644.3772, 160.0000, 31.8000, 0.0000, 0.0000);
  449.     CreateObject(1697, 2464.3817, -1644.3772, 160.0000, 31.8000, 0.0000, 0.0000);
  450.     CreateObject(1697, 2459.9291, -1644.3772, 160.0000, 31.8000, 0.0000, 0.0000);
  451.     CreateObject(1697, 2455.4765, -1644.3772, 160.0000, 31.8000, 0.0000, 0.0000);
  452.     CreateObject(1697, 2451.0239, -1644.3772, 160.0000, 31.8000, 0.0000, 0.0000);
  453.     CreateObject(1697, 2446.5713, -1644.3772, 160.0000, 31.8000, 0.0000, 0.0000);
  454.     CreateObject(1697, 2442.1187, -1644.3772, 160.0000, 31.8000, 0.0000, 0.0000);
  455.     CreateObject(1697, 2482.1921, -1639.0102, 160.0000, 31.8000, 0.0000, 0.0000);
  456.     CreateObject(1697, 2477.7395, -1639.0102, 160.0000, 31.8000, 0.0000, 0.0000);
  457.     CreateObject(1697, 2473.2869, -1639.0102, 160.0000, 31.8000, 0.0000, 0.0000);
  458.     CreateObject(1697, 2468.8343, -1639.0102, 160.0000, 31.8000, 0.0000, 0.0000);
  459.     CreateObject(1697, 2464.3817, -1639.0102, 160.0000, 31.8000, 0.0000, 0.0000);
  460.     CreateObject(1697, 2459.9291, -1639.0102, 160.0000, 31.8000, 0.0000, 0.0000);
  461.     CreateObject(1697, 2455.4765, -1639.0102, 160.0000, 31.8000, 0.0000, 0.0000);
  462.     CreateObject(1697, 2451.0239, -1639.0102, 160.0000, 31.8000, 0.0000, 0.0000);
  463.     CreateObject(1697, 2446.5713, -1639.0102, 160.0000, 31.8000, 0.0000, 0.0000);
  464.     CreateObject(1697, 2442.1187, -1639.0102, 160.0000, 31.8000, 0.0000, 0.0000);
  465.     CreateObject(1697, 2482.1921, -1633.6432, 160.0000, 31.8000, 0.0000, 0.0000);
  466.     CreateObject(1697, 2477.7395, -1633.6432, 160.0000, 31.8000, 0.0000, 0.0000);
  467.     CreateObject(1697, 2473.2869, -1633.6432, 160.0000, 31.8000, 0.0000, 0.0000);
  468.     CreateObject(1697, 2468.8343, -1633.6432, 160.0000, 31.8000, 0.0000, 0.0000);
  469.     CreateObject(1697, 2464.3817, -1633.6432, 160.0000, 31.8000, 0.0000, 0.0000);
  470.     CreateObject(1697, 2459.9291, -1633.6432, 160.0000, 31.8000, 0.0000, 0.0000);
  471.     CreateObject(1697, 2455.4765, -1633.6432, 160.0000, 31.8000, 0.0000, 0.0000);
  472.     CreateObject(1697, 2451.0239, -1633.6432, 160.0000, 31.8000, 0.0000, 0.0000);
  473.     CreateObject(1697, 2446.5713, -1633.6432, 160.0000, 31.8000, 0.0000, 0.0000);
  474.     CreateObject(1697, 2442.1187, -1633.6432, 160.0000, 31.8000, 0.0000, 0.0000);
  475.     CreateObject(1697, 2482.1921, -1628.2762, 160.0000, 31.8000, 0.0000, 0.0000);
  476.     CreateObject(1697, 2477.7395, -1628.2762, 160.0000, 31.8000, 0.0000, 0.0000);
  477.     CreateObject(1697, 2473.2869, -1628.2762, 160.0000, 31.8000, 0.0000, 0.0000);
  478.     CreateObject(1697, 2468.8343, -1628.2762, 160.0000, 31.8000, 0.0000, 0.0000);
  479.     CreateObject(1697, 2464.3817, -1628.2762, 160.0000, 31.8000, 0.0000, 0.0000);
  480.     CreateObject(1697, 2459.9291, -1628.2762, 160.0000, 31.8000, 0.0000, 0.0000);
  481.     CreateObject(1697, 2455.4765, -1628.2762, 160.0000, 31.8000, 0.0000, 0.0000);
  482.     CreateObject(1697, 2451.0239, -1628.2762, 160.0000, 31.8000, 0.0000, 0.0000);
  483.     CreateObject(1697, 2446.5713, -1628.2762, 160.0000, 31.8000, 0.0000, 0.0000);
  484.     CreateObject(1697, 2442.1187, -1628.2762, 160.0000, 31.8000, 0.0000, 0.0000);
  485.     CreateObject(1697, 2482.1921, -1622.9092, 160.0000, 31.8000, 0.0000, 0.0000);
  486.     CreateObject(1697, 2477.7395, -1622.9092, 160.0000, 31.8000, 0.0000, 0.0000);
  487.     CreateObject(1697, 2473.2869, -1622.9092, 160.0000, 31.8000, 0.0000, 0.0000);
  488.     CreateObject(1697, 2468.8343, -1622.9092, 160.0000, 31.8000, 0.0000, 0.0000);
  489.     CreateObject(1697, 2464.3817, -1622.9092, 160.0000, 31.8000, 0.0000, 0.0000);
  490.     CreateObject(1697, 2459.9291, -1622.9092, 160.0000, 31.8000, 0.0000, 0.0000);
  491.     CreateObject(1697, 2455.4765, -1622.9092, 160.0000, 31.8000, 0.0000, 0.0000);
  492.     CreateObject(1697, 2451.0239, -1622.9092, 160.0000, 31.8000, 0.0000, 0.0000);
  493.     CreateObject(1697, 2446.5713, -1622.9092, 160.0000, 31.8000, 0.0000, 0.0000);
  494.     CreateObject(1697, 2442.1187, -1622.9092, 160.0000, 31.8000, 0.0000, 0.0000);
  495.     CreateObject(1697, 2482.1921, -1617.5422, 160.0000, 31.8000, 0.0000, 0.0000);
  496.     CreateObject(1697, 2477.7395, -1617.5422, 160.0000, 31.8000, 0.0000, 0.0000);
  497.     CreateObject(1697, 2473.2869, -1617.5422, 160.0000, 31.8000, 0.0000, 0.0000);
  498.     CreateObject(1697, 2468.8343, -1617.5422, 160.0000, 31.8000, 0.0000, 0.0000);
  499.     CreateObject(1697, 2464.3817, -1617.5422, 160.0000, 31.8000, 0.0000, 0.0000);
  500.     CreateObject(1697, 2459.9291, -1617.5422, 160.0000, 31.8000, 0.0000, 0.0000);
  501.     CreateObject(1697, 2455.4765, -1617.5422, 160.0000, 31.8000, 0.0000, 0.0000);
  502.     CreateObject(1697, 2451.0239, -1617.5422, 160.0000, 31.8000, 0.0000, 0.0000);
  503.     CreateObject(1697, 2446.5713, -1617.5422, 160.0000, 31.8000, 0.0000, 0.0000);
  504.     CreateObject(1697, 2442.1187, -1617.5422, 160.0000, 31.8000, 0.0000, 0.0000);
  505.     CreateObject(1697, 2482.1921, -1612.1752, 160.0000, 31.8000, 0.0000, 0.0000);
  506.     CreateObject(1697, 2477.7395, -1612.1752, 160.0000, 31.8000, 0.0000, 0.0000);
  507.     CreateObject(1697, 2473.2869, -1612.1752, 160.0000, 31.8000, 0.0000, 0.0000);
  508.     CreateObject(1697, 2468.8343, -1612.1752, 160.0000, 31.8000, 0.0000, 0.0000);
  509.     CreateObject(1697, 2464.3817, -1612.1752, 160.0000, 31.8000, 0.0000, 0.0000);
  510.     CreateObject(1697, 2459.9291, -1612.1752, 160.0000, 31.8000, 0.0000, 0.0000);
  511.     CreateObject(1697, 2455.4765, -1612.1752, 160.0000, 31.8000, 0.0000, 0.0000);
  512.     CreateObject(1697, 2451.0239, -1612.1752, 160.0000, 31.8000, 0.0000, 0.0000);
  513.     CreateObject(1697, 2446.5713, -1612.1752, 160.0000, 31.8000, 0.0000, 0.0000);
  514.     CreateObject(1697, 2442.1187, -1612.1752, 160.0000, 31.8000, 0.0000, 0.0000);
  515.    
  516.     for(new i = 0; i < MAX_PLAYERS; i++)
  517.     {
  518.         PlayerInfo[i][lost] = 0;
  519.         PlayerInfo[i][sent] = 1;
  520.         PlayerInfo[i][sentold] = 0;
  521.         PlayerInfo[i][spawned] = 0;
  522.         SetPlayerHealth(i, 100);
  523.         SpawnPlayer(i);
  524.     }
  525.    
  526.     for(new i = 0; i < 2; i++) SetVehicleToRespawn(i);
  527.    
  528.     Info[timer][1] = SetTimer("CountDown", 1000, 1);
  529.     SetTimer("StartFalling", 10000, 0);
  530.    
  531.     new string[128], hour, minute, second;
  532.     gettime(hour, minute, second);
  533.    
  534.     format(string, sizeof(string), "A new game has started - %d:%d:%d", hour, minute, second);
  535.     SendClientMessageToAll(orange, string);
  536.     return 1;
  537. }
Add Comment
Please, Sign In to add comment