Syncope.T-*
[12] 장풍예제
Steam/Sourcemod 2011. 12. 8. 20:21

//인클루드문장 #include #include #include #include "sdkhooks" //문법정의 #pragma semicolon 1 //칼빵에 어느정도의 데미지를 추가할 것인가(음수로하면 데미지가 줄어듬, 그러나 추천하지 않음(그렇게 해서 실제 공력이 음수가 되면 체가 도로 차게되니까)) #define KNIFEDAMAGEINC 7000 //장풍의 세기는 어느정도로 할 것인가 #define KNIFEKNOCKBACKSCALE 1000.5545671 //장풍을 쓸때 날 소리의 이름 예시 : "npc/turret_floor/alarm.wav" //다운로드설정도 이 플러그인이 해 주니까 이건 sm_downloader설정 필요 없음 파일만 제대로 지정해주면 되요 new const String:K..

[11] 팀 제한 예제
Steam/Sourcemod 2011. 12. 8. 20:20

#include #include #include public OnPluginStart() { HookEvent("player_team", EventTeam); HookEvent("player_death",EventDeath); } public Action:EventTeam(Handle:Event, const String:Name[], bool:Broadcast) { new Client = GetClientOfUserId(GetEventInt(Event, "userid")); new Team = GetEventInt(Event, "team"); if(Team == 2) { if(GetTeamClientCount(2) >= 2) { CS_SwitchTeam(Client, 1) PrintToChat(Clien..

[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..

profile on loading

Loading...