01.04.2013, 11:59
Hello,
I'm working on a new race game in my server, but the problem is when 5 or more players join the race they will get fucked up at the spawn, so I made the next thing, but it is not working correctly;
I made a function that spawns each player at another positions like the following image is showing you.
![](http://ucp.samp-xportal.com/race_debug.png)
Now I got the position of player1, my system is creating the other positions by adding coords, but this is only working on 1 map, when I load another map it will not work correctly because the cars having another angle, so when I add some numbers to the X and Y they are not getting in a line like it should, I know why this is but I dont know how to fix it, So my questions is, can someone show me a calculation that returns a positions near it, so something like,
GetNextPositions(currentx,currenty,currentangle,di stance = 3.0);
And this will create a positons near it.
I'm working on a new race game in my server, but the problem is when 5 or more players join the race they will get fucked up at the spawn, so I made the next thing, but it is not working correctly;
I made a function that spawns each player at another positions like the following image is showing you.
![](http://ucp.samp-xportal.com/race_debug.png)
Now I got the position of player1, my system is creating the other positions by adding coords, but this is only working on 1 map, when I load another map it will not work correctly because the cars having another angle, so when I add some numbers to the X and Y they are not getting in a line like it should, I know why this is but I dont know how to fix it, So my questions is, can someone show me a calculation that returns a positions near it, so something like,
GetNextPositions(currentx,currenty,currentangle,di stance = 3.0);
And this will create a positons near it.