SycroX Posted November 6, 2015 Share Posted November 6, 2015 السلام عليكم عندي مشكلة فلكود انا مسوي مود فايب و مسوي زر اعطاء سيارة المشكلة هي ان كل ما الاعب يدوس علي الزر يعطيه السيارة تمام بس لو لاعب تاني داس علي الزر تتسحب السيارة من الأول و تروح للتاني وش الحل function VIPCAR ( ) if isPedInVehicle ( source ) then exports["guimessages"]:outputServer(source,"#00ff00[VIP System] :#ffff00 Exit your car first ! ",250,128,114,true) cancelEvent () else x,y,z = getElementPosition ( source ) if isElement(VIPCar) then destroyElement(VIPCar) end VIPCar = createVehicle ( 411, x, y, z ) warpPlayerIntoVehicle ( source, VIPCar ) text = "VIP Car" exports["guimessages"]:outputServer(source,"#00ff00[VIP System] :#ffff00 You Has Got VIP Car !",80,120,200,true) setVehiclePlateText ( VIPCar, text ) setVehicleDamageProof ( VIPCar, true ) end end addEvent( "CarVIP", true ) addEventHandler( "CarVIP", getRootElement(), VIPCAR ) Link to comment
!#NssoR_) Posted November 6, 2015 Share Posted November 6, 2015 VIPCar = {} function VIPCARs ( ) if isPedInVehicle ( source ) then exports["guimessages"]:outputServer(source,"#00ff00[VIP System] :#ffff00 Exit your car first ! ",250,128,114,true) cancelEvent () else x,y,z = getElementPosition ( source ) if isElement(VIPCar[source]) then destroyElement(VIPCar[source]) end VIPCar[source] = createVehicle ( 411, x, y, z ) warpPlayerIntoVehicle ( source, VIPCar[source] ) local text = "VIP Car" exports["guimessages"]:outputServer(source,"#00ff00[VIP System] :#ffff00 You Has Got VIP Car !",80,120,200,true) setVehiclePlateText ( VIPCar[source], text ) setVehicleDamageProof ( VIPCar[source], true ) end end addEvent( "CarVIP", true ) addEventHandler( "CarVIP", getRootElement(), VIPCARs ) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now