#include new object1; new object2; new object3; new tir; new przyczepa; new count; new sultan; new gPlayerCheckpointStatus[MAX_PLAYERS]; #define CHECKPOINT_BLIP 1 #define COLOR_GREY 0xAFAFAFAA #define COLOR_GREEN 0x33AA33AA #define COLOR_RED 0xAA3333AA #define COLOR_YELLOW 0xFFFF00AA #define COLOR_PINK 0xFF66FFAA #define COLOR_BLUE 0x33CCFFAA #define COLOR_LIGHTBLUE 0x7735D0FF #define COLOR_DARKRED 0x660000AA #define COLOR_ORANGE 0xFF9900AA #define COLOR_LIGHTGREY 0xEAEAEAFF // This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT main() { print("\n----------------------------------"); print(" Delivery Mission"); print("----------------------------------\n"); } public OnGameModeInit() { // Don't use these lines if it's a filterscript SetGameModeText("Delivery Mission"); AddPlayerClass(0, 2501.1165,2498.8352,21.8801,93.1353, 0, 0, 0, 0, 0, 0); object1 = CreateObject(1966,2480.0,2350.7610,12.5281,0,0,0);//z+1 object2 = CreateObject(1966,2486.8800,2350.7610,12.5281,0,0,0); object3 = CreateObject(1966,2493.7650,2350.7610,12.5281,0,0,0); SetTimer("OpenAndCloseGate",500,1);//450 SetTimer("CheckTrailer",500,1);//450 tir = AddStaticVehicle(514,2470.7021,2495.0339,21.8750,174.1960,0,0); przyczepa = AddStaticVehicle(450,2502.1873,2387.5903,7.4261,181.6599,0,0); sultan = AddStaticVehicle(560,2485.9119,2521.3254,22.4618,268.5122,-1,-1); // car1 AddStaticVehicle(525,2486.3667,2515.8262,22.4651,269.6245,0,0); // AddStaticVehicle(514,2486.2251,2509.8423,22.4666,272.0237,0,0); // AddStaticVehicle(514,2485.9175,2504.0630,22.4608,268.6000,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 OnPlayerRequestSpawn(playerid) { return 1; } public OnPlayerConnect(playerid) { return 1; } public OnPlayerDisconnect(playerid, reason) { return 1; } public OnPlayerSpawn(playerid) { SetTimerEx("TowTruck", 500, 1, "d", playerid); return 1; } public OnPlayerDeath(playerid, killerid, reason) { return 1; } forward IsPlayerAt(playerid, Float:x1, Float:y1, Float:x2, Float:y2); public IsPlayerAt(playerid, Float:x1, Float:y1, Float:x2, Float:y2) { new Float:x, Float:y, Float:z; if (IsPlayerConnected(playerid)) { GetPlayerPos(playerid, x, y, z); if(x >= x1 && x <= x2 && y >= y1 && y <= y2) return 1; } return 0; } forward OpenAndCloseGate(); public OpenAndCloseGate() { new Float:x, Float:y, Float:z; for (new i=0; i