Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Plugin generated by AMXX-Studio */
- #include <amxmodx>
- #include <amxmisc>
- #include <cstrike>
- #include <colorchat>
- #define PLUGIN "Box"
- #define VERSION "1.0"
- #define AUTHOR "+ColdWar"
- public plugin_init() {
- register_plugin(PLUGIN, VERSION, AUTHOR)
- register_clcmd("say /box","BoxTeam")
- }
- public BoxTeam(id)
- {
- if(cs_get_user_team(id) && is_user_alive(id) || get_user_flags(id) & ADMIN_KICK)
- {
- new ff = get_cvar_num("mp_friendlyfire")
- new szName[32]
- get_user_name(id,szName,31)
- if(ff == 1)
- {
- set_cvar_num("mp_friendlyfire",0)
- ColorChat(id,TEAM_COLOR,"^3| ^1Jailbreak ^3|^4 ^3%s ^4has stopped box!",szName)
- }
- else if(ff==0)
- {
- set_cvar_num("mp_friendlyfire",1)
- ColorChat(id,TEAM_COLOR,"^3| ^1Jailbreak ^3|^4 ^3%s ^4has started box!",szName)
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement