new code..loops are that fast so it cant be executed as i expected to do..gonna try playrloop into originloop
PHP Code:
public teleport_origin1( id )
{
for( new i = 0; i < sizeof( origins ); i++ )
{
if( origins[ i ][ 0 ] == 0.0 ) continue
broj++
set_dhudmessage( 255, 85, 0, -1.0, 0.4, 0, 2.5, 2.5 )
show_dhudmessage( id, "Teleported to: %s", ime_brt[ i ] )
entity_set_vector( id, EV_VEC_origin, origins[ i ] )
client_print( id, print_console, "TP: BROJ: %d NIK:%s - %.01f %.01f %.01f", i, ime_brt[ i ], origins[ i ][0], origins[ i ][1], origins[ i ][2] )
if( origins[ i+1 ][ 0 ] != 0.0 )
{
client_print( id, print_chat, "debug: One more TP comming" )
set_task( 4.0, "teleport_origin1", id )
}
else
{
client_print( id, print_chat, "debug: No more TPs" )
}
if( broj >= broj_igraca )
{
origins[ i ][ 0 ] = 0.0
client_print( id, print_console, "DEBUG DEBUG Reseting origin[ %d ] to 0.0, broj = %d GO NEXT ORIG", i, broj )
broj = 0
}
break
}
}
if noone replies, its fine, at least i can see if i progressed at all lul
__________________