03.04.2019, 18:06
Quote:
At the beginning of the idea it's the same, but Private200 added a nice touch to his idea at the end which is the touch I need, but I'm waiting for more ideas, more efficient ideas if there are any.
You need to read more dude, just read slowly and understand what you read. |
Quote:
What is left to do is a function that checks whether there is a free (boolean set to false) spawn point. If there is none, just choose a random one from the whole set of spawn points.
|
PHP Code:
for(new i = 0; i < MAX_SPAWN_POINTS; i++){
if(!IsSpawnPointUsed[i]){
SetSpawnInfo(playerid, playerteam, playerskin, wcrm_X[i], wcrm_Y[i], wcrm_Z[i], weapon, ammo, weapon, ammo, weapon, ammo);
IsSPawnPointUsed[i] = true;
}
}