Posts: 280
Threads: 45
Joined: Jun 2008
Reputation:
0
How do I define everyone in a specific vehicle as a playerid?
How do I define everyone on the server as a playerid?
Posts: 1,733
Threads: 20
Joined: Nov 2010
Reputation:
0
I don't know what you mean.
As soon as a player logs in, he is given a playerid, so you can use his id as a reference to that player.
You cannot force a playerid on somebody.
Posts: 372
Threads: 8
Joined: Jan 2011
Reputation:
0
Yeah, you can't actually change players ID. But you can set his id in multidimenisonal array and then use it as a group.
Posts: 280
Threads: 45
Joined: Jun 2008
Reputation:
0
No I mean like, say I wanted to do SendClientMessage to everyone. I would have to do SendClientMessage(playerid, blah blah blah); I want everyone on the server to be classified as that playerid.
(I KNOW there is SendClientMessageToAll, but this is an EXAMPLE)
Posts: 280
Threads: 45
Joined: Jun 2008
Reputation:
0
Perfect. And how can I do the same, except only for the players in a certain vehicle?
Posts: 720
Threads: 34
Joined: Dec 2010
Reputation:
0
do a loop, and check if the player is in a certain vehicle.