Raised This Month: $51 Target: $400
 12% 

3 dim array ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
JocAnis
Veteran Member
Join Date: Jun 2010
Old 09-17-2018 , 20:06   3 dim array ?
Reply With Quote #1

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 origin32 ][ ]

//and then on finish:

new playerNumplayers32 ], id
get_players
playersplayerNum 
for( new 
0playerNumi++ )
{
    
id players]
    if( 
teleporting_pid ] )
    {
        
entity_get_vectoridEV_VEC_originoriginid ] ) //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_task2.0"teleporting_p"id__"a"num_players 
but later what to do...to make (for) loop, and check if
PHP Code:
bool:player_is_playingid ]
//...then set 
player_is_playingrandomid ) ] = 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

Last edited by JocAnis; 09-18-2018 at 07:59. Reason: trying something, but my brain is stupid
JocAnis is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:06.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode