Vice City: Multiplayer

Server Development => Scripting and Server Management => Script and Content Requests => Topic started by: Luis_Labarca on Dec 27, 2016, 09:58 AM

Title: RandonPlayer
Post by: Luis_Labarca on Dec 27, 2016, 09:58 AM
Hello I come to see if I could help

well what I want is to make a player in an indicated worldeID randon
I want to choose the randon player to the random to someone that has the if(player.World == 3)
Title: Re: RandonPlayer
Post by: vito on Dec 27, 2016, 10:45 AM
create empty array
loop all players to check their world
push player's id in that array if player.world == 3
get random item of that array you have created http://forum.vc-mp.org/?topic=246.msg2638#msg2638
Title: Re: RandonPlayer
Post by: Luis_Labarca on Dec 28, 2016, 04:07 AM
Thanks @vito
Title: Re: RandonPlayer
Post by: jWeb on Dec 28, 2016, 02:59 PM
Here's one. totally randon http://forum.vc-mp.org/?action=profile;u=1365
Title: Re: RandonPlayer
Post by: Radon on Jan 07, 2017, 09:19 AM
Quote from: jWeb on Dec 28, 2016, 02:59 PMHere's one. totally randon http://forum.vc-mp.org/?action=profile;u=1365
ROFL, that's not Randon, you maybe wanted to miss a N near A and D. :D