Update amxmisc.inc

This commit is contained in:
OciXCrom 2018-07-25 19:17:52 +02:00 committed by GitHub
parent f883fcc205
commit c1cd99638a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -413,15 +413,15 @@ stock can_see_admin_name(id)
{ {
switch(get_activity_value()) switch(get_activity_value())
{ {
case 0: return -1 case 0: return -1;
case 1: return 0 case 1: return 0;
case 2: return 1 case 2: return 1;
case 3: return is_user_admin(id) ? 1 : 0 case 3: return is_user_admin(id) ? 1 : 0;
case 4: return is_user_admin(id) ? 1 : -1 case 4: return is_user_admin(id) ? 1 : -1;
case 5: return is_user_admin(id) ? 0 : -1 case 5: return is_user_admin(id) ? 0 : -1;
} }
return -1 return -1;
} }
/** /**