Jump to content

طلب فنكش


Recommended Posts

Posted

هلا شباب

انا ابي فنكش اول ما لاعب يكبس H

بسياره الشرطه

يصير فيه

الوان بسياره وين الاضائه

مره احمر ومره ازرق

وتايمر كمان

يا ريت تعطوني الفنكشات واي راد برات الموضوع يصير هو برات الموضوع

~ Soon - ~ قريبا

n-560x95_B6BF07_FFFFFF_0E6B20_000000.png

Posted
bindKey 
getPedOccupiedVehicle 
getElementModel 
setTimer 
setVehicleOverrideLights 
setVehicleLightState 
setVehicleHeadLightColor 
isTimer 
killTimer 

CiTLh.png
Posted

هريسه صح؟

bindKey ( "H", "down", 
function() 
local vehicle = getPedOccupiedVehicle ( source ) 
 if vehicle then 
 if getElementModel(theElement,599) طبعا لسياره ماني عارف شو احطلها 
 time = setTimer(roo,1*60000,0,ob) 
 EventHandler('lightS', root, function( veh ) 
    if ( getVehicleOverrideLights(veh) ~= 2 ) then 
     setVehicleLightState ( veh, 1, 0) 
     setVehicleHeadLightColor(veh, 0, 0, 255) 
     if messageType == 0 and isTimer(antiSpam[source]) then 
     if isTimer(blueTimers[theVehicle]) then killTimer(blueTimers[theVehicle]) 
      if isTimer(redTimers[theVehicle]) then killTimer(redTimers[theVehicle]) 
        end 
    end 
end 
) 

~ Soon - ~ قريبا

n-560x95_B6BF07_FFFFFF_0E6B20_000000.png

Posted
هريسه صح؟
bindKey ( "H", "down", 
function() 
local vehicle = getPedOccupiedVehicle ( source ) 
 if vehicle then 
 if getElementModel(theElement,599) طبعا لسياره ماني عارف شو احطلها 
 time = setTimer(roo,1*60000,0,ob) 
 EventHandler('lightS', root, function( veh ) 
    if ( getVehicleOverrideLights(veh) ~= 2 ) then 
     setVehicleLightState ( veh, 1, 0) 
     setVehicleHeadLightColor(veh, 0, 0, 255) 
     if messageType == 0 and isTimer(antiSpam[source]) then 
     if isTimer(blueTimers[theVehicle]) then killTimer(blueTimers[theVehicle]) 
      if isTimer(redTimers[theVehicle]) then killTimer(redTimers[theVehicle]) 
        end 
    end 
end 
) 

https://wiki.multitheftauto.com/wiki/Sc ... troduction -- English

https://wiki.multitheftauto.com/index.ph ... 8%AC%D9%87 -- Arabic

Posted
هريسه صح؟
bindKey ( "H", "down", 
function() 
local vehicle = getPedOccupiedVehicle ( source ) 
 if vehicle then 
 if getElementModel(theElement,599) طبعا لسياره ماني عارف شو احطلها 
 time = setTimer(roo,1*60000,0,ob) 
 EventHandler('lightS', root, function( veh ) 
    if ( getVehicleOverrideLights(veh) ~= 2 ) then 
     setVehicleLightState ( veh, 1, 0) 
     setVehicleHeadLightColor(veh, 0, 0, 255) 
     if messageType == 0 and isTimer(antiSpam[source]) then 
     if isTimer(blueTimers[theVehicle]) then killTimer(blueTimers[theVehicle]) 
      if isTimer(redTimers[theVehicle]) then killTimer(redTimers[theVehicle]) 
        end 
    end 
end 
) 

أكيد هريسة :lol::lol:

veh على أي اساس حاطط هنا

     setVehicleLightState ( veh, 1, 0) 
     setVehicleHeadLightColor(veh, 0, 0, 255) 

أول شي عرف الالمنت سوي كذا

local veh = getPedOccupiedVehicle ( source ) 

وهنا قاطش نص الكود

 EventHandler('lightS', root, function( veh ) 
  

root وليش هنا اخترت

مع انك كمان م عرفت تكتبها

وليش مو حاطط كود للتايمر انت بس حاطط تايمر كذا م يسوي شي م في وظيفة :roll:

time = setTimer(roo,1*60000,0,ob) 

theElement هنا كذلك الامر حط بدل

veh

وم تنسى تحط هذا الكود كمان

local veh = getPedOccupiedVehicle ( source )

وبدل 599 الي مو عارف وش تسوي بها حط الايدي حق السيارة حقت الشرطة

 if getElementModel(theElement,599) طبعا لسياره ماني عارف شو احطلها 

430x73_3CFF00_FF0000_000000_000000.png
  • 2 months later...
Posted

هريسههههههههههههههههههههههههههههههههههههههههههههههه

bindKey ( "H", "down", 
function() 
local vehicle = getPedOccupiedVehicle ( source ) 
local id = getElementModel(veh) 
    if (id == 598) or (id == 596) or (id == 597) or (id == 599) then 
setTimer ( Light, 1000, 0 ) 
setVehicleOverrideLights ( veh, 0 ) 
setVehicleOverrideLights ( veh, 1 ) 
setVehicleOverrideLights ( veh, 2 ) 
killTimer(p_timer[veh]) 
  
                        setVehicleLightState ( veh, 1, 0) 
  
                        setVehicleLightState ( veh, 2, 0) 
  
                        setVehicleLightState ( veh, 0, 1) 
  
                        setVehicleLightState ( veh, 3, 1) 
  
                        setVehicleHeadLightColor(veh, 0, 0, 255) 
  
                    else 
  
                        setVehicleLightState ( veh, 3, 0) 
  
                        setVehicleLightState ( veh, 0, 0) 
  
                        setVehicleLightState ( veh, 1, 1) 
  
                        setVehicleLightState ( veh, 2, 1)    
  
                        setVehicleHeadLightColor(veh, 255, 0, 0) 
  
                        p_lvar[veh] = 0 
  
                    end 
  
                end, 500, 0) 
  
                else 
  
                    p_lights[veh] = 0 
  
                    outputChatBox("#FFFFFFPolice-Lights #00FF00off.", thePlayer, 0, 200, 100, true) 
  
                    killTimer(p_timer[veh]) 
  
                    setVehicleLightState ( veh, 0, 0) 
  
                    setVehicleLightState ( veh, 1, 0) 
  
                    setVehicleLightState ( veh, 2, 0) 
  
                    setVehicleLightState ( veh, 3, 0)    
  
                    setVehicleHeadLightColor(veh, 255, 255, 255) 
  
                    setVehicleOverrideLights ( veh, 1 ) 
  
                end 
                 
  

~ Soon - ~ قريبا

n-560x95_B6BF07_FFFFFF_0E6B20_000000.png

Posted
هريسههههههههههههههههههههههههههههههههههههههههههههههه
bindKey ( "H", "down", 
function() 
local vehicle = getPedOccupiedVehicle ( source ) 
local id = getElementModel(veh) 
    if (id == 598) or (id == 596) or (id == 597) or (id == 599) then 
setTimer ( Light, 1000, 0 ) 
setVehicleOverrideLights ( veh, 0 ) 
setVehicleOverrideLights ( veh, 1 ) 
setVehicleOverrideLights ( veh, 2 ) 
killTimer(p_timer[veh]) 
  
                        setVehicleLightState ( veh, 1, 0) 
  
                        setVehicleLightState ( veh, 2, 0) 
  
                        setVehicleLightState ( veh, 0, 1) 
  
                        setVehicleLightState ( veh, 3, 1) 
  
                        setVehicleHeadLightColor(veh, 0, 0, 255) 
  
                    else 
  
                        setVehicleLightState ( veh, 3, 0) 
  
                        setVehicleLightState ( veh, 0, 0) 
  
                        setVehicleLightState ( veh, 1, 1) 
  
                        setVehicleLightState ( veh, 2, 1)    
  
                        setVehicleHeadLightColor(veh, 255, 0, 0) 
  
                        p_lvar[veh] = 0 
  
                    end 
  
                end, 500, 0) 
  
                else 
  
                    p_lights[veh] = 0 
  
                    outputChatBox("#FFFFFFPolice-Lights #00FF00off.", thePlayer, 0, 200, 100, true) 
  
                    killTimer(p_timer[veh]) 
  
                    setVehicleLightState ( veh, 0, 0) 
  
                    setVehicleLightState ( veh, 1, 0) 
  
                    setVehicleLightState ( veh, 2, 0) 
  
                    setVehicleLightState ( veh, 3, 0)    
  
                    setVehicleHeadLightColor(veh, 255, 255, 255) 
  
                    setVehicleOverrideLights ( veh, 1 ) 
  
                end 
                 
  

:wink: ناسخ الكود من القسم الروسي

https://forum.multitheftauto.com/viewtopic.php?f=141&t=38632&p=770224#p769859

CiTLh.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...