directshot Posted July 27, 2010 Share Posted July 27, 2010 Hello Community, I wanna change the spawnpoint, but i cant do that. I tested it with a script, but its still the old spawnpoint. Can anyone help me? My Favorite spawnpoint is in the grove street. Please i need help, iam bad in scripting. greetings, philipp Link to comment
directshot Posted July 27, 2010 Author Share Posted July 27, 2010 By scripting, but iam a noob... Please give me a way to change the spawnpoint to the groove street. Link to comment
directshot Posted July 27, 2010 Author Share Posted July 27, 2010 By that country house in LV.... the first spawnpoint in a created server. Link to comment
Maurize Posted July 27, 2010 Share Posted July 27, 2010 simply change the coordinates in your ressource "play" then broph.lua thats all Link to comment
AeroXbird Posted July 27, 2010 Share Posted July 27, 2010 directShot, i think 50p is asking you the code you use to spawn. not where. So post the code you use to spawn. (full function) Link to comment
directshot Posted July 28, 2010 Author Share Posted July 28, 2010 ok sorry 50p... but i try it. This is my broph script by my play resource. addEventHandler("onResourceStart", resourceRoot, function() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) function spawn(player) repeat until spawnPlayer ( player, -711+math.random(1,5), 957+math.random(5,9), 12.4, 90, math.random(9,288) ) fadeCamera(player, true) setCameraTarget(player, player) end addEventHandler("onPlayerJoin", root, function() spawn(source) end ) addEventHandler("onPlayerWasted", root, function() setTimer(spawn, 1800, 1, source) end ) And now, i dont know to change the spawn? please tell me Link to comment
NotAvailable Posted July 28, 2010 Share Posted July 28, 2010 I think he means like: First you spawn there & when you die spawnpoint 2 right? Link to comment
directshot Posted July 28, 2010 Author Share Posted July 28, 2010 hm maybe... my problem is: i cant know how i change it Link to comment
NotAvailable Posted July 28, 2010 Share Posted July 28, 2010 hm maybe... my problem is: i cant know how i change it go to: MTA San Andreas > Server > Mods > Deathmatch > Resources > Play > Broph.lua Link to comment
BumbiS* Posted July 28, 2010 Share Posted July 28, 2010 repeat until spawnPlayer ( player, -711+math.random(1,5), 957+math.random(5,9), 12.4, 90, math.random(9,288) ) Change the X,Y,Z coordinates. -711+math.random(1,5), 957+math.random(5,9), 12.4 Link to comment
directshot Posted July 28, 2010 Author Share Posted July 28, 2010 Thanks alot and now i try it... Link to comment
directshot Posted July 28, 2010 Author Share Posted July 28, 2010 OK, thanks. Now its working... thank you all! PS: Sorry for two posts and you are the best. See you! - Close - 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