XI_Alooy1212_IX Posted July 8, 2014 Posted July 8, 2014 السلام عليكم ورحة الله وبركاته . x,y,z = getElementPosition( source ) ابي كود يتعرف مكان السباون ادأ مات يرجع يلعب مرة ثانية للريس ^ اتمنى الكل يفهم ^ - -- --- ----
#DRAGON!FIRE Posted July 8, 2014 Posted July 8, 2014 تقصد يوم يموت يرجع محل ما مات تقصد سكربت .. Respawn ?
Max+ Posted July 8, 2014 Posted July 8, 2014 يقصد اذا مت بالريس . . تموت بمكان معين .. يبيه يرجع لنفس المكان . . ماقترح تسويه طيب لو مات بالمويه ؟ عالعموم ., Event : onPlayerWasted getElementPosition spawnPlayer
#DRAGON!FIRE Posted July 8, 2014 Posted July 8, 2014 هو مداكـ .. بس بصير اخطاء كثيرة لانه قيم مود الريس يسوي السيارات والخ .. لو تبي يوم يطيح يمديكـ
#DRAGON!FIRE Posted July 9, 2014 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 )
XI_Alooy1212_IX Posted July 9, 2014 Author 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 ) سيرفر ؟
#DRAGON!FIRE Posted July 9, 2014 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
XI_Alooy1212_IX Posted July 9, 2014 Author 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
#Al-Ha[J]aRii Posted July 10, 2014 Posted July 10, 2014 ابي ترايقر سيرفر + ايفنت مافهمت وش قصدك اذا تبي تريقر من كلنت للسيرفر triggerServerEvent
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