Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sourcemod>
- public Plugin myinfo ={
- name = "",
- author = "Me",
- description = "My very first sourcemod plugin",
- version = "0.1",
- url = "http://www.sourcemod.net/"
- };
- public void OnPluginStart(){
- HookEvent("player_team", Event_PlayerTeam);
- }
- public void Event_PlayerTeam(Event event, const char[] name, bool dontBroadcast){
- int playerClient = GetClientOfUserId(GetEventInt(event, "userid"));
- int team = GetEventInt(event, "team");
- if(!IsFakeClient(playerClient)){
- for (new i = 1; i <= MaxClients; i++){
- if (IsClientInGame(i) && IsFakeClient(i) && GetClientTeam(i) == team){
- KickClient(i);
- break;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement