Posts: 156
Threads: 46
Joined: Jul 2010
Reputation:
0
hmm i am making a role play server .. and how to something that will make two people a couple ? you know .. only if they are online .. you know .. random ids ..and set the partner id when you spawn .. or something like that .. is that posible ?
Posts: 156
Threads: 46
Joined: Jul 2010
Reputation:
0
OnPlayerSpawn(playerid)
{
new random = playerid +4;
partner[playerid] = random;
}
something like this ?
Posts: 156
Threads: 46
Joined: Jul 2010
Reputation:
0
lol..well do you have the answer ?
Posts: 1,466
Threads: 7
Joined: Jun 2009
Reputation:
0
Using foreach would be much easier as ****** has provided a function to check for a random connected player.
Posts: 156
Threads: 46
Joined: Jul 2010
Reputation:
0
And can i get the code for the getplayerdistance ...?
Posts: 2,431
Threads: 86
Joined: Nov 2009
Reputation:
0
jesus dude were not going to make the whole thing for you.