duel system location
#3

Код:
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
EDIT: willbedie was faster
Reply


Messages In This Thread
duel system location - by PundacheMakalae - 02.02.2018, 20:57
Re: duel system location - by solstice_ - 02.02.2018, 21:01
Re: duel system location - by Hrb - 02.02.2018, 21:07
Re: duel system location - by Mugala - 02.02.2018, 21:09

Forum Jump:


Users browsing this thread: 1 Guest(s)