Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <audio>
- main()
- {
- print("\n");
- print(" Gustavo Borba - prjZombie.");
- print("\n");
- }
- public OnGameModeInit()
- {
- // Audio
- Audio_SetPack("default_pack", true);
- SetTimer("randAudio", 10000, true);
- SetWorldTime(24);
- SetWeather(9);
- SendRconCommand("reloadfs Z");
- SetGameModeText(" ");
- AddPlayerClass(0, 1673.3588867188, -1376.3424072266, 84.062004089355, 0.0, 0, 0, 0, 0, 0, 0);
- CreateObject(987, 1670.3231201172, -1373.3150634766, 84.552742004395, 0.000000, 0.000000, 0.000000); //
- CreateObject(987, 1670.5426025391, -1397.2218017578, 84.552742004395, 0.000000, 0.000000, 90.72998046875); //
- CreateObject(987, 1670.4002685547, -1385.3046875, 84.527740478516, 0.000000, 0.000000, 90.7138671875); //
- CreateObject(987, 1670.701171875, -1409.1712646484, 84.552742004395, 0.000000, 0.000000, 90.72509765625); //
- CreateObject(987, 1670.8291015625, -1421.1492919922, 84.552742004395, 0.000000, 0.000000, 90.72509765625); //
- CreateObject(987, 1670.9090576172, -1428.0765380859, 84.552742004395, 0.000000, 0.000000, 90.72509765625); //
- CreateObject(987, 1682.3245849609, -1373.314453125, 84.552742004395, 0.000000, 0.000000, 0.000000); //
- CreateObject(987, 1689.7742919922, -1373.3367919922, 84.552742004395, 0.000000, 0.000000, 0.000000); //
- CreateObject(987, 1701.822265625, -1373.3796386719, 84.556243896484, 0.000000, 0.000000, 270.70861816406); //
- CreateObject(987, 1701.9453125, -1385.37890625, 84.556243896484, 0.000000, 0.000000, 270.703125); //
- CreateObject(987, 1702.0661621094, -1397.3752441406, 84.556243896484, 0.000000, 0.000000, 270.703125); //
- CreateObject(987, 1702.220703125, -1409.3472900391, 84.556243896484, 0.000000, 0.000000, 270.703125); //
- CreateObject(987, 1702.2873535156, -1415.8466796875, 84.556243896484, 0.000000, 0.000000, 270.703125); //
- CreateObject(987, 1682.9403076172, -1428.01953125, 84.560943603516, 0.000000, 0.000000, 180.54040527344); //
- CreateObject(987, 1694.8898925781, -1427.8969726563, 84.560943603516, 0.000000, 0.000000, 180.53833007813); //
- CreateObject(987, 1702.3901367188, -1427.8828125, 84.560943603516, 0.000000, 0.000000, 180.53833007813); //
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- // Audio Function
- forward randAudio();
- public randAudio() {
- new randomAudio = random(8);
- for(new i=0; i<MAX_PLAYERS; i++) {
- switch(randomAudio) {
- case 0: Audio_Play(i, 1, false, false, false);
- case 1: Audio_Play(i, 2, false, false, false);
- case 2: Audio_Play(i, 3, false, false, false);
- case 3: Audio_Play(i, 4, false, false, false);
- }
- }
- return true;
- }
- // Audio Callbacks
- public Audio_OnClientConnect(playerid)
- {
- // Transfer the audio pack when the player connects
- Audio_TransferPack(playerid);
- }
- public Audio_OnSetPack(audiopack[])
- {
- for (new i = 0; i < MAX_PLAYERS; i++)
- {
- // Transfer the audio pack to all players when it is set
- Audio_TransferPack(i);
- }
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- if(!IsPlayerNPC(playerid)) {
- GivePlayerWeapon(playerid, 24, 100);
- GivePlayerWeapon(playerid, 25, 30);
- }
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment