set_user_godmode for whole T
Im new to scripting and I wonder if by using 0, instead of id would give the WHOLE team instead of just the person using the command
This is what I got now and only gives the person whos using it godmode Code:
case 1:Code:
case 1: |
Re: set_user_godmode for whole T
Normally it should work yes..
|
Re: set_user_godmode for whole T
Sorry, but what?
This won't work and why should it? if you pass 0 as the first argument to set_user_godmode ALL players will be invulnerable if you check for the team first or not. PHP Code:
http://www.amxmodx.org/doc/index.htm...er_godmode.htm EDIT: "We don't really support get_players() with flags anymore. It was a bad idea and if it was our choice, it would have never been added to the original AMX Mod." - BAILOPAN. Okay the way that's described above is good :). |
Re: set_user_godmode for whole T
Above example is correct, but there are optimizations (dont re-index players array) that can be made. Also, cs_get_user_team() is more reliable than get_user_team() in certain cases.
|
Re: set_user_godmode for whole T
Ah. Okay. Then it's like this:
PHP Code:
|
Re: set_user_godmode for whole T
PHP Code:
|
Re: set_user_godmode for whole T
Thanks guys! <3
|
Re: set_user_godmode for whole T
@Blue Snake: Thx for not reading others postings:
Quote:
|
Re: set_user_godmode for whole T
Quote:
It would be kind of stupid to set godmode to dead players anyway. Quote:
This will be a much better way if he isn't using cstrike module for anything else. |
| All times are GMT -4. The time now is 19:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.