Jump to content

طلب آآكواد


Recommended Posts

وش فايدة خلق شخصيه + سياره ؟

ولا قصدك وضيفة

table

هي الي تطلعهم في السكرين ؟

يب , خذ الاي دي حق كل شخصيه وسياره تبيها

وحطها بال

table

بس سوي 2

table

عشان لا شي يتلخبط

Link to comment

زي كذا

hassan = {} -- هنا بين القوسين تحط الاي دي حق السياره الي تبيها 
-- مثلاً 
-- hassan = { 
--540, 456 الخ ... 
--} 
hassanksa = {} -- هنا بين القوسين تحط الايدي حق الشخصيه الي تبيها 
-- مثلاً 
-- hassanksa = { 
--14, 0, 123 الخ... 
--} 
function hassanAgain() 
hassan[1] = createVehicle(getElementModel(getRootElement()), x, y, z, rx, ry, rz) 
hassanksa[1] = createPed(getElementModel(getRootElement()), x, y, z, rx, ry, rz) 
end 

Link to comment
addEvent("car1",true) 
addEventHandler("car1",root, 
function() 
     if (getPlayerMoney(source) >= 605000) then 
          takePlayerMoney(source,605000) 
          local x, y, z = getElementPosition(source) 
          vehicle = createVehicle(411, x, y, z)       
          warpPedIntoVehicle(source, vehicle) 
          outputChatBox("#ffffff"..getPlayerName(source).." #ffffff Buy Car ...", root, 255, 0, 0, true) 
     else 
          outputChatBox("You don't have $605000 to buy car", source, 255, 0, 0, true) 
     end 
end) 

Link to comment
Vehz = {} 
addEvent("sonata2012",true) 
addEventHandler("sonata2012",root, 
function() 
     if (getPlayerMoney(source) >= 605000) then 
          takePlayerMoney(source,605000) 
          if Vehz[source] then 
                 if isElement(Vehz[source]) then 
                        destroyElement(Vehz[source]) 
                 end 
          end 
          local x, y, z = getElementPosition(source) 
          Vehz[source] = createVehicle(411, x, y, z)       
          warpPedIntoVehicle(source, Vehz[source]) 
               setCameraMatrix(source, x-2,y-3,z,x,y,z) -- change the math numbers 
          fadeCamera(source, false) 
        setTimer ( fadeCamera , 50000, 1 ,source,true) 
        setTimer ( destroyElement , 50000, 1,  Vehz[source]) 
          outputChatBox("#ffffff"..getPlayerName(source).." #ffffff Buy Car ...", root, 255, 0, 0, true) 
     else 
          outputChatBox("You don't have $605000 to buy car", source, 255, 0, 0, true) 
     end 
end) 
  

Link to comment

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...