Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sourcemod>
- #include <sdktools>
- public Plugin:myinfo =
- {
- name = "슈마의 첫번째 플러그인",
- author = "슈마",
- description = "슈마의 첫번째 플러그인",
- version = "1.0",
- url = "none"
- }
- public OnPluginStart()
- {
- HookEvent("player_death", Eventdeath)
- HookEvent("player_hurt", Eventhurt)
- }
- public Action:Eventdeath(Handle:event, const String:name[], bool:dontBroadcast)
- {
- new Client = GetClientOfUserId(GetEventInt(event, "userid"));
- PrintCenterTextAll("%N 님이 사망 하셨습니다.", Client);
- new String:DeathsCount = GetClientDeaths(client);
- if(DeathsCount < 5)
- {
- PrintToChatAll("여러분 칭찬합시다! %N 님이 똥덜쌌어요!", Client);
- }
- }
- public Action:Eventhurt(Handle:event, const String:name[], bool:dontBroadcast)
- {
- new Client = GetClientOfUserId(GetEventInt(event, "userid"));
- PrintToChat(Client, "%N 님이 아얏 하셨습니다", Client);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement