Noob question for roundstart event
I have a really noob question that I can't figure out the answer for. In the code below I am trying to strip every player in the server and give them all a knife at the beginning of a round if specialday is 1. As I have it now in the code, it only gives it to the admin that made the round but no one else. How would I make it strip and give a knife to everyone?
Thanks! PHP Code:
|
Re: Noob question for roundstart event
From this code it would give to all players knife...
Post full code |
Re: Noob question for roundstart event
Hopefully I am posting all that is relevant:
In a special rounds menu for admins they have an option to chose a Knife Only Round which would do this: PHP Code:
|
Re: Noob question for roundstart event
PHP Code:
|
Re: Noob question for roundstart event
You should check if the player is alive before stripping/giving because it could result in an error if you try to strip/give to an invalid player.
|
Re: Noob question for roundstart event
PHP Code:
|
Re: Noob question for roundstart event
Thanks guys, i'll add that to the code Emp.
Does anyone know what i'm doing wrong in my original code and why it isn't stripping all players? |
Re: Noob question for roundstart event
You have SpecialDay check that is set to 0 else if admin set it from menu to 1 it will strip weapons and give knife
|
Re: Noob question for roundstart event
Yeah exactly :). However when the admin choses a knife round and specialday changes to 1, it will only strip and give a knife to the admin who chose it, not anyone else.
|
Re: Noob question for roundstart event
There is no reason to do that in your code ;)
|
| All times are GMT -4. The time now is 14:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.