Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <fakemeta>
- #include <cstrike>
- #define PREFIX "Community Tag"
- public plugin_init() {
- register_clcmd("say /open", "open_cells")
- }
- public open_cells(id)
- {
- if(cs_get_user_team(id) == CS_TEAM_CT)
- {
- new szGuardName[32]
- get_user_name(id, szGuardName, charsmax(szGuardName))
- set_hudmessage(random_num(1, 255), random_num(1, 255), random_num(1, 255), -1.0, -1.0, 0, 6.0, 12.0)
- show_hudmessage(0, "[%s]^n= Guard %s open the cells =", PREFIX, szGuardName)
- while(engfunc(EngFunc_FindEntityByString, -1, "classname", "func_door"))
- {
- dllfunc(DLLFunc_Use, -1, 0)
- }
- }
- else if( get_user_flags(id) & ADMIN_BAN )
- {
- new szGuardName[32]
- get_user_name(id, szGuardName, charsmax(szGuardName))
- set_hudmessage(random_num(1, 255), random_num(1, 255), random_num(1, 255), -1.0, -1.0, 0, 6.0, 12.0)
- show_hudmessage(0, "[%s]^n= Admin/Mod %s open the cells =", PREFIX, szGuardName)
- while(engfunc(EngFunc_FindEntityByString, -1, "classname", "func_door"))
- {
- dllfunc(DLLFunc_Use, -1, 0)
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment