Hello
How to create a random player spawn in a specific map please ?
Thanks if you tell me how to :D
Printable View
Hello
How to create a random player spawn in a specific map please ?
Thanks if you tell me how to :D
if(loadout.GameMapId == 1 || loadout.GameMapId != ginfo_.mapId || loadout.Alive == 2)
{
GetSpawnPositionNewPlayer(loadout.GamePos, pos, dir);
pos->x += u_GetRandom(10, 120);
pos->z += u_GetRandom(10, 120);
return;
}
I spawn out of map (i have base and neutral spawn)