Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- -
- -
- -
- - @author DaRk_SouL
- - @copyright 2011
- - @license GPL/GNU v3.0
- -
- -
- -
- */
- #include <a_samp>
- #include <sscanf2>
- #define vmenu 12356
- new Float:x,Float:y,Float:z;
- new Float:X, Float:Y, Float:Z, Float:Angle, pInt;
- new CurrentVeh[MAX_PLAYERS];
- main()
- {
- print("\n----------------------------------");
- print(" Test by DaRk_SouL");
- print("----------------------------------\n");
- // THIS WAS DOEN BY ME
- }
- // DONT CARE ABOUT THE BELOW
- public OnGameModeInit()
- {
- CreatePickup(342, 3, 2493.0647, -1667.7250, 13.3438);
- AddPlayerClass(1, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);
- AddPlayerClass(107, 1958.33, 1343.12, 15.36, 0, 26, 100, 28, 150, 0, 0);
- AddPlayerClass(106, 1958.33, 1343.12, 15.36, 0, 16, 25, 28, 150, 0, 0);
- AddPlayerClass(288, 1958.33, 1343.12, 15.36, 0, 27, 100, 32, 150, 24, 100);
- AddPlayerClass(274, 1958.33, 1343.12, 15.36, 0, 4, 0, 18, 25, 25, 50);
- AddPlayerClass(178, 1958.33, 1343.12, 15.36, 0, 13, 0, 14, 0, 44, 0);
- AddPlayerClass(45, 1958.33, 1343.12, 15.36, 0, 30, 100, 24, 50, 0, 0);
- AddPlayerClass(115, 1958.33, 1343.12, 15.36, 0, 26, 150, 0, 0, 0, 0);
- AddStaticVehicle(411,-81.9835,1340.8245,10.6145,184.3696,64,1);
- AddStaticVehicle(424,-88.5091,1340.0566,10.4176,190.8839,2,2);
- AddStaticVehicle(522,-84.2759,1369.5834,9.8386,101.9494,3,8);
- SetGameModeText("Test");
- SetTimer("spawnvehicle",1000,true);
- print("\n--------------------------------------");
- print(" Test");
- print("--------------------------------------\n");
- UsePlayerPedAnims();
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid,11.9577,1716.7191,22.6222);
- SetPlayerFacingAngle(playerid, 128.0980);
- SetPlayerInterior(playerid, 0);
- SetPlayerCameraPos(playerid,9.6063,1715.1882,22.6113);
- SetPlayerCameraLookAt(playerid,11.9577,1716.7191,22.6222);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- CreateObject(3269, 1749.684082, -2559.906250, 13.370020, 0.0000, 0.0000, 0.0000);
- CreateObject(13641, 1798.133179, -2596.736572, 14.266119, 0.0000, 0.0000, 0.0000);
- CreateObject(13604, 1815.301514, -2561.565918, 14.254892, 0.0000, 0.0000, 0.0000);
- CreateObject(12956, 1607.663818, -2451.933105, 16.382927, 0.0000, 0.0000, 0.0000);
- CreateObject(6052, 1557.625000, -2631.130615, 15.294515, 0.0000, 0.0000, 0.0000);
- CreateObject(4656, 1484.029907, -2487.649414, 17.886879, 0.0000, 0.0000, 0.0000);
- CreateObject(1634, 1481.170410, -2562.911865, 26.759121, 0.0000, 0.0000, 170.9235);
- CreateObject(1634, 1464.752197, -2561.237061, 26.812862, 0.0000, 0.0000, 170.9235);
- CreateObject(969, -1346.568115, 479.319458, 6.354377, 0.0000, 0.0000, 279.2130);
- CreateObject(969, -1344.629150, 481.604736, 6.354377, 0.0000, 0.0000, 0.0000);
- CreateObject(969, -1338.749756, 434.110657, 6.354377, 0.0000, 0.0000, 0.0000);
- CreateObject(969, -1329.626465, 434.094482, 6.354377, 0.0000, 0.0000, 0.0000);
- CreateObject(969, -1321.019775, 433.961548, 6.354377, 0.0000, 0.0000, 0.0000);
- CreateObject(969, -1311.996826, 433.985718, 6.354377, 0.0000, 0.0000, 0.0000);
- CreateObject(969, -1303.237671, 434.070007, 6.354377, 0.0000, 0.0000, 0.0000);
- CreateObject(969, -1294.200317, 434.112000, 6.354377, 0.0000, 0.0000, 0.0000);
- CreateObject(969, -1285.134277, 434.110352, 6.354377, 0.0000, 0.0000, 0.0000);
- CreateObject(969, -1276.280273, 433.951904, 6.354377, 0.0000, 0.0000, 0.0000);
- CreateObject(969, -1267.354248, 434.065613, 6.354377, 0.0000, 0.0000, 0.0000);
- CreateObject(969, -1258.429565, 434.109070, 6.354377, 0.0000, 0.0000, 0.0000);
- CreateObject(969, -1249.541748, 434.066772, 6.354377, 0.0000, 0.0000, 0.0000);
- CreateObject(969, -1240.696899, 434.120850, 6.354377, 0.0000, 0.0000, 0.0000);
- CreateObject(969, -1240.696899, 434.120850, 6.354377, 0.0000, 0.0000, 0.0000);
- CreateObject(969, -1231.933105, 434.222626, 6.347794, 0.0000, 0.0000, 15.4699);
- CreateObject(969, -1223.442749, 436.590637, 6.354377, 0.0000, 0.0000, 73.9115);
- CreateObject(969, -1221.317627, 445.072998, 6.354377, 0.0000, 0.0000, 94.5380);
- CreateObject(969, -1221.893799, 453.471405, 6.354377, 0.0000, 0.0000, 0.0000);
- CreateObject(969, -1220.900879, 453.517670, 6.354377, 0.0000, 0.0000, 88.5219);
- CreateObject(969, -1220.555420, 462.358795, 6.354377, 0.0000, 0.0000, 97.1163);
- CreateObject(969, -1221.762817, 469.241516, 6.354377, 0.0000, 0.0000, 136.6505);
- CreateObject(969, -1228.020508, 475.189941, 6.354377, 0.0000, 0.0000, 137.5099);
- CreateObject(980, -1240.759888, 481.650970, 8.960892, 0.0000, 0.0000, 0.0000);
- CreateObject(980, -1252.278198, 481.628326, 8.960892, 0.0000, 0.0000, 0.0000);
- CreateObject(980, -1263.945068, 481.613922, 8.960892, 0.0000, 0.0000, 0.0000);
- CreateObject(980, -1275.409058, 481.388641, 8.960892, 0.0000, 0.0000, 0.0000);
- CreateObject(980, -1287.071777, 481.394714, 8.960892, 0.0000, 0.0000, 0.0000);
- CreateObject(980, -1298.484009, 481.519958, 8.960892, 0.0000, 0.0000, 0.0000);
- CreateObject(980, -1309.152344, 481.379639, 8.960892, 0.0000, 0.0000, 0.0000);
- CreateObject(980, -1320.770508, 481.341156, 8.960892, 0.0000, 0.0000, 0.0000);
- CreateObject(980, -1332.258545, 481.510315, 8.960892, 0.0000, 0.0000, 0.0000);
- CreateObject(980, -1343.641479, 481.365143, 8.960890, 0.0000, 0.0000, 0.0000);
- CreateObject(980, -1349.246582, 475.481445, 8.960892, 0.0000, 0.0000, 91.1002);
- CreateObject(980, -1348.501953, 464.042328, 8.960892, 0.0000, 0.0000, 96.2569);
- CreateObject(980, -1347.113647, 452.354492, 8.960892, 0.0000, 0.0000, 96.2569);
- CreateObject(980, -1338.792480, 437.266174, 9.220301, 0.0000, 0.0000, 89.3814);
- CreateObject(980, -1333.036255, 434.147125, 12.529253, 0.0000, 0.0000, 180.4820);
- CreateObject(980, -1321.643066, 433.981873, 12.385839, 0.0000, 0.0000, 180.4820);
- CreateObject(980, -1310.095093, 434.402832, 12.610867, 0.0000, 0.0000, 180.4820);
- CreateObject(980, -1298.356201, 435.226776, 12.825809, 0.0000, 0.0000, 180.4820);
- CreateObject(980, -1287.022461, 434.524078, 12.454308, 0.0000, 0.0000, 180.4820);
- CreateObject(980, -1275.792847, 434.090454, 12.410892, 0.0000, 0.0000, 180.4820);
- CreateObject(980, -1264.265747, 434.247559, 12.429304, 0.0000, 0.0000, 180.4820);
- CreateObject(980, -1252.748779, 434.369568, 12.504313, 0.0000, 0.0000, 180.4820);
- CreateObject(980, -1229.640503, 434.631287, 12.454306, 0.0000, 0.0000, 186.4982);
- CreateObject(980, -1241.056152, 434.202118, 12.354305, 0.0000, 0.0000, 180.4820);
- CreateObject(980, -1221.180298, 440.380463, 12.210892, 0.0000, 0.0000, 247.5183);
- CreateObject(980, -1220.663208, 451.446960, 12.210892, 0.0000, 0.0000, 263.8475);
- CreateObject(980, -1221.397949, 462.817627, 12.460892, 0.0000, 0.0000, 278.4577);
- CreateObject(980, -1223.503052, 469.762207, 12.460892, 0.0000, 0.0000, 311.9755);
- CreateObject(980, -1232.127319, 477.817322, 11.960890, 1.7189, 0.0000, 330.8829);
- CreateObject(980, -1242.371338, 481.609802, 14.404377, 1.7189, 0.0000, 359.2441);
- CreateObject(980, -1263.977051, 481.572754, 14.238756, 1.7189, 0.0000, 359.2441);
- CreateObject(980, -1253.912109, 481.587158, 14.486509, 1.7189, 0.0000, 359.2441);
- CreateObject(980, -1297.376099, 480.409302, 14.210602, 1.7189, 0.0000, 0.1036);
- CreateObject(980, -1287.274170, 481.353546, 14.454994, 1.7189, 0.0000, 359.2441);
- CreateObject(980, -1275.822754, 481.347473, 14.505878, 1.7189, 0.0000, 359.2441);
- CreateObject(980, -1320.135620, 481.299988, 14.484430, 0.0000, 0.0000, 354.0875);
- CreateObject(980, -1306.090942, 481.338470, 14.326921, 0.0000, 0.0000, 356.6658);
- CreateObject(980, -1343.520752, 481.323975, 14.460707, 0.0000, 0.0000, 1.8225);
- CreateObject(980, -1331.697876, 481.469147, 14.410763, 0.0000, 0.0000, 357.5252);
- CreateObject(980, -1349.213135, 475.885956, 14.135775, 0.0000, 0.0000, 95.3974);
- CreateObject(980, -1348.484253, 464.258545, 14.428900, 0.0000, 0.0000, 93.7821);
- CreateObject(980, -1346.249756, 454.681122, 15.107450, 0.0000, 0.0000, 93.7821);
- SendClientMessage(playerid, 0x7BDDA5AA, "SERVER: Welcome To Our Server,Have Fun!");
- CurrentVeh[playerid] = -1;
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- GivePlayerMoney(playerid, 10000);
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- ResetPlayerMoney(playerid);
- SendDeathMessage(killerid, playerid, reason);
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/vinewood", cmdtext, true, 10) == 0)
- {
- new playername[MAX_PLAYER_NAME], string[90];
- SetPlayerPos(playerid, 1387.4211, -819.5637, 73.9426);
- GetPlayerName(playerid, playername, sizeof(playername));
- format(string, sizeof(string), "%s has been teleported to VineWood.", playername);
- SendClientMessageToAll(0xAA3333AA, string);
- return 1;
- }
- if(strcmp(cmdtext, "/para", true) == 0)
- {
- GivePlayerWeapon(playerid,46,1);
- SendClientMessage(playerid, 0xAA3333AA, "You've Received a Parachute.");
- return 1;
- }
- if (strcmp("/ls", cmdtext, true, 10) == 0)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SetVehiclePos(GetPlayerVehicleID(playerid), 2493.0647, -1667.7250, 13.3438);
- LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
- }
- else
- {
- SetPlayerPos(playerid, 2493.0647, -1667.7250, 13.3438);
- }
- new playername[MAX_PLAYER_NAME], string[128];
- GetPlayerName(playerid, playername, sizeof(playername));
- format(string, sizeof(string), "%s has been teleported to LosSantos.", playername);
- SendClientMessageToAll(0xAA3333AA, string);
- return 1;
- }
- if (strcmp("/lv", cmdtext, true, 10) == 0)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SetVehiclePos(GetPlayerVehicleID(playerid), 1907.3214, 951.7858, 10.8203);
- LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
- }
- else
- {
- SetPlayerPos(playerid, 1907.3214, 951.7858, 10.8203);
- }
- new playername[MAX_PLAYER_NAME], string[90];
- GetPlayerName(playerid, playername, sizeof(playername));
- format(string, sizeof(string), "%s has been teleported to LasVenturas.", playername);
- SendClientMessageToAll(0xAA3333AA, string);
- return 1;
- }
- if (strcmp("/sf", cmdtext, true, 10) == 0)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SetVehiclePos(GetPlayerVehicleID(playerid), -2038.9034, 135.9883, 28.8359);
- LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
- }
- else
- {
- SetPlayerPos(playerid, -2038.9034, 135.9883, 28.8359);
- }
- new playername[MAX_PLAYER_NAME], string[90];
- GetPlayerName(playerid, playername, sizeof(playername));
- format(string, sizeof(string), "%s has been teleported to SanFiero.", playername);
- SendClientMessageToAll(0xAA3333AA, string);
- return 1;
- }
- if (strcmp("/ufo", cmdtext, true, 10) == 0)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SetVehiclePos(GetPlayerVehicleID(playerid),-79.9514, 1385.3988, 16.9950);
- LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
- }
- else
- {
- SetPlayerPos(playerid, -79.9514, 1385.3988, 16.9950);
- }
- new playername[MAX_PLAYER_NAME], string[90];
- GetPlayerName(playerid, playername, sizeof(playername));
- format(string, sizeof(string), "%s has been teleported to the SecretUFO.", playername);
- SendClientMessageToAll(0xAA3333AA, string);
- return 1;
- }
- if (strcmp("/help", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0x33AA33AA,"/ls, /lv, /sf, /casino1, transls, /translv");
- return 1;
- }
- if (strcmp("/transls", cmdtext, true, 10) == 0)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SetVehiclePos(GetPlayerVehicleID(playerid),1040.6638, -1032.8633, 31.9673);
- LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
- }
- else
- {
- SetPlayerPos(playerid, 1040.6638, -1032.8633, 31.9673);
- }
- new playername[MAX_PLAYER_NAME], string[90];
- GetPlayerName(playerid, playername, sizeof(playername));
- format(string, sizeof(string), "%s has been teleported to TransLs.", playername);
- SendClientMessageToAll(0xAA3333AA, string);
- return 1;
- }
- if (strcmp("/translv", cmdtext, true, 10) == 0)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SetVehiclePos(GetPlayerVehicleID(playerid),2387.2725, 1038.7333, 10.820);
- LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
- }
- else
- {
- SetPlayerPos(playerid, 2387.2725, 1038.7333, 10.820);
- }
- new playername[MAX_PLAYER_NAME], string[90];
- GetPlayerName(playerid, playername, sizeof(playername));
- format(string, sizeof(string), "%s has been teleported to TransLv.", playername);
- SendClientMessageToAll(0xAA3333AA, string);
- return 1;
- }
- if (strcmp("/casino1", cmdtext, true, 10) == 0)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SetVehiclePos(GetPlayerVehicleID(playerid),2030.4504, 1006.8763, 10.8203);
- LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
- }
- else
- {
- SetPlayerPos(playerid, 2030.4504, 1006.8763, 10.8203);
- }
- new playername[MAX_PLAYER_NAME], string[90];
- GetPlayerName(playerid, playername, sizeof(playername));
- format(string, sizeof(string), "%s has been teleported to Casino1.", playername);
- SendClientMessageToAll(0xAA3333AA, string);
- return 1;
- }
- if (strcmp("/dm3", cmdtext, true, 10) == 0)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid,0xFF0000FF,"No Vehicles In /Dm3");
- RemovePlayerFromVehicle(playerid);
- }
- else
- {
- GetPlayerPos(playerid,x,y,z);
- SetPlayerPos(playerid, -1244.0353, 452.9524, 7.1875);
- new playername[MAX_PLAYER_NAME], string[90];
- GetPlayerName(playerid, playername, sizeof(playername));
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 26, 100);
- format(string, sizeof(string), "%s has been teleported to Sawn-OffDeathMatch.", playername);
- SendClientMessageToAll(0xAA3333AA, string);
- }
- return 1;
- }
- if (strcmp("/cancel", cmdtext, true, 10) == 0)
- {
- SetPlayerPos(playerid, x,y,z);
- new name[MAX_PLAYER_NAME], string[128];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "%s has Left The Sawn-Off-DeathMatch.", name);
- SendClientMessageToAll(0xFF0000FF, string);
- return 1;
- }
- if(!strcmp(cmdtext, "/v", true))
- {
- ShowPlayerDialog(playerid, vmenu, DIALOG_STYLE_LIST, "Vehicles", "Infernus \nNRG-500 \nBF Injection \nTurismo \nMaverick \nPhoenix \nKart \nElegy \nSultan", "Spawn", "Cancel");
- return 1;
- }
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, Angle);
- GetPlayerInterior(playerid);
- if(dialogid == vmenu)
- {
- if(response)
- {
- if(listitem == 0) // INFERNUS
- {
- CreateVehicle(411, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
- }
- if(listitem == 1) // NRG-500
- {
- CreateVehicle(522, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
- }
- if(listitem == 2) // BF Injection
- {
- CreateVehicle(424, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
- }
- if(listitem == 3) // Turismo
- {
- CreateVehicle(451, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
- }
- if(listitem == 4) // Maverick
- {
- CreateVehicle(487, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
- }
- if(listitem == 5) // Phoenix
- {
- CreateVehicle(603, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
- }
- if(listitem == 6) // Kart
- {
- CreateVehicle(571, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
- }
- if(listitem == 7) // Elegy
- {
- CreateVehicle(562, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
- }
- if(listitem == 8) // Sultan
- {
- CreateVehicle(560, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
- }
- }
- return 1;
- }
- return 0;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement