Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <fakemeta>
- #include <cstrike>
- #include <dhudmessage>
- #define PREFIX "CaNoIL"
- #define ADMIN_FLAG ADMIN_KICK
- 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_dhudmessage(random(255), random(255), random(255), -1.0, -1.0, 0, 0.0, 1.1, 0.1, 0.1, 1);
- show_dhudmessage(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_FLAG )
- {
- new szGuardName[32]
- get_user_name(id, szGuardName, charsmax(szGuardName))
- set_dhudmessage(random(255), random(255), random(255), -1.0, -1.0, 0, 0.0, 1.1, 0.1, 0.1, 1);
- show_dhudmessage(0, "[%s]^n Admin %s open the cells =", PREFIX, szGuardName)
- while(engfunc(EngFunc_FindEntityByString, -1, "classname", "func_door"))
- {
- dllfunc(DLLFunc_Use, -1, 0)
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement