Scripting Moderators xLive Posted July 22, 2016 Scripting Moderators Share Posted July 22, 2016 آلفنكشن الأول إعطآء اللآعب درع آلنفكشن الثآني إعطآء لآعب سيآرة دورتهم بآلويكي م لقيتهم Link to comment
Adham Posted July 22, 2016 Share Posted July 22, 2016 (edited) setPlayerArmor الطلب التاني givePlayerVehicle Table = {} function givePlayerVehicle(thePlayer,ID) if getElementType (thePlayer) == "player" then if type(ID) == "number" then if thePlayer and ID then local x,y,z = getElementPosition(thePlayer) Table[thePlayer] = createVehicle(tonumber(ID),x,y,z) warpPedIntoVehicle(thePlayer,Table[thePlayer]) else error("There is Argument minus") end else error("Bad Argument 2 must number") end else error("Bad Argument 1 must player") end end givePlayerVehicle(source,id) source = علي حسب كودك Edited July 22, 2016 by Guest Link to comment
Scripting Moderators xLive Posted July 22, 2016 Author Scripting Moderators Share Posted July 22, 2016 setPlayerArmor الطلب التاني givePlayerVehicle Le3bA .شكرآ أخوي Link to comment
فاّرس Posted July 22, 2016 Share Posted July 22, 2016 setPlayerArmor الطلب التاني givePlayerVehicle Table = {} function givePlayerVehicle(thePlayer,ID) if getElementType (thePlayer) == "player" then if type(ID) == "number" then if thePlayer and ID then local x,y,z = getElementPosition(thePlayer) Table[thePlayer] = createVehicle(tonumber(ID),x,y,z) warpPedIntoVehicle(thePlayer,Table[thePlayer]) else error("There is Argument minus") end else error("Bad Argument 2 must number") end else error("Bad Argument 1 must player") end end givePlayerVehicle(source,id) source = علي حسب كودك This function is deprecated. This means that its use is discouraged and that it might not exist in future versions. Please use setPedArmor instead. + نفرض انه يبي يسوي السياره بإحداثيات معينه مايبيها على احداثيات اللاعب؟ الأفضل تعطية الوظيفه من الويكي, setPedArmor createVehicle 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