Jump to content

تم الفاده من قبل Mr.Pres[T]ege


yazan

Recommended Posts

سلام عليكم

بغلبك معي

ودي كود سياره خاصه

لا يمكن اركبها غيري جربت كود عناد ما شتغل معي او ما عرفت اعمله يا ريت طرح كود

____________________

كود عناد يلي عدلت عليه مسحته | :idea::idea::idea::idea:

____________________

Edited by Guest
Link to comment
addCommandHandler ( "vehicle", 
            function ( thePlayer, cmd, id ) 
                    x, y, z = getElementPosition ( thePlayer )   
                    theVehicle = createVehicle ( tonumber(id), x, y + 3, z ) 
            end 
        ) 
                  
        addEventHandler ( "onVehicleStartEnter", root, 
            function ( thePlayer, theSeat ) 
                if source == theVehicle then 
                    if ( theSeat == 0 ) and ( getPlayerSerial ( thePlayer ) ~= "سريالكـ هنا!!" ) then       
                        cancelEvent ( ) 
                        outputChatBox ( "* ~][ هذه السيارة خاصة  ][~", thePlayer, 255, 255, 0, true ) 
                    else 
                        outputChatBox ( "* ~][ مرحبـآ بك في المركبة الخاصةة ][~", thePlayer, 255, 0, 0, true ) 
                        setVehicleDamageProof(theVehicle, true) 
                    end 
                end 
            end 
        ) 

سيرفر وشلت اذا كان الاعب بـ قروب ادمن او معين :) .

Link to comment

الكود يسير كذا ؟

addCommandHandler ( "car",

function ( thePlayer, cmd, 402 )

x, y, z = getElementPosition ( thePlayer )

theVehicle = createVehicle ( tonumber(id), x, y + 3, z )

end

)

addEventHandler ( "onVehicleStartEnter", root,

function ( thePlayer, theSeat )

if source == theVehicle then

if ( theSeat == 0 ) and ( getPlayerSerial ( thePlayer ) ~= "baee69a296db2edecc91449721fc56a1" ) then

cancelEvent ( )

outputChatBox ( "* ~][ سياره خاصه ب يـز ـن ][~", thePlayer, 255, 255, 0, true )

else

outputChatBox ( "* ~][ مرحبا بيك يا يزن في سيارت الخاصه ][~", thePlayer, 255, 0, 0, true )

setVehicleDamageProof(theVehicle, true)

end

end

end

)

Link to comment
addCommandHandler ( "car", 
 function ( thePlayer, cmd ) 
 x, y, z = getElementPosition ( thePlayer )  
 theVehicle = createVehicle ( 402, x, y + 3, z ) 
 end 
 ) 
  
 addEventHandler ( "onVehicleStartEnter", root, 
 function ( thePlayer, theSeat ) 
 if source == theVehicle then 
 if ( theSeat == 0 ) and ( getPlayerSerial ( thePlayer ) ~= "baee69a296db2edecc91449721fc56a1" ) then  
 cancelEvent ( ) 
 outputChatBox ( "* ~][ سياره خاصه ب يـز ـن ][~", thePlayer, 255, 255, 0, true ) 
 else 
 outputChatBox ( "* ~][ مرحبا بيك يا يزن في سيارت الخاصه ][~", thePlayer, 255, 0, 0, true ) 
 setVehicleDamageProof(theVehicle, true) 
         end 
     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...