hello...im making an mini-cup plugin...when its finished, it should store all origins from players who participated, im doing it with:
PHP Code:
new origin[ 32 ][ 3 ]
//and then on finish:
new playerNum, players[ 32 ], id
get_players( players, playerNum )
for( new i = 0; i < playerNum; i++ )
{
id = players[ i ]
if( teleporting_p[ id ] )
{
entity_get_vector( id, EV_VEC_origin, origin[ id ] ) //ok get player's origin
}
}
so the point is to teleport all participans to each positions from the cup (with like set_task 2-3sec)
also, when everyone is teleported to an player's position it should stamp that player's name...i have no idea how to connect name + origin, and call them one by one...any help is welcome
EDIT:
im havin num_players which is adding the count on starting_cup(), so i will add somewhere:
PHP Code:
set_task( 2.0, "teleporting_p", id, _, _, "a", num_players )
but later what to do...to make (for) loop, and check if
PHP Code:
bool:player_is_playing[ id ]
//...then set
player_is_playing[ random( id ) ] = false //obvius i dont know how to controll differents IDs in a loop
to decrease one by one (so fewer teleports)..but it seems not that correct