Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //* Made by Meller on Forum.Sa-mp.com Do not remove credits *//
- #include <a_samp>
- #include <zcmd>
- #include <sscanf>
- #define COLOR_YELLOW 0xFFFF00FF
- #define COLOR_GREEN 0x2DC406FF
- #define White 0xFFFFFFFF
- CMD:flight(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_GREEN, ",______________________________________________________________________________,");
- SendClientMessage(playerid, COLOR_GREEN, "| Are you Sure you want to take the job to Fly From Las Venturas to San Fierro? |");
- SendClientMessage(playerid, COLOR_GREEN, "| Use /ConfirmFlight To start the Flight. |");
- SendClientMessage(playerid, COLOR_GREEN, "|______________________________________________________________________________|");
- return 1;
- }
- CMD:confirmflight(playerid, params[])
- {
- AddStaticVehicle(519,1477.8285,1738.9503,11.5399,180.1592,1,1);
- SetPlayerCheckpoint(playerid, -1438.6525, -529.6423, 14.1719, 10.0);
- SendClientMessage(playerid, -1, "Fly to San Fierro to earn 2500Dollar!");
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- GivePlayerMoney(playerid, 2500);
- DisablePlayerCheckpoint(playerid);
- SendClientMessage(playerid, COLOR_GREEN, "You was earned 2500 Dollar for finishing the flight.");
- new vehicleid;
- vehicleid= GetPlayerVehicleID(playerid);
- DestroyVehicle(vehicleid);
- return 1;
- }
- CMD:pilotradio(playerid, params[])
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- new string[256], name[MAX_PLAYER_NAME];
- {
- if(isnull(params)) return SendClientMessage(playerid, COLOR_YELLOW,"Use: /pr Text");
- GetPlayerName(playerid, name, MAX_PLAYER_NAME);
- format(string, sizeof(string),"[Pilot Radio]%s says: %s", name, params);
- SendClientMessageToAll(COLOR_GREEN, string);
- }
- }
- else
- SendClientMessage(playerid, COLOR_RED, "You Isnt in a Vehicle");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement