#Al-Ha[J]aRii Posted February 18, 2013 Share Posted February 18, 2013 Hey Guys I do script spawn how I got like this Spawn and take this player on the Air and this is my code ............... addEventHandler("onResourceStart", resourceRoot, start) Grove = createTeam("Grove") function start() setPlayerTeam( setPlayerTeam ( source, Grove ), Grove) end x,y,z = 0,0,0 skin = 2 function spawn(player) spawnPlayer(player,x,y,z,0,skin) fadeCamera(player,true) setCameraTarget(player,player) end addEventHandler("onResourceStart",resourceRoot, function () for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) addEventHandler("onPlayerJoin",root, function () spawn(source) end ) addEventHandler("onPlayerWasted",root, function () setTimer(spawn,3000,1,source) end ) function Alee() for i, TEAMS in ipairs ( getElementsByType("Grove") ) do if ( getTeamFriendlyFire ( TEAMS ) == true ) then setTeamFriendlyFire ( TEAMS, false ) end end end addEventHandler("onResourceStart", resourceRoot, Alee) Link to comment
iPrestege Posted February 18, 2013 Share Posted February 18, 2013 Loool You Are Trying To Do Same Gta-Ar DeathMatch ? And You're Code Make No Sense At All . Link to comment
#Al-Ha[J]aRii Posted February 18, 2013 Author Share Posted February 18, 2013 Loool You Are Trying To Do Same Gta-Ar DeathMatch ?And You're Code Make No Sense At All . I did't want same Gta-Ar DeathMatch but I want the code put like spawn button + the button left and right ! Link to comment
iPrestege Posted February 18, 2013 Share Posted February 18, 2013 Do it use guiEditor and createPed And SomeThing To Create it on the screen . Link to comment
#Al-Ha[J]aRii Posted February 18, 2013 Author Share Posted February 18, 2013 Do it use guiEditor and createPed And SomeThing To Create it on the screen . ok... I wil checked Link to comment
#Al-Ha[J]aRii Posted February 18, 2013 Author Share Posted February 18, 2013 Loool You Are Trying To Do Same Gta-Ar DeathMatch ?And You're Code Make No Sense At All . My Code Wrong ? Can u Fix it please ? Link to comment
iPrestege Posted February 18, 2013 Share Posted February 18, 2013 Loool You Are Trying To Do Same Gta-Ar DeathMatch ?And You're Code Make No Sense At All . My Code Wrong ? Can u Fix it please ? I'm not going to fix it why?Because it is all wrong Sorry.Double Posts !! Link to comment
tosfera Posted February 18, 2013 Share Posted February 18, 2013 @Alhajarii, this will be a client side script for sure. Else everyone will see flying players! To start off, we will need the following functions (correct me if I'm wrong, I haven't written it so I'm just thinking right now): createPed (use the client function for it!) guiCreateButton setElementModel getElementModel spawnPlayer (server side) Okee, I'm not writing the script for you, but I'll make an overview to see how the script is going to work; - player logs in - player will get the buttons and the standart skin (0) - player will choose the skin with the buttons - player presses the button - player will get spawned with the selected skin (ElementModel) Goodluck! tell me if you're stuck. Link to comment
#Al-Ha[J]aRii Posted February 18, 2013 Author Share Posted February 18, 2013 Thank you tosfera Link to comment
tosfera Posted February 18, 2013 Share Posted February 18, 2013 Thank you tosfera np, its cool to see people their interest in LUA and MTA. 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