03.08.2016, 17:20
Quote:
Example Code:
Код:
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: |