CLEO Help [Help] Get All Players

CLEO related
Status
Not open for further replies.

ejexter

Well-known member
Joined
Feb 21, 2014
Messages
211
Reaction score
0
How to get all connected players in server??
 

monday

Expert
Joined
Jun 23, 2014
Messages
1,127
Solutions
1
Reaction score
158
Code:
for 30@ = 0 to 1000 
    if 
    SAMP.IsPlayerConnected(30@)
    then
    //here you do anything for all the connected players 30@ = players
        if 
        1@ = SAMP.GetActorHandleByPlayerID(30@)
        then 
        //here you do anything for all the streamed in actors 1@ = actors
        end    
    end
end
 

monday

Expert
Joined
Jun 23, 2014
Messages
1,127
Solutions
1
Reaction score
158
[member=30996]Mr.Rider[/member]
He needed to "get" all connected players, which means that he needed to store them to a variable. Then he can create mod which is going to have an effect on all the players. For example count them.
 

Mr.Rider

Active member
Joined
Dec 13, 2014
Messages
129
Reaction score
0
monday link said:
[member=30996]Mr.Rider[/member]
He needed to "get" all connected players, which means that he needed to store them to a variable. Then he can create mod which is going to have an effect on all the players. For example count them.
ah got it ,got it, :watchout: i mean i understood what he tried to explain  :forever_opcode_alone:
 
Status
Not open for further replies.
Top