// This is a comment// uncomment the line below if you want to write a filterscript//#define FILTERSCRIPT#include <a_samp>#define COLOR_GREEN 0x00FF00C8forward IsDFT(carid);#if defined FILTERSCRIPTpublic OnFilterScriptInit(){print(\"\\n--------------------------------------\");print(\" A DFT-30 hordó mód betöltve!\");print(\"--------------------------------------\\n\");return 1;}public OnFilterScriptExit(){print(\"\\n--------------------------------------\");print(\" A DFT-30 hordó mód kikapcsolva!\");print(\"--------------------------------------\\n\"); return 1;}#elsemain(){print(\"\\n----------------------------------\");print(\" Blank Gamemode by your name here\");print(\"----------------------------------\\n\");}#endifpublic OnGameModeInit(){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){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(\"/hordó\", cmdtext, true, 10) == 0){ new vehicleid1;vehicleid1 = GetPlayerVehicleID(playerid);if (IsDFT(vehicleid1)){ new hordo1 = CreateObject(3633, 0.14135660231113, 1.6662261486053, 0.19024559855461, 0, 0, 0); new hordo2 = CreateObject(3633, 0.16019931435585, 0.39656642079353, 0.18804869055748, 0, 0, 0); new hordo3 = CreateObject(3633, 0.13659836351871, -0.92894232273102, 0.19385978579521, 0, 0, 0); new hordo4 = CreateObject(3633, 0.11065313965082, -2.2023324966431, 0.19448022544384, 0, 0, 0); new vehicleid = GetPlayerVehicleID(playerid); AttachObjectToVehicle(hordo1, vehicleid, 0.14135660231113, 1.6662261486053, 0.19024559855461, 0, 0, 0); AttachObjectToVehicle(hordo2, vehicleid, 0.16019931435585, 0.39656642079353, 0.18804869055748, 0, 0, 0); AttachObjectToVehicle(hordo3, vehicleid, 0.13659836351871, -0.92894232273102, 0.19385978579521, 0, 0, 0); AttachObjectToVehicle(hordo4, vehicleid, 0.11065313965082, -2.2023324966431, 0.19448022544384, 0, 0, 0); }return 1;}return 0;}public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger){if (IsDFT(vehicleid)){ SendClientMessage(playerid,COLOR_GREEN,\"/hordó paranccsal tehetsz fel a kocsira hordókat!\");}return 1;}public OnPlayerExitVehicle(playerid, vehicleid){return 1;}public IsDFT(carid){if((carid == 578)){return 1;}return 0;}
#include <a_samp>#include <zcmd>#define COLOR_GREEN 0x00FF00C8forward IsDFT(carid);CMD:hordo(playerid, params[]) { new vehicleid1;vehicleid1 = GetPlayerVehicleID(playerid);if (IsDFT(vehicleid1)){ new hordo1 = CreateObject(3633, 0.14135660231113, 1.6662261486053, 0.19024559855461, 0, 0, 0); new hordo2 = CreateObject(3633, 0.16019931435585, 0.39656642079353, 0.18804869055748, 0, 0, 0); new hordo3 = CreateObject(3633, 0.13659836351871, -0.92894232273102, 0.19385978579521, 0, 0, 0); new hordo4 = CreateObject(3633, 0.11065313965082, -2.2023324966431, 0.19448022544384, 0, 0, 0); new vehicleid = GetPlayerVehicleID(playerid); AttachObjectToVehicle(hordo1, vehicleid, 0.14135660231113, 1.6662261486053, 0.19024559855461, 0, 0, 0); AttachObjectToVehicle(hordo2, vehicleid, 0.16019931435585, 0.39656642079353, 0.18804869055748, 0, 0, 0); AttachObjectToVehicle(hordo3, vehicleid, 0.13659836351871, -0.92894232273102, 0.19385978579521, 0, 0, 0); AttachObjectToVehicle(hordo4, vehicleid, 0.11065313965082, -2.2023324966431, 0.19448022544384, 0, 0, 0); }return 1;}return 0;}