Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define COLOR_YELLOW 0xF6F60000
- #define Missioneins 1
- #define Missionzwei 2
- #define Ende 3
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/Start", cmdtext, true, 6) == 0)
- {
- if(IsPlayerInVehicle(playerid, 574))
- {
- new gPlayerCheckpointStatus[MAX_PLAYERS];
- gPlayerCheckpointStatus[playerid] = Missioneins;
- SetPlayerCheckpoint(playerid, 999.1933,-897.0499,42.2514, 5.0);
- }
- else
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Du bist nicht im Richtigen Fahrzeug !");
- }
- 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)
- {
- new gPlayerCheckpointStatus[MAX_PLAYERS];
- switch (gPlayerCheckpointStatus[playerid])
- {
- case Missioneins:
- {
- DisablePlayerCheckpoint(playerid);
- SetPlayerCheckpoint(playerid, 2374.7703,-1892.0033,13.3828, 5.0);
- gPlayerCheckpointStatus[playerid] = Missionzwei;
- }
- case Missionzwei:
- {
- DisablePlayerCheckpoint(playerid);
- SetPlayerCheckpoint(playerid, 785.2900,-1607.1732,13.3906, 5.0);
- gPlayerCheckpointStatus[playerid] = Ende;
- }
- case Ende:
- {
- GivePlayerMoney(playerid,1000);
- DisablePlayerCheckpoint(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