Jump to content

al-Kobra

Members
  • Posts

    740
  • Joined

  • Last visited

Everything posted by al-Kobra

  1. اول شي ضيف مود القروبات الى قروب الادمن ,, الاحتلال : https://community.multitheftauto.com/ind ... ls&id=8123 هذا على القروب سيستم مال احمد فيف
  2. giveWeapon createVehicle setTimer givePlayerMoney والباقي مدري شلون
  3. يمكن عندك غلط في الاحداثيات ,, اذا بتاخد احداثيات لا تشغل الاديتور ,, نزل لك مود pos وخذ منه الاحداثيات
  4. سو مود function pedweapon ( ) ped = createPed ( ايدي الشخصية الا تبغيها, X, Y, Z ) giveWeapon ( ped, ايدي السلاح ) end addEventHandler ( "onResourceStart", getResourceRootElement(), pedweapon ) بدل x,y,z الى الاحداثيات الا تبغيها
  5. RaceCars = { "ايدي السيارة الاولى مثلا 432", "ايدي السيارة الثانية" } addEventHandler('onPlayerChat',root, function(msg) if string.find(msg,'سباق') then setElementPosition ( source, X, Y, Z ) local RaceVehicle = createVehicle ( RaceCars, x, y, z) warpPedIntoVehicle ( source, RaceVehicle ) end end ) setElementPosition ( source, X, Y, Z ) -- بدل x الى الاحداثية تبعها و z و y الكود كلاينت كلاينت ؟؟؟ من جدك ؟ الكود سيرفر اووه بالغلط
  6. RaceCars = { "ايدي السيارة الاولى مثلا 432", "ايدي السيارة الثانية" } addEventHandler('onPlayerChat',root, function(msg) if string.find(msg,'سباق') then setElementPosition ( source, X, Y, Z ) local RaceVehicle = createVehicle ( RaceCars, x, y, z) warpPedIntoVehicle ( source, RaceVehicle ) end end ) setElementPosition ( source, X, Y, Z ) -- بدل x الى الاحداثية تبعها و z و y الكود سيرفر
  7. انت كنت مسوي if isElement( TableCars[source] ) then destroyElement( TableCars[source] ) end وانا سويتها كذا if isElement( TableCars[source] ) then destroyElement( TableCars[source] ) end ضبط معاك ولا لا ؟
  8. انت سويت الكود لو بس بتنسخ الفنكشنات ؟
  9. ===> سيرفر <===== TableCars = {} addEvent('gvoa', true) addEventHandler('gvoa', root, function( nameCar ) if isElement( TableCars[source] ) then destroyElement( TableCars[source] ) end local id = getVehicleModelFromName( nameCar ) if id == 487 or id == 548 then local x, y, z = unpack( AircraftIdSpawn[math.random(#AircraftIdSpawn)] ) TableCars[source] = createVehicle( id, x, y, z ) if not TableCars[source] then return end warpPedIntoVehicle ( source, TableCars[source] ) return end local x,y,z = getElementPosition( source ) TableCars[source] = createVehicle( id, x,y,z ) if not TableCars[source] then return end warpPedIntoVehicle ( source, TableCars[source] ) addVehicleUpgrade(TableCars[source], 1147) addVehicleUpgrade(TableCars[source], 1041) addVehicleUpgrade(TableCars[source], 1035) addVehicleUpgrade(TableCars[source], 1010) addVehicleUpgrade(TableCars[source], 1171) addVehicleUpgrade(TableCars[source], 1149) setVehiclePaintjob(TableCars[source], 1) end ) addEventHandler('onPlayerQuit', root, function() if isElement( TableCars[source] ) then destroyElement( TableCars[source] ) end end ) addEventHandler("onVehicleStartEnter", getResourceRootElement(getThisResource()), function(player,seat) if getElementData( player, 'Group' ) == groupName and getPlayerTeam( player ) and getTeamName( getPlayerTeam( player ) ) == 'No Team' then return end if seat == 0 then outputChatBox("Group " .. groupName .. " Only", player, 255, 0, 0, true) cancelEvent() end end )
  10. وش يطلع لك في الديبوق ؟؟ debugscript 3
  11. اعتقد كذا ,, : addEventHandler('onPlayerChat',root, function(msg) if string.find(msg,'ديربي') then setElementPosition ( source, X, Y, Z ) end end ) بدل X,Y,Z بالاحداثيات الا تبغيها ومرة ثانية حاول تعتمد على روحك
  12. "onPlayerChat" string.find setElementPosition
×
×
  • Create New...