if(!strcmp(cmdtext, \"/ltrailer\", true)){new var0 = 0;var0 = GetPlayerVehicleID(playerid);DetachTrailerFromVehicle(var0);SendClientMessage(playerid, 0x375FFFFF, \"Leválasztottad a trailert.\");return 1;}if(!strcmp(cmdtext, \"/flip\", true)){new Float:var0 = 0.0, Float:var1 = 0.0, Float:var2 = 0.0;if(IsPlayerInAnyVehicle(playerid)){ SetCameraBehindPlayer(playerid);}GetPlayerPos(playerid, var0, var1, var2);SetVehiclePos(GetPlayerVehicleID(playerid), var0, var1, var2);SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);return 1;}if(!strcmp(cmdtext, \"/megjavit\", true)){if(!IsPlayerInAnyVehicle(playerid)){ return SendClientMessage(playerid, 0xFFFFFFFF, \"Nem vagy jármûben!\");}RepairVehicle(GetPlayerVehicleID(playerid));SendClientMessage(playerid, 0xFFFFFFFF, \"A jármûved sikeresen megjavítva!\");return 1;}if(!strcmp(cmdtext, \"/kill\", true)){ForceClassSelection(playerid);SetPlayerHealth(playerid, 0.0);return 1;}if(!strcmp(cmdtext, \"/reclass\", true)){ForceClassSelection(playerid);SetPlayerHealth(playerid, 0.0);return 1;}if(!strcmp(cmdtext, \"/parancsok\", true)){SendClientMessage(playerid, 0xAA3333AA, \"/ltrailer, /flip, /megjavit, /kill, /reclass, /munka, /smunka\");return 1;} if(!strcmp(\"/munka\", cmdtext, true)){ new pvehiclemodel = GetVehicleModel(GetPlayerVehicleID(playerid));if (pvehiclemodel == 403 || pvehiclemodel == 514 || pvehiclemodel == 515){ new string[200]; new rand = random(sizeof(TruckingMissionRandom)); CreatePlayerMission(playerid, TruckingMissionRandom[rand][useTrailerCheck], TruckingMissionRandom[rand][MissionPay], TruckingMissionRandom[rand][loadx],TruckingMissionRandom[rand][loady], TruckingMissionRandom[rand][loadz], TruckingMissionRandom[rand][unloadx],TruckingMissionRandom[rand][unloady], TruckingMissionRandom[rand][unloadz]); format(string, sizeof(string), \"A te küldetésed: %s\", TruckingMissionRandom[rand][MissionName]); SendClientMessage(playerid, 0x00FF00FF, string);}else{ SendClientMessage(playerid, 0xFF0000AA, \"Sajnálom, de te nem tudod használni ezt a küldetést mert nem megfelelõ jármûben vagy!\");}return 1;}if(!strcmp(\"/smunka\", cmdtext, true)){CancelPlayersCurrentMission(playerid);}
Köze egy szálse hozzá..
enum TruckingMissionInfo{MissionName[200],bool:UseTrailerCheck,MissionPay,Float:loadx,Float:loady,Float:loadz,Float:unloadx,Float:unloady,Float:unloadz}new TruckingMissionRandom[][TruckingMissionInfo] ={{\"Szükségünk van egy Karton Ásvány vízre.\", true, 250, 1701.9475,940.5465,10.8203, 1496.2524,772.1427,10.8203},{\"Szükségünk van Autóalaktrészekre.\", true, 500, 1701.9475,940.5465,10.8203, 1727.6351,1812.1750,10.8203},{\"Szükségünk van Csomagoló papírokra.\", true, 9000, 2777.9772949219, -2455.0886230469, 13.285285949707, -1875.4030761719, -1688.1228027344, 21.399225234985}};public OnPlayerEnterCheckpoint(playerid){ M_OnPlayerEnterCheckpoint(playerid);return 1;}public OnPlayerEnterRaceCheckpoint(playerid){ M_OnPlayerEnterRaceCheckpoint(playerid);return 1;}public OnPlayerFinishMission(playerid){SendClientMessage(playerid, 0x00FF00FF, \"Árú sikeresen leszállítva!\");return 1;}
enum TruckingMissionInfo{MissionName[200],bool:UseTrailerCheck,MissionPay,Float:loadx,Float:loady,Float:loadz,Float:unloadx,Float:unloady,Float:unloadz}new TruckingMissionRandom[][TruckingMissionInfo] ={// {\"Mission Text\", UseTrailerCheck, MissionPay, loadx, loady, loadz, unloadx, unloady, unloadz}/* KEY:** \"Mission Text\" = The text the player will see when he/she is doing the mission!** UseTrailerCheck = Weather or not the mission requires you use a vehile that has a trailer. Ex: Roadtrain with an Artict1 trailer!** MissionPay = The amount the player will recive for doing there mission!** loadx, loady, and loadz = The loading coordinates of the loading checkpoint!** unloadx, unloadx, unloadx = The un-loading coordinates of the unloading checkpoint!*/{\"We need a load of Holy Water from LVA Freight Depot to LVA Church\", true, 250, 1701.9475,940.5465,10.8203, 1496.2524,772.1427,10.8203},{\"We need a load of Junk Car Parts from LVA Freight Depot to Shody Ottos\", true, 500, 1701.9475,940.5465,10.8203, 1727.6351,1812.1750,10.8203},{\"We need a load of Drills From LS Dock Warehouse 2 To Whetstone Mine\", true, 9000, 2777.9772949219, -2455.0886230469, 13.285285949707, -1875.4030761719, -1688.1228027344, 21.399225234985},{\"We need a load of Top Secret Devices From Randolf Industrial Estate To Area 69\", true, 5000, 1594.1290283203, 724.00372314453, 10.469537734985, 134.54122924805, 1945.7899169922, 19.001808166504},{\"We need a load of Boxes From LV Depot To SF Depot\", true, 7500, 1723.5736083984, 979.20190429688, 10.469537734985, -2129.4470214844, -84.854187011719, 34.969539642334},{\"We need a load of Propellers From Ls Dock Warehouse 1 To Verdant Meadows\", true, 8000, 2777.7497558594, -2417.4836425781, 13.285341262817, 377.30389404297, 2534.0485839844, 16.250215530396},{\"We need a load of Soldiers Mail From Area 69 To 5 Tree Logistics\", true, 6500, 134.54122924805, 1945.7899169922, 19.001808166504, -493.13043212891, -514.57434082031, 25.167068481445},{\"We need a load of Landing Gears From 5 Tree Logistics To Las Venturas Airport\", true, 8000, -493.13043212891, -514.57434082031, 25.167068481445, 1627.9038085938, 1611.8803710938, 20.285793304443},{\"We need a load of Oxegen Canisters From RS Haul To SF Air\", true, 7000, -83.956573486328, -1126.0145263672, 0.73391342163086, -1447.4144287109, -437.23773193359, 5.5075283050537},{\"We need a load of Radars From Verdant Meadows To San Fierro Airport\", true, 8500, 377.30389404297, 2534.0485839844, 16.250215530396, -1447.4144287109, -437.23773193359, 5.5075283050537},};public OnPlayerEnterCheckpoint(playerid){ M_OnPlayerEnterCheckpoint(playerid);return 1;}public OnPlayerEnterRaceCheckpoint(playerid){ M_OnPlayerEnterRaceCheckpoint(playerid);return 1;}public OnPlayerFinishMission(playerid){SendClientMessage(playerid, 0x00FF00FF, \"You have delivered the load!\");return 1;}