Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is a comment
- // uncomment the line below if you want to write a filterscript
- //#define FILTERSCRIPT
- #include <a_samp>
- new FastTCars[8];
- new FastTCP[MAX_PLAYERS];
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Blank Filterscript by your name here");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Blank Gamemode by your name here");
- print("----------------------------------\n");
- }
- #endif
- public OnGameModeInit()
- {
- CreateVehicle(402, 2033.8888, 1321.8954, 10.4785, 0.0000, -1, -1, 100);
- FastTCars[0] = CreateVehicle(411, 2772.2271, 1294.6516, 10.4252, 0.0000, 3, -1, 100);
- FastTCars[1] = CreateVehicle(411, 2775.4688, 1294.6420, 10.4252, 0.0000, 3, -1, 100);
- FastTCars[2] = CreateVehicle(411, 2778.8093, 1294.5774, 10.4252, 0.0000, 3, -1, 100);
- FastTCars[3] = CreateVehicle(411, 2781.9294, 1294.5323, 10.4252, 0.0000, 3, -1, 100);
- FastTCars[4] = CreateVehicle(411, 2785.0090, 1294.6271, 10.4252, 0.0000, 3, -1, 100);
- FastTCars[5] = CreateVehicle(411, 2788.2114, 1294.5825, 10.4252, 0.0000, 3, -1, 100);
- FastTCars[6] = CreateVehicle(411, 2791.2881, 1294.8208, 10.4252, 0.0000, 3, -1, 100);
- FastTCars[7] = CreateVehicle(411, 2794.8279, 1294.8441, 10.4252, 0.0000, 3, -1, 100);
- // Don't use these lines if it's a filterscript
- SetGameModeText("Blank Script");
- AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- return 1;
- }
- public OnGameModeExit()
- {
- 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)
- {
- FastTCP[playerid] = 0;
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- 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[])
- {
- if (strcmp("/mycommand", cmdtext, true, 10) == 0)
- {
- // Do something here
- return 1;
- }
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- if(vehicleid == FastTCars[0] || (vehicleid == FastTCars[1] || (vehicleid == FastTCars[2] || (vehicleid == FastTCars[3] || (vehicleid == FastTCars[4] || (vehicleid == FastTCars[5] || (vehicleid == FastTCars[6] || (vehicleid == FastTCars[7] ||)
- {
- DisablePlayerCheckpoint(playerid);
- FastTCP[playerid] = 0;
- SetVehicleToRespawn(vehicleid);
- SendClientMessage(playerid, -1 "Job esuat ai iesit din masina");
- }
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- if(newstate == PLAYER_STATE_DRIVER)
- {
- new vehicleid == GetPlayerVehicleID(playerid);
- if(vehicleid == FastTCars[0] || (vehicleid == FastTCars[1] || (vehicleid == FastTCars[2] || (vehicleid == FastTCars[3] || (vehicleid == FastTCars[4] || (vehicleid == FastTCars[5] || (vehicleid == FastTCars[6] || (vehicleid == FastTCars[7] ||)
- {
- FastTCP[playerid] = 1;
- DisablePlayerCheckpoint(playerid);
- SetPlayerCheckpoint(playerid, 2794.5938, 1315.2356, 10.4252, 4.0);
- }
- }
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- if (FastTCP[playerid] == 1)
- {
- DisablePlayerCheckpoint(playerid);
- FastTCP[playerid] = 2;
- SetPlayerCheckpoint(playerid, 2488.2488, 1531.5845, 10.8789, 4.0);
- }
- else if(FastTCP[playerid] == 2)
- {
- DisablePlayerCheckpoint(playerid);
- FastTCP[playerid] = 3;
- SetPlayerCheckpoint(playerid, 2335.0706, 1723.4692, 10.8789, 4.0);
- }
- else if(FastTCP[playerid] == 3)
- {
- DisablePlayerCheckpoint(playerid);
- FastTCP[playerid] = 4;
- SetPlayerCheckpoint(playerid, 2038.9993, 1381.4307, 10.8789, 4.0);
- }
- else if(FastTCP[playerid] == 4)
- {
- DisablePlayerCheckpoint(playerid);
- FastTCP[playerid] = 5;
- SetPlayerCheckpoint(playerid, 2580.3320, 1068.3425, 10.8789, 4.0);
- }
- else if(FastTCP[playerid] == 5)
- {
- DisablePlayerCheckpoint(playerid);
- FastTCP[playerid] = 6;
- SetPlayerCheckpoint(playerid, 2793.3716, 1311.1638, 10.8789, 4.0);
- }
- else if (FastTCP[playerid] ==6)
- {
- DisablePlayerCheckpoint(playerid);
- FastTCP[playerid] = 0;
- SetVehicleToRespawn(GetPlayerVehicleID(playerid));
- SendClientMessage(playerid, -1, "Ai Terminat cu succes jobul si ai primit bani.");
- GivePlayerMoney(playerid, 23500);
- }
- 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[])
- {
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment