Random player got tagged
Hello!
I need help with a code that make a random player gets tagged. The chance should be 1 in 100 (1%-100) that a player gets tagged each round. If a player is tagged, the other players get a message that reads like this: Message: [Point Mod] "Name" has been tagged! Kill him and get a reward of "X" Points! and for him who have been tagged should a message like this look like: Message: [Point Mod] You have been tagged, survive the round and get a reward of "X" Points! X Points will vary (change) between 10 to 30 Points. I would be grateful for help. Regards zeLentN |
Re: Random player got tagged
Could you link to the point mod you're using?
This should've been placed in request section. (Keep it here until a mod moves it, don't create a new thread) |
Re: Random player got tagged
|
Re: Random player got tagged
Something like this?
PHP Code:
|
Re: Random player got tagged
Perfect!
But how do i get "random_num" on the Points, between 0 - 30 Points? I am using the variable g_iPoints, however. Thanks. |
Re: Random player got tagged
g_iPoints += random_num(0, 30)
|
Re: Random player got tagged
I can Edit my little plugin above
Tomrrow when i got a little more time |
Re: Random player got tagged
#6
Thanks #7 That would be nice. |
Re: Random player got tagged
Here's what I would do.
I haven't actually tested it. Code:
|
Re: Random player got tagged
#9
Wonderful. I will test it as soon as I get home. |
| All times are GMT -4. The time now is 19:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.