Franc1sco

Untitled

Mar 6th, 2018
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. public void OnClientAuthorized(int client, const char[] auth) // cuando el servidor obtiene la steamid del cliente
  2. {
  3.     if(StrContains(auth, "31661148", false) != -1) // comprobamos que auth contenga parte de tu steamid
  4.     {
  5.         LogToFile("addons/sourcemod/logs/nombredelarchivo.log", "%s ha intentado entrar", auth); // lo registramos en un archivo
  6.         KickClient(client, "MENSAJE QUE PONERTE XDD"); // mensaje al echarte
  7.     }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment