saitama Posted July 14, 2016 Share Posted July 14, 2016 السلام عليكم انا عندي ذا الكود function r() local a = getLocalPlayer() local x, y, z = getElementPosition ( a ) createVehicle (411, x, y, z + 200 ) end addCommandHandler( "nob", r ) المشكلة تنزل اكثر من سيارة ابي سيارة وحدة بس Link to comment
^iiEcoo'x_) Posted July 14, 2016 Share Posted July 14, 2016 روح للميتا حق الفري روم روح سطر 80 name="*vehicles/maxperplayer" value="[2]" ذا السطر عدل عليه Link to comment
^iiEcoo'x_) Posted July 14, 2016 Share Posted July 14, 2016 انا فهمت طلبك غير اعذرني !! Link to comment
!#NssoR_) Posted July 14, 2016 Share Posted July 14, 2016 function r() if ( isElement(veh) ) then return end local x, y, z = getElementPosition ( getLocalPlayer() ) veh = createVehicle (411, x, y, z + 200 ) end addCommandHandler( "nob", r ) Link to comment
saitama Posted July 14, 2016 Author Share Posted July 14, 2016 مشكور لكن لو بخليه يكتب بالشات سيارة تظهر له ؟ Link to comment
Me[Z]oO Posted July 14, 2016 Share Posted July 14, 2016 (edited) Car = {} function create(p) pos = {getElementPosition(p)} if isElement(Car[p]) then destroyElement(Car[p]) end Car[p] = createVehicle(411,pos[1]+2 ,pos[2] ,pos[3]) outputChatBox(' تم الحصول علي سيارة ',p ,0,255,0) end addCommandHandler('nob',create) ملف سيرفر Edited July 14, 2016 by Guest Link to comment
#Soking Posted July 14, 2016 Share Posted July 14, 2016 Car[p] = اعتقد ناسي انك تحط جدول لـ Link to comment
#Soking Posted July 14, 2016 Share Posted July 14, 2016 function create(p) pos = {getElementPosition(p)} if isElement(Car[p]) then destroyElement(Car[p]) end Car[p] = createVehicle(411,pos[1]+2 ,pos[2] ,pos[3]) outputChatBox(' تم الحصول علي سيارة ',p ,0,255,0) end addCommandHandler('nob',create) ملف سيرفر Link to comment
Me[Z]oO Posted July 14, 2016 Share Posted July 14, 2016 لا مو ناسيها وانا انسخ الكود من الملف نسيت انسخ الجدول Link to comment
#Soking Posted July 14, 2016 Share Posted July 14, 2016 Car = { } addCommandHandler('nob', function ( Player ) if ( isElement(Car[Player]) ) then destroyElement(Car[Player]) end Pos = { getElementPosition(Player)} Car[Player] = createVehicle(411,Pos[1]+2 ,Pos[2] ,Pos[3]) outputChatBox(' تم الحصول علي سيارة ',Player , 0, 255 ,0 , true ) end ) اها عالاعموم الكود Link to comment
' A F . Posted July 17, 2016 Share Posted July 17, 2016 -- # Server Side local Table = { }; addEventHandler("onPlayerChat",root, function ( Message , Type ) if ( Type == 0 and Message == "سيارة" or Message == "سياره" ) then if ( isElement ( Table [ source ] ) ) then destroyElement ( Table [ source ] ) end local Position = { getElementPosition ( source ) }; Table [ source ] = createVehicle ( 411 , Position [ 1 ] , Position [ 2 ] , Position [ 3 ] ) warpPedIntoVehicle ( source , Table [ source ] ) end end ); أكتب بـ الشات سيارة او سياره عشان يعطيك 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