Syncope.T-*
[10] 무기의 총알을 변경해보자.
Steam/Sourcemod 2011. 12. 8. 20:20

slot = offset 오프셋코드는 맨밑에 있습니다. stock GetWeaponAmmo(client, slot) // Ammo (여분탄창)의 수를 구함. { new ammoOffset = FindSendPropInfo("CCSPlayer", "m_iAmmo"); return GetEntData(client, ammoOffset+(slot*4)); } stock SetWeaponAmmo(client, slot, ammo) // Ammo의 수를 설정. { new ammoOffset = FindSendPropInfo("CCSPlayer", "m_iAmmo"); return SetEntData(client, ammoOffset+(slot*4), ammo); } stock GetPrimaryAmmo(clien..

[9] 가지고 있는 모든 무기를 삭제!
Steam/Sourcemod 2011. 12. 8. 20:17

new wepIdx; for (new x = 0; x

[8] 이 문자열에 원하는 문자열이 포함되어 있다면?
Steam/Sourcemod 2011. 12. 8. 20:15

f(StrContains(str, substr,){ native StrContains(const String:str[], const String:substr[], bool:caseSensitive=true); str = 찾고자 하는 변수. substr 기존 변수에서 찾을 변수. caseSensitive If true (default), search 맞거나 들어가면. If false, 맞지 않으면. Notes: 테스트로 인해 검증됨. Return: -1 가 실패값 찾지못했거나. Any other value indicates a position in the string where the match starts.

[7] 트레이스를 만들어보자
Steam/Sourcemod 2011. 12. 8. 20:12

우선 밑의 구분선까지의 스크립트는 간단히 클라이언트에게 트레일을 기부해 주는 방법입니다. 기부만 가능합니다 ^^ 주의점 : 클라이언트가 멈추거나 움직이지 않을때 트레일은 다시 생겨나지 않습니다. --------------------------------------------------------------------------------------------------------- new g_iBeamSprite; public OnMapStart() { g_iBeamSprite = PrecacheModel("materials/sprites/crystal_beam1.vmt"); } public fn_example(client) { TE_SetupBeamFollow(client,g_iBeamSprite,0,..

[6] 게임 네임 체인져
Steam/Sourcemod 2011. 12. 8. 20:09

그.. 서버찾기에서 서버이름 옆에 뜨는 Counter Strike - Source 라던가 Team Fortress 2 라던가 그 설명을 바꿔주는거요 네. 그걸 적어보죠 // inc or header files loaded. #include #include #include "sdkhooks" // 문법 정 의 #pragma semicolon 1 new bool:maproadfinish = false; // 이 부분을 수정하시면 됩니다. new String:gamedescription[64] = "오리의 오렌지서버"; public Action:OnGetGameDescription(String:gamedesc[64]){ strcopy(gamedesc, 64, gamedescription); if(maproad..

[5] 소리 나오게 하기!
Steam/Sourcemod 2011. 12. 8. 20:08

이번 시간엔 소리나오게 하는 커맨드를 알아 볼건데요. 경로를 한 번에 받고 TF2에 쓰이는 커맨드를 이용해 스크립트 하나를 만들어 볼 겁니다. 쓰일 커맨드 종류는 Class 와 Weapon 를 알아 보기와 EmitSound 랍니다. 플러그인 설명 : TF2 에 게임 클래스에 속한 Sniper의 Rifle 로 HeadShot 을 맞을 경우에 Emitsound 방출. ----------------------------------------------------------------------------------------------------- // INCLUDE BASIS #include sourcemod #include sdktools // define 이란 변수 선언을 하는건데요. 알아 둘 것이 있다..

profile on loading

Loading...