Jump to content
assignment_ind Existing user? Sign In

Sign In



person_add Sign Up
Go-Code.pl - Support SourceMod i Pluginy CS:GO

laibach

Użytkownik
  • Content Count

    19
  • Joined

  • Last visited

Community Reputation

3 Nowy

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. only has one bug if the player carries a bomb and kills him so he will give him a slap before that and he says he shouldn't drop the bomb
  2. dond compile: #include <sourcemod> /*define HITGROUP_GENERIC 0 #define HITGROUP_HEAD 1 #define HITGROUP_CHEST 2 #define HITGROUP_STOMACH 3 #define HITGROUP_LEFTARM 4 #define HITGROUP_RIGHTARM 5 #define HITGROUP_LEFTLEG 6 #define HITGROUP_RIGHTLEG 7*/ char hitgroup[][] = { "Generic", "Head", "Chest", "Stomach", "LeftArm", "RightArm", "LeftLeg", "RightLeg" }; public void OnPluginStart() { HookEvent("player_hurt", PlayerDamage, EventHookMode_Post); } public Action PlayerDamage(Event event, char[] name, bool dontBroadcast) { int dmg = event.GetInt("dmg_health"); int client = GetClientOfUserId(event.GetInt("attacker")); int hg = event.GetInt("hitgoup"); PrintCenterText(client, "<font color ='#42b9f5'>Ubral si mu: %d</font>\n<font color ='#63f542'>Trafil si ho: %s</font>", dmg, hitgroup[hg]); public Action Player_Hurt(Event event, const char[] name, bool dontBroadcast) { if(client <= 0) return Plugin_Continue; if (GetUserFlagBits(client) && ADMFLAG_CUSTOM4) } } error: D:\pluginy a tak dalej\source\sourcemod\scripting\test.sp(37) : error 029: invalid expression, assumed zero D:\pluginy a tak dalej\source\sourcemod\scripting\test.sp(37) : error 001: expected token: ";", but found "(" D:\pluginy a tak dalej\source\sourcemod\scripting\test.sp(37) : error 174: symbol 'Event' is a type and cannot be used as a value D:\pluginy a tak dalej\source\sourcemod\scripting\test.sp(37) : fatal error 190: too many error messages on one line Done
  3. works very well thank you
  4. and one more thing I tried to remake it just for vip works like he's just throwing me one error in the error log: L 10/06/2019 - 12:25:17: [SM] Blaming: test.smx L 10/06/2019 - 12:25:17: [SM] Call stack trace: L 10/06/2019 - 12:25:17: [SM] [1] Line 50, test.sp::PlayerDamage L 10/06/2019 - 12:25:18: [SM] Exception reported: Client index 0 is invalid here is the line: if (GetUserFlagBits(client) && ADMFLAG_CUSTOM4) PrintCenterText(client, "<font color='#42b9f5'>Ubral si mu: %d</font>\n<font color='#63f542'>Trafil si mu: %s</font>", dmg, hitgroup[hg]);
  5. #include <sourcemod> /*define HITGROUP_GENERIC 0 #define HITGROUP_HEAD 1 #define HITGROUP_CHEST 2 #define HITGROUP_STOMACH 3 #define HITGROUP_LEFTARM 4 #define HITGROUP_RIGHTARM 5 #define HITGROUP_LEFTLEG 6 #define HITGROUP_RIGHTLEG 7*/ char hitgroup[][] = { "Generic", "Head", "Chest", "Stomach", "LeftArm", "RightArm", "LeftLeg", "RightLeg" }; public void OnPluginStart() { HookEvent("player_hurt", PlayerDamage, EventHookMode_Post); } public Action PlayerDamage(Event event, char[] name, bool dontBroadcast) { int dmg = event.GetInt("dmg_health"); int client = GetClientOfUserId(event.GetInt("attacker")); int hg = event.GetInt("hitgoup"); PrintCenterText(client, "<font color ='#42b9f5'>Ubral si mu: %d</font>\n<font color ='#63f542'>Trafil si ho: %s</font>", dmg, hitgroup[hg]); } Hi I did tren plugin according to video tutorial but but my bugs here is screanshot: and I also supply an extract from the error log: L 10/05/2019 - 18:48:27: [SM] Blaming: test.smx L 10/05/2019 - 18:48:27: [SM] Call stack trace: L 10/05/2019 - 18:48:27: [SM] [0] PrintCenterText L 10/05/2019 - 18:48:27: [SM] [1] Line 33, D:\pluginy a tak dalej\source\sourcemod\scripting\test.sp::PlayerDamage L 10/05/2019 - 18:50:44: [SM] Exception reported: Client index 0 is invalid
  6. As the name suggests, I have one question whether there is a plugin that will punish a player for throwing a bomb. For example, take him the money, give him a slap or slay or something. Thank you for your response.
  7. Witam. Jak sama nazwa wskazuje, mam jedno pytanie, czy istnieje wtyczka, która karze gracza za rzucenie bomby. na przykład biorąc jego dolara, dając mu pedał lub zabójstwo, czy coś takiego. Dziękuję za odpowiedź.
  8. inc wygląda następująco: native int dr_GetMoneyAmount(int client); native bool dr_RemoveMoney(int client, int count); native bool dr_AddMoney(int client, int count); native bool dr_SetMoney(int client, int count);
  9. Cześć Mam problem Nie mogę skompilować tych wtyczek tutaj jest błąd:

O NAS Jesteśmy społecznością łączącą ludzi, którzy dzielą pasję poznawania CS:GO od strony programistycznej. Posiadamy duże zaplecze merytoryczne i zawsze cieszymy się, gdy dołączają do nas osoby gotowe do nauki. Gwarantujemy, że z odrobiną wytrwałości i otwartym umysłem bardzo szybko napiszesz swój pierwszy plugin. Zapraszamy! 🙂
Szablon wykonany z dużą ilością przez cyberpixelz / Mesharsky / Sitefuture
Forum dumnie napędzane przez: Invision Power Services, Inc.
×
×
  • Create New...