XI_Alooy1212_IX Posted July 8, 2014 Share Posted July 8, 2014 السلام عليكم ورحة الله وبركاته . x,y,z = getElementPosition( source ) ابي كود يتعرف مكان السباون ادأ مات يرجع يلعب مرة ثانية للريس ^ اتمنى الكل يفهم ^ - -- --- ---- Link to comment
#DRAGON!FIRE Posted July 8, 2014 Share Posted July 8, 2014 تقصد يوم يموت يرجع محل ما مات تقصد سكربت .. Respawn ? Link to comment
XI_Alooy1212_IX Posted July 8, 2014 Author Share Posted July 8, 2014 لا, يرجع محل السباون الماب الأسأسي Link to comment
Max+ Posted July 8, 2014 Share Posted July 8, 2014 يقصد اذا مت بالريس . . تموت بمكان معين .. يبيه يرجع لنفس المكان . . ماقترح تسويه طيب لو مات بالمويه ؟ عالعموم ., Event : onPlayerWasted getElementPosition spawnPlayer Link to comment
#DRAGON!FIRE Posted July 8, 2014 Share Posted July 8, 2014 هو مداكـ .. بس بصير اخطاء كثيرة لانه قيم مود الريس يسوي السيارات والخ .. لو تبي يوم يطيح يمديكـ Link to comment
#DRAGON!FIRE Posted July 9, 2014 Share Posted July 9, 2014 function getMapData(data,valueData) ------- Function Hassan if ( data and valueData ) then for i,v in ipairs(getElementsByType(data)) do if ( v ) then local value = getElementData(v,valueData) if ( value ) then return value else return outputDebugString("Bad Argument value data .",1) end else return outputDebugString("Bad Argument data .",1) end end else return outputDebugString("Please Add data / value data .",1) end end addCommandHandler( "addMe", function( player ) local id = getMapData("spawnpoint","vehicle") local px = getMapData("spawnpoint","posX") local py = getMapData("spawnpoint","posY") local pz = getMapData("spawnpoint","posZ") local rx = getMapData("spawnpoint","rotX") local ry = getMapData("spawnpoint","rotY") local rz = getMapData("spawnpoint","rotZ") if ( id and px and py and pz and rx and ry and rz ) then if ( getPedOccupiedVehicle( player ) ) then setElementModel( getPedOccupiedVehicle( player ), tonumber( id ) ) setElementPosition( getPedOccupiedVehicle( player ), px, py, pz ) setElementRotation( getPedOccupiedVehicle( player ), rx, ry, rz ) end end end ) Link to comment
XI_Alooy1212_IX Posted July 9, 2014 Author Share Posted July 9, 2014 function getMapData(data,valueData) ------- Function Hassan if ( data and valueData ) then for i,v in ipairs(getElementsByType(data)) do if ( v ) then local value = getElementData(v,valueData) if ( value ) then return value else return outputDebugString("Bad Argument value data .",1) end else return outputDebugString("Bad Argument data .",1) end end else return outputDebugString("Please Add data / value data .",1) end end addCommandHandler( "addMe", function( player ) local id = getMapData("spawnpoint","vehicle") local px = getMapData("spawnpoint","posX") local py = getMapData("spawnpoint","posY") local pz = getMapData("spawnpoint","posZ") local rx = getMapData("spawnpoint","rotX") local ry = getMapData("spawnpoint","rotY") local rz = getMapData("spawnpoint","rotZ") if ( id and px and py and pz and rx and ry and rz ) then if ( getPedOccupiedVehicle( player ) ) then setElementModel( getPedOccupiedVehicle( player ), tonumber( id ) ) setElementPosition( getPedOccupiedVehicle( player ), px, py, pz ) setElementRotation( getPedOccupiedVehicle( player ), rx, ry, rz ) end end end ) سيرفر ؟ Link to comment
#DRAGON!FIRE Posted July 9, 2014 Share Posted July 9, 2014 function getMapData(data,valueData) ------- Function Hassan if ( data and valueData ) then for i,v in ipairs(getElementsByType(data)) do if ( v ) then local value = getElementData(v,valueData) if ( value ) then return value else return outputDebugString("Bad Argument value data .",1) end else return outputDebugString("Bad Argument data .",1) end end else return outputDebugString("Please Add data / value data .",1) end end addCommandHandler( "addMe", function( player ) local id = getMapData("spawnpoint","vehicle") local px = getMapData("spawnpoint","posX") local py = getMapData("spawnpoint","posY") local pz = getMapData("spawnpoint","posZ") local rx = getMapData("spawnpoint","rotX") local ry = getMapData("spawnpoint","rotY") local rz = getMapData("spawnpoint","rotZ") if ( id and px and py and pz and rx and ry and rz ) then if ( getPedOccupiedVehicle( player ) ) then setElementModel( getPedOccupiedVehicle( player ), tonumber( id ) ) setElementPosition( getPedOccupiedVehicle( player ), px, py, pz ) setElementRotation( getPedOccupiedVehicle( player ), rx, ry, rz ) end end end ) سيرفر ؟ yup Link to comment
XI_Alooy1212_IX Posted July 9, 2014 Author Share Posted July 9, 2014 function getMapData(data,valueData) ------- Function Hassan if ( data and valueData ) then for i,v in ipairs(getElementsByType(data)) do if ( v ) then local value = getElementData(v,valueData) if ( value ) then return value else return outputDebugString("Bad Argument value data .",1) end else return outputDebugString("Bad Argument data .",1) end end else return outputDebugString("Please Add data / value data .",1) end end addCommandHandler( "addMe", function( player ) local id = getMapData("spawnpoint","vehicle") local px = getMapData("spawnpoint","posX") local py = getMapData("spawnpoint","posY") local pz = getMapData("spawnpoint","posZ") local rx = getMapData("spawnpoint","rotX") local ry = getMapData("spawnpoint","rotY") local rz = getMapData("spawnpoint","rotZ") if ( id and px and py and pz and rx and ry and rz ) then if ( getPedOccupiedVehicle( player ) ) then setElementModel( getPedOccupiedVehicle( player ), tonumber( id ) ) setElementPosition( getPedOccupiedVehicle( player ), px, py, pz ) setElementRotation( getPedOccupiedVehicle( player ), rx, ry, rz ) end end end ) ابي ترايقر سيرفر سيرفر ؟ yup Link to comment
XI_Alooy1212_IX Posted July 9, 2014 Author Share Posted July 9, 2014 ابي ترايقر سيرفر + ايفنت Link to comment
#Al-Ha[J]aRii Posted July 10, 2014 Share Posted July 10, 2014 ابي ترايقر سيرفر + ايفنت مافهمت وش قصدك اذا تبي تريقر من كلنت للسيرفر triggerServerEvent 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