03.08.2016, 12:46
Example Code:
https://sampforum.blast.hk/showthread.php?tid=591010
Bird's-eye view:
Код:
new max_players = 0, idx = 0; for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++){ if(IsPlayerConnected(i)){ max_players++; //count players } } for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++){ if(IsPlayerConnected(i)){ new Float:tx, Float:ty, Float:tz, Float:angle; GetRandomClockPos(x,y,z, 15.0, tx,ty,tz,angle,single_clock(max_players,idx)); // center position distance SetPlayerPos(i,tx,ty,tz); SetPlayerFacingAngle(i,angle); SetCameraBehindPlayer(i); idx++; } }
Bird's-eye view: