[CSGO] Help need to restrict a plugin to Custom2!
Hi! I need help to restrict this plugin to flag: CUSTOM2 but im not able to do that!
Can someone please help out! PHP Code:
|
Re: [CSGO] Help need to restrict a plugin to Custom2!
Wouldn't changing this line
SetEntProp(attacker, Prop_Send, "m_iHealth", hp); to this: if (GetAdminFlag(GetUserAdmin(attacker), Admin_Custom2)) SetEntProp(attacker, Prop_Send, "m_iHealth", hp); Sort your issue? OR Maybe put something like this after the GetClientOfUserId line: if (!GetAdminFlag(GetUserAdmin(attacker), Admin_Custom2)) return; Heres the code post fix: Code:
public OnPluginStart() |
| All times are GMT -4. The time now is 05:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.