Selecting someone random from team -
XStreeter - 16.12.2015
Hello i need something
i need to know how to choose someone random from team with name Team1
And Send an random ammount of money
Please help mee
Thanks
I rrlly need this please
Re: Selecting someone random from team -
prineside - 16.12.2015
You'll get no help with such a question. You should give us some code and explain how your team system works.
Re: Selecting someone random from team -
XStreeter - 16.12.2015
i dont have code
Just choose someone with randomid from "TEAM1" (The name of team) and give some money him. The money he will get will be randomly
Re: Selecting someone random from team -
prineside - 16.12.2015
No code? Sorry, but this is a
scripting help forum, there must be a code.
I don't know how to solve your problem and have no idea what kind of teams you are using. By the way, if you can't edit a code, you are not able to do anything that we can suggest.
Re: Selecting someone random from team -
XStreeter - 16.12.2015
I just dont have idea how to start it
Thats my problem
Re: Selecting someone random from team -
prineside - 16.12.2015
Well, maybe you should create team system first.
The simpliest way of doing this is to store team name as SetPVarString for each player, but it's too expensive for performance.
So you have no code? Did you write something in PAWN?
Re: Selecting someone random from team -
XStreeter - 16.12.2015
i have team
if(team[i] == TEAM_HUMAN)
Idk what other you need
i thing you dont need anything else because i think that system dont need any special from server
Re: Selecting someone random from team -
prineside - 16.12.2015
Well, I have no idea how you determine player's team and where you store info about player's team.
Re: Selecting someone random from team -
XStreeter - 16.12.2015
omg okay can you tell mee
How to chose an player randomly from "TEAM_HUMAN" just choose
nothing else
Re: Selecting someone random from team -
prineside - 16.12.2015
No, I don't know how your team system works and can just guess how to do that.