RSSy MYGO.pl Opublikowano Lipiec 6, 2021 o 14:50 RSSy Udostępnij Opublikowano Lipiec 6, 2021 o 14:50 This is the code, I dont understand how it works, but when a player uses it, he respawns in his base or in enemys base, I only want to make him respawn in his base. PHP Code: do_random_spawn(id){ static hull, sp_index, i; hull = (pev(id, pev_effects) & FL_DUCKING) ? HULL_HEAD : HULL_HUMAN; if (!g_spawnCount2) return; sp_index = random_num(0, g_spawnCount2 - 1); for (i = sp_index + 1; /*no condition*/; i++) { if (i >= g_spawnCount2) i = 0; if (is_hull_vacant(g_spawns2[i], hull)) { engfunc(EngFunc_SetOrigin, id, g_spawns2[i]); break; } if (i == sp_index) break; }} The function is called when another function detects if the player is stuck Przeczytaj cały wpis Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi