FlacoBey

Untitled

May 22nd, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.59 KB | None | 0 0
  1. #include <sourcemod>
  2. #include <sdktools>
  3.  
  4. public void OnPluginStart()
  5. {
  6.     HookEvent("player_spawn",       Event_PlayerSpawn);
  7.     HookEvent("player_first_spawn", Event_PlayerFirstSpawn, EventHookMode_Post);
  8. }
  9.  
  10. public void Event_PlayerSpawn(Event event, const char[] name, bool dontBroadcast)
  11. {
  12.     int client = GetClientOfUserId(event.GetInt("userid"))
  13.     AcceptEntityInput(client, "DisableLedgeHang");
  14. }
  15. public void Event_PlayerFirstSpawn(Event event, const char[] name, bool dontBroadcast)
  16. {
  17.     int client = GetClientOfUserId(event.GetInt("userid"))
  18.     AcceptEntityInput(client, "DisableLedgeHang");
  19. }
Advertisement
Add Comment
Please, Sign In to add comment