Selecting someone random from team
#1

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
Reply
#2

You'll get no help with such a question. You should give us some code and explain how your team system works.
Reply
#3

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
Reply
#4

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.
Reply
#5

I just dont have idea how to start it
Thats my problem
Reply
#6

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?
Reply
#7

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
Reply
#8

Well, I have no idea how you determine player's team and where you store info about player's team.
Reply
#9

omg okay can you tell mee
How to chose an player randomly from "TEAM_HUMAN" just choose
nothing else
Reply
#10

No, I don't know how your team system works and can just guess how to do that.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)