Thread: [Solved] L4D2 Admin Only
View Single Post
ricksfishin
Senior Member
Join Date: Oct 2017
Old 04-25-2018 , 13:02   Re: L4D2 Admin Only
Reply With Quote #3

I'm sure it's me I can get this to work and compile, if(IsClientInGame(client) && IsPlayerAlive(client) && !IsFakeClient(client) && IsClientAdmin(client))

No luck with this,bool

bool IsClientAdmin(int client)
{
// if (!IsClientInGame(client)) return false;
return GetUserAdmin(client) != INVALID_ADMIN_ID;
}
just get error's not in right place maybe?
bool IsClientAdmin(int client), declaration of a local variable must appear in a compound block
undefined symbol "IsClientAdmin, if i define it then bool is undefined.etc
Thanks for reply Dragokas.

Last edited by ricksfishin; 04-25-2018 at 13:02.
ricksfishin is offline