#include <a_samp>#include <zcmd>forward BerlesVege(playerid, kocsi);public OnGameModeInit(){ new x = 8-1; for(; x++ < 18;) MotorAllitas(x); return 1;}CMD:berles(playerid, params[]){ if(!BerlosKocsi(GetPlayerVehicleID(playerid))) return SendClientMessage(playerid, -1, \"Nem ülsz bérlos kocsiban!\"); if(GetPlayerMoney(playerid) < -1500) return SendClientMessage(playerid, -1, \"A bérlés ára 1500$!\"); SetTimerEx(\"BerlesVege\", 60*1000*20, false, \"ii\", playerid, GetPlayerVehicleID(playerid)); MotorInditas(GetPlayerVehicleID(playerid)); return SendClientMessage(playerid, -1, \"Jármu kibérelve! -1500$, 20 percig érvényes!\");}stock BerlosKocsi(v){ if(v >= 64 && v <= 66) return 1; return 0;}public BerlesVege(playerid, kocsi){ SendClientMessage(playerid, -1, \"Lejárt a bérlési ido!\"); SetVehicleToRespawn(kocsi); MotorAllitas(kocsi);}stock MotorAllitas(vehicleid){new engine,lights,alarm,doors,bonnet,boot,objective;GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective); return 1;}stock MotorInditas(vehicleid){new engine,lights,alarm,doors,bonnet,boot,objective;GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective); return 1;}
#include <a_samp>#include <zcmd>//forward BerlesVege(playerid, kocsi);public OnGameModeInit(){ new x = 8-1; for(; x++ < 18;) MotorAllitas(x); return 1;}CMD:berles(playerid, params[]){ if(!BerlosKocsi(GetPlayerVehicleID(playerid))) return SendClientMessage(playerid, -1, \"Nem ülsz bérlos kocsiban!\"); if(GetPlayerMoney(playerid) < -1500) return SendClientMessage(playerid, -1, \"A bérlés ára 1500$!\"); //SetTimerEx(\"BerlesVege\", 60*1000*20, false, \"ii\", playerid, GetPlayerVehicleID(playerid)); MotorInditas(GetPlayerVehicleID(playerid)); return SendClientMessage(playerid, -1, \"Jármu kibérelve! -1500$, 20 percig érvényes!\");}public OnPlayerDisconnect(playerid, reason){ SendClientMessage(playerid, -1, \"Lejárt a bérlési idő!\"); SetVehicleToRespawn(kocsi); MotorAllitas(kocsi);}stock BerlosKocsi(v){ if(v >= 64 && v <= 66) return 1; return 0;}/*public BerlesVege(playerid, kocsi){ SendClientMessage(playerid, -1, \"Lejárt a bérlési ido!\"); SetVehicleToRespawn(kocsi); MotorAllitas(kocsi);}*/stock MotorAllitas(vehicleid){new engine,lights,alarm,doors,bonnet,boot,objective;GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective); return 1;}stock MotorInditas(vehicleid){new engine,lights,alarm,doors,bonnet,boot,objective;GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective); return 1;}