Advertisement
Guest User

s

a guest
Aug 22nd, 2014
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1.  
  2. #include <sourcemod>
  3. #include <sdktools>
  4.  
  5. public Plugin:myinfo =
  6. {
  7. name = "슈마의 첫번째 플러그인",
  8. author = "슈마",
  9. description = "슈마의 첫번째 플러그인",
  10. version = "1.0",
  11. url = "none"
  12. }
  13.  
  14.  
  15. public OnPluginStart()
  16. {
  17. HookEvent("player_death", Eventdeath)
  18. HookEvent("player_hurt", Eventhurt)
  19. }
  20.  
  21.  
  22. public Action:Eventdeath(Handle:event, const String:name[], bool:dontBroadcast)
  23. {
  24. new Client = GetClientOfUserId(GetEventInt(event, "userid"));
  25.  
  26. PrintCenterTextAll("%N 님이 사망 하셨습니다.", Client);
  27. new String:DeathsCount = GetClientDeaths(client);
  28.  
  29. if(DeathsCount < 5)
  30. {
  31. PrintToChatAll("여러분 칭찬합시다! %N 님이 똥덜쌌어요!", Client);
  32. }
  33. }
  34.  
  35. public Action:Eventhurt(Handle:event, const String:name[], bool:dontBroadcast)
  36. {
  37. new Client = GetClientOfUserId(GetEventInt(event, "userid"));
  38.  
  39. PrintToChat(Client, "%N 님이 아얏 하셨습니다", Client);
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement