Jump to content

~DarkRacer~

Members
  • Posts

    130
  • Joined

  • Last visited

Everything posted by ~DarkRacer~

  1. مشكووووور اخي اسامة :D
  2. Hi, i'm a beginner in LUA scripting, i've made a code and i don't know what's wrong...? function changeCar( player ) if ( getPlayerTeam ( player ) ) then local r, g, b = getTeamColor ( getPlayerTeam ( player ) ) setVehicleColor ( source, r, g, b ) end end addEventHandler( "onVehicleEnter", root,changeCar) the code is so simple it makes your car's color as same as your team's color. BTW i make it only for race (DM) this is the meta: <meta> <info name="CarCOLOR" description="blaBla" author="DarkRACER" type="script" version="1.0" /> <script scr="car.lua" /> </meta> please if you noticed anything wrong in this code reply as soon as you can, thanks.
  3. اخي اسامة انا جرب الكود حقق بس ما اشتغل على فكرة انا سويت كود من قبل زي حقق بس ما ادري ايش المشكلة ممكن توضح لي فكرة الـ "سيرفر" و "الكلاينت"
  4. السلام عليكم ورحمة الله وبركاته ممكن كود يخلي لون السيارة مثل لون التيم مثلًا لو كان لون التيم أحمر يصير لون السيارة أحمر طبعًا هذا الكلام ما يصير إلا في الريس وشكرًا
×
×
  • Create New...