I tryed changing something in the adminmodx plugin. In the exec part, I added immunity check for amx_exec, amx_execteam without problem.
Now I am trying to add it to amx_execall.
I got something to work, but when compiling I am getting an loose identation error at line 515 (look below). The immunity check works, but it still does bother me. I just started coding and I want to know what I did wrong.
Here is what I have, if there is an easiest way, please let me know
----
Code:
// Get the info on the caller
new nameCalled[32], steamCalled[32]
get_user_name(id, nameCalled, 31)
get_user_authid(id, steamCalled, 31)
if(equal(cmd, "all"))
{
get_players(players, totalPlayers, "a")
for(counter = 0; counter < totalPlayers; counter++)
{
if(!(get_user_flags(players[counter])&IMMUNE))
{
client_cmd(players[counter], toexec)
}
}
----
I am pretty sure it as do to something with the FOR and the counter, line 515 is in this one
for(counter = 0; counter < totalPlayers; counter++)
added the attachement, I don't know how to add it on the forum, sorry