[SourceMod] MOTD 패널을 심화적으로 다루기
제목으로는 '심화적'이라고는 했지만 사실 별 것 아닌 내용에 해당됩니다.
'ShowVGUIPanel' 함수를 이용해서 처리한 것이기 때문에 뭐 어찌보면 '심화적'일 수도 있겠지만 어찌됐든 해당 함수를 이용해서 MOTD 패널을 숨긴 채로도 이용할 수 있습니다.
stock ShowMOTDPanelEx(client, const String:title[], const String:msg[], type=MOTDPANEL_TYPE_INDEX, bool:show=true)
{
decl String:ptype[3];
new Handle:kv = CreateKeyValues("data");
IntToString(type, ptype, sizeof(ptype));
KvSetString(kv, "title", title);
KvSetString(kv, "type", ptype);
KvSetString(kv, "msg", msg);
ShowVGUIPanel(client, "info", kv, show);
CloseHandle(kv);
}
'Info/Tips > Programming' 카테고리의 다른 글
[SourceMod] 소스모드 1.7.0 부터 추가된 문법에 관해 (1) | 2015.01.23 |
---|---|
[SourceMod] 인질, 인질구출지역, 폭파장소, 구매지점 삭제 (0) | 2015.01.22 |
[SourceMod] TextMsg 이벤트 이용하여 메세지 삭제 (0) | 2015.01.22 |
[SourceMod] base64 인코딩/디코딩 라이브러리 (0) | 2015.01.22 |
[Font] 나눔고딕코딩 글꼴 이용하기 (0) | 2015.01.22 |