02-28-2011, 20:01
I need help with spawn AGAIN!!!(
Eekhoorns code for custom spawn points works, but you know, the coordinates I paste to the code are used as spawn points ON ALL MAPS so who knows on some maps i can even spawn in a wall. how can I do DIFFERENT spawnpoints for DIFFERENT maps using this code
or any other?
THX, G-Man.
Eekhoorns code for custom spawn points works, but you know, the coordinates I paste to the code are used as spawn points ON ALL MAPS so who knows on some maps i can even spawn in a wall. how can I do DIFFERENT spawnpoints for DIFFERENT maps using this code
PHP Code:
//goes onplayerspawned
if(self.team == "allies") self thread doallies();
else if(self.team == "axis") self thread doaxis();
doallies()
{
//1111,2222,3333 represents the spawn's coordinate, the function automaticly creates other spawnpoints around it so you don't all spawn on the same place,
//be sure to take a free area so you don't spawn in a tree close to your spawnpoint
self setOrigin((1111 - (25 * self GetEntityNumber()), 2222, 3333));
self setPlayerAngles((0,0,0));
}
doaxis()
{
self setOrigin((1111 - (25 * self GetEntityNumber()), 2222, 3333));
self setPlayerAngles((0,0,0));
}
THX, G-Man.