Block Buy for Individual Player
I have a plugin that will choose a random player from the TE team at player spawn. I would like to block that player from buying anything/anyway. The other players on that team could still buy. Can you show me an example of the code to use?
PHP Code:
|
Re: Block Buy for Individual Player
Search for plugins that block buying and just add if(id!=random_player) return plugin_continue where id is id of player called the block function and random_player is your player.
|
Re: Block Buy for Individual Player
Can this be used on a single player? Can you show how to apply it to my random player from above post?
PHP Code:
|
Re: Block Buy for Individual Player
PHP Code:
|
Re: Block Buy for Individual Player
Wouldn't you have to set the No buyzone in the round start since its a different random player each round?
PHP Code:
PHP Code:
PHP Code:
|
Re: Block Buy for Individual Player
Thanks guys! It's working great.
|
Re: Block Buy for Individual Player
You only need to register the message once, so only use it in plugin_init().
|
| All times are GMT -4. The time now is 04:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.