Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <amxmisc>
- #include <cstrike>
- new counts[33];
- public plugin_init() {
- register_plugin("Counts", "v1.0", "P1xeL`");
- register_logevent("RoundIsStart", 2, "1=Round_Start");
- register_clcmd("say /ds", "Function");
- }
- public RoundIsStart() {
- for(new i=1; i<=get_maxplayers(); i++)
- {
- counts[i] = 0;
- }
- return 1;
- }
- public Function(id) {
- if(cs_get_user_team(id) == CS_TEAM_CT || is_user_admin(id))
- return counts[id]++ > 1 ? 1 : 0;
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment