random player help Code!
i want wehen i write /random example : amxx selected player roki and when roki is already selected by the plugin and when you write again / random not to select roki only the other players who are not selected roki not to be selected a second time by the plugin I need such a function
Code:
#include <amxmodx> |
Re: random player help Code!
Quote:
I know that I've seen a thread about choosing a random player/number without repeating a player/number but I'm not able to find it at the moment. See if you can find this on the forums somewhere. I have a feeling it might be by Bugsy because he's got a bunch of good code on here. However, it might only be useful for numbers and a more robust method might be required to handle players because the list of players could actually change between executions of the command. But, it would be a good start and would probably be "good enough" for what you need. |
Re: random player help Code!
here
... Code:
Give this a test it should work as intended.. |
Re: random player help Code!
Quote:
And yea, as i see my checks now it makes sense it won't work as it should. I'll see if i can find the thread you're talking about. EDIT: I couldn't find the post you were talking about, so i took my time to work on this a little bit. Not a lot of work, untested, but is probably already way better than what it was first though. I found one post though, by Connor: https://forums.alliedmods.net/showpo...64&postcount=4 PHP Code:
|
Re: random player help Code!
Quote:
TLDR: You'll get eaten by a dinosaur! |
Re: random player help Code!
as for the solution i'd recommend using the function i wrote in post #4
|
Re: random player help Code!
Quote:
I tried all the codes from the people who answered here but the codes don't work and wehen i type /random server get crash by this code |
Re: random player help Code!
Quote:
|
Re: random player help Code!
Quote:
|
Re: random player help Code!
Quote:
so need like this ? Code:
#include <amxmodx> |
| All times are GMT -4. The time now is 14:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.