02.02.2018, 21:07
Код:
new Float:Dueler_Pos[][] = { {12.0, 12.0, 12.0}, // Line ID 0 - Pos X , Pos Y, Pos Z {11.0, 11.0, 11.0}, // Line ID 1 - Pos X , Pos Y, Pos Z {10.0, 10.0, 10.0} // Line ID 2 - Pos X , Pos Y, Pos Z }; // example of 3 positions new r = random(sizeof(Dueler_Pos)); // random line from Dueler_Pos, from 0 to sizeof(Dueler_Pos) (3) SetPlayerPos(dueler1, Dueler_Pos[r][0], Dueler_Pos[r][1], Dueler_Pos[r][2]); //[0], [1], [2] position of variable on "r" line