kzn
-
Postów
31 -
Dołączył
-
Ostatnia wizyta
Odpowiedzi opublikowane przez kzn
-
-
@refresh
-
2 godziny temu, camerdisco napisał:
Skąd pobierałeś plugin scp? Pobierz stąd i wtedy przetestuj poprzednie wersje, które dostałeś z czatem od scp.
https://bitbucket.org/minimoney1/simple-chat-processor/downloads/
Pobrałem te repozytorium i wgrałem na serwer, nic z tego... Dowód:
sm plugins list [SM] Listing 35 plugins: 01 "Fun Votes" (1.8.0.6007) by AlliedModders LLC 02 "Nextmap" (1.8.0.6007) by AlliedModders LLC 03 "Basic Chat" (1.8.0.6007) by AlliedModders LLC 04 "VIP Generator" (1.0) by mastah7991 05 "[CS:GO] Supporter Tracers" (2.2) by Twisted|Panda & Neoxx 06 "Player Commands" (1.8.0.6007) by AlliedModders LLC 07 "Admin Help" (1.8.0.6007) by AlliedModders LLC 08 "Reserved Slots" (1.8.0.6007) by AlliedModders LLC 09 "Team Names" (1.1) by Internet Bully 10 "Fun Commands" (1.8.0.6007) by AlliedModders LLC 11 "[CSGO] Free taser" (1.0) by Grey83 12 "Nade Tails" (2.0) by InternetBully 13 "Basic Votes" (1.8.0.6007) by AlliedModders LLC 14 "SourceBans++: Main Plugin" (1.6.1) by SourceBans Development Team, SourceBans++ Dev Team 15 "SourceBans++: Admin Config Loader" (1.6.1) by AlliedModders LLC, SourceBans++ Dev Team 16 "Team Bets" (1.4) by ferret 17 "Basic Comm Control" (1.8.0.6007) by AlliedModders LLC 18 <Failed> "[Source 2013] Custom Chat Colors" (3.1.0 CP) by Dr. McKay, Fixed up by Keith Warren (Drixevel) 19 "Advertisements" (2.0.2) by Tsunami 20 "SourceBans++: SourceComms" (1.6.1) by Alex, SourceBans++ Dev Team 21 "Admin Menu" (1.8.0.6007) by AlliedModders LLC 22 "Admin File Reader" (1.8.0.6007) by AlliedModders LLC 23 "Anti-Flood" (1.8.0.6007) by AlliedModders LLC 24 "SourceBans++: SourceSleuth" (1.6.1) by ecca, SourceBans++ Dev Team 25 "Simple Chat Processor (Redux)" (2.1.0) by Simple Plugins, Mini 26 "Basic Info Triggers" (1.8.0.6007) by AlliedModders LLC 27 "RankMe" (3.0.3.Kento.25) by lok1, Scooby, pracc, Kento, Kxnrl 28 "DR.API HIGH PING KICKER" (1.0.1) by Dr. Api 29 "DR.API SHOW DAMAGE" (1.1.2) by Dr. Api 30 "Client Preferences" (1.8.0.6007) by AlliedModders LLC 31 "Sound Commands" (1.8.0.6007) by AlliedModders LLC 32 "Basic Commands" (1.8.0.6007) by AlliedModders LLC 33 "Test Messages" (1.0.0) by Keith Warren (Drixevel) 34 "Chat-Processor" (2.0.8) by Keith Warren (Drixevel) 35 <Failed> "SourceBans++: Bans Checker" (1.6.1) by psychonic, Ca$h Munny, SourceBans++ Dev Team Errors: custom-chatcolors-cp.smx ([Source 2013] Custom Chat Colors): Could not find required plugin "chat-processor" sbpp_checker.smx (SourceBans++: Bans Checker): Failed to connect to SourceBans DB, Could not find driver "defualt"
-
Teraz działa, fakt. Co do czatu - idzie to przerobić, żeby działało w tym pluginie? (Wycinek z vipu Hanys'a)
#include <sourcemod> #include <sdktools> #include <cstrike> #include <sdkhooks> #include <scp> int g_fLastButtons[MAXPLAYERS+1]; int g_fLastFlags[MAXPLAYERS+1]; int g_iJumps[MAXPLAYERS+1]; public Plugin:myinfo = { name = "VIP Generator", author = "mastah7991", description = "Automatycznie wygenerowany VIP", version = "1.0", url = "MYGO.PL" } public OnPluginStart() { HookEvent("player_spawn", Event_PlayerSpawn); HookEvent("player_death", Event_PlayerDeath); } public OnClientPutInServer(client) { if (IsValidPlayer(client) && (GetUserFlagBits(client) & ADMFLAG_CUSTOM1)) { char name[32]; GetClientName(client,name,31); PrintToChatAll("{green}c1.BlackSquad.eu{default}: {lightgreen}Gracz VIP{default} %s {lightgreen}wszedl na serwer",name); } } public Action:Event_PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast) { int client = GetClientOfUserId(GetEventInt(event, "userid")); if (IsValidPlayer(client) && (GetUserFlagBits(client) & ADMFLAG_CUSTOM1)) { SetEntityHealth(client, GetEntProp(client, Prop_Send, "m_iHealth")+20); SetEntProp(client, Prop_Send, "m_iAccount", GetEntProp(client, Prop_Send, "m_iAccount")+250); SetEntityGravity(client, 0.85); int iWeapon = GetPlayerWeaponSlot(client, 1); if (iWeapon > 0) { int iWeaponIndex = GetEntProp(iWeapon, Prop_Send, "m_iItemDefinitionIndex"); if (iWeaponIndex == 4 || iWeaponIndex == 32 || iWeaponIndex == 61) { RemovePlayerItem(client, iWeapon); AcceptEntityInput(iWeapon, "Kill"); GivePlayerItem(client, "weapon_deagle"); } } } } public Action:Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast) { int client = GetClientOfUserId(GetEventInt(event, "userid")); bool headshot = GetEventBool(event, "headshot"); if (IsValidPlayer(client) && (GetUserFlagBits(client) & ADMFLAG_CUSTOM1)) { SetEntityHealth(client, GetEntProp(client, Prop_Send, "m_iHealth")+5); if(headshot) SetEntityHealth(client, GetEntProp(client, Prop_Send, "m_iHealth")+15); if(GetEntProp(client, Prop_Send, "m_iHealth")>180) SetEntityHealth(client, 180); SetEntProp(client, Prop_Send, "m_iAccount", GetEntProp(client, Prop_Send, "m_iAccount")+100); if(headshot) SetEntProp(client, Prop_Send, "m_iAccount", GetEntProp(client, Prop_Send, "m_iAccount")+300); } } public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3], float angles[3], int &weapon) { if (IsValidPlayer(client) && (GetUserFlagBits(client) & ADMFLAG_CUSTOM1)) { int fCurFlags = GetEntityFlags(client); int fCurButtons = GetClientButtons(client); if (g_fLastFlags[client] & FL_ONGROUND) { if (!(fCurFlags & FL_ONGROUND) &&!(g_fLastButtons[client] & IN_JUMP) && fCurButtons & IN_JUMP) { g_iJumps[client]++; } } else if (fCurFlags & FL_ONGROUND) { g_iJumps[client] = 0; } else if (!(g_fLastButtons[client] & IN_JUMP) && fCurButtons & IN_JUMP) { if ( 1 <= g_iJumps[client] <= 1) { g_iJumps[client]++; float vVel[3]; GetEntPropVector(client, Prop_Data, "m_vecVelocity", vVel); vVel[2] = 250.0; TeleportEntity(client, NULL_VECTOR, NULL_VECTOR, vVel); } } g_fLastFlags[client] = fCurFlags; g_fLastButtons[client] = fCurButtons; } } public Action:Command_SendToAll(client, args) { if (IsValidPlayer(client) && (GetUserFlagBits(client) & ADMFLAG_CUSTOM1)) { decl String:sTextToAll[1024]; GetCmdArgString(sTextToAll, sizeof(sTextToAll)); StripQuotes(sTextToAll); LogPlayerEvent(client, "say=", sTextToAll); new team = GetClientTeam(client); if(sTextToAll[0] != '@' && sTextToAll[0] != '/' && sTextToAll[0] != '!' && sTextToAll[0] > 0) { if(IsPlayerAlive(client) && team == 2 || team == 3) { PrintToChatAll("\x01[\x04VIP\x01]\x05 %N \x01%s", client, sTextToAll); } /* Player isn't alive and have team (no spec) */ else if(!IsPlayerAlive(client) && team == 2 || team == 3) { PrintToChatAll("\x01*NIE ŻYJE* [\x04VIP\x01]\x05 %N \x01%s", client, sTextToAll); } /* Player is in spectate */ else if(!IsPlayerAlive(client) && team != 2 && team != 3) { PrintToChatAll("\x01*OBSERWATOR* [\x04VIP\x01]\x05 %N \x01%s", client, sTextToAll); } } return Plugin_Handled; } return Plugin_Continue; } public Action:Command_SendToTeam(client, args) { if ((IsPlayerGenericAdmin(client)) && GetConVarBool(Tagsay)) { decl String:sTextToAll[1024]; GetCmdArgString(sTextToAll, sizeof(sTextToAll)); StripQuotes(sTextToAll); LogPlayerEvent(client, "say=", sTextToAll); new team = GetClientTeam(client); if(IsPlayerAlive(client) && team == 2 || team == 3) { for(new i = 1; i <= MaxClients; i++) { if(IsClientInGame(i) && sTextToAll[0] != '@' && sTextToAll[0] != '/' && sTextToAll[0] != '!') { new PlayersTeam = GetClientTeam(i); if(PlayersTeam & team && sTextToAll[0] > 0) { if(team == 2) PrintToChat(i, "\x01(Terrorysta) [\x04VIP\x01]\x05 %N \x01%s", client, sTextToAll); else PrintToChat(i, "\x01(Antyterrorysta) [\x04VIP\x01]\x05 %N \x01%s", client, sTextToAll); } } } } /* Player isn't alive and have team (no spec) */ else if(!IsPlayerAlive(client) && team == 2 || team == 3 && sTextToAll[0] != '@' && sTextToAll[0] != '/' && sTextToAll[0] != '!') { for(new i = 1; i <= MaxClients; i++) { if(IsClientInGame(i) && !IsPlayerAlive(i)) { new PlayersTeam = GetClientTeam(i); if(PlayersTeam & team && sTextToAll[0] > 0) { if(team == 2) PrintToChat(i, "\x01*NIE ŻYJE*(Terrorysta) [\x04VIP\x01]\x05 %N \x01%s", client, sTextToAll); else PrintToChat(i, "\x01*NIE ŻYJE*(Antyterrorysta) [\x04VIP\x01]\x05 %N \x01%s", client, sTextToAll); } } } } /* Player is in spectate */ else if(!IsPlayerAlive(client) && team != 2 && team != 3 && sTextToAll[0] != '@' && sTextToAll[0] != '/' && sTextToAll[0] != '!') { for(new i = 1; i <= MaxClients; i++) { if(IsClientInGame(i) && !IsPlayerAlive(i)) { new PlayersTeam = GetClientTeam(i); if(PlayersTeam & team && sTextToAll[0] > 0) { if(team == 2) PrintToChat(i, "\x01*OBSERWATOR*(Terrorysta) [\x04VIP\x01]\x05 %N \x01%s", client, sTextToAll); else PrintToChat(i, "\x01*OBSERWATOR*(Antyterrorysta) [\x04VIP\x01]\x05 %N \x01%s", client, sTextToAll); } } } } return Plugin_Handled; } return Plugin_Continue; } stock bool IsValidPlayer(client) { if(client >= 1 && client <= MaxClients && IsClientConnected(client) && !IsFakeClient(client) && IsClientInGame(client) ) return true; return false; }
-
Nic z tego,
deagla daje ciągle - nawet jak kupie berety/czte. Co do czatu - nadal nie działa po wgraniu scp i zmienieniu kodu.//edit to 1 jednak działa, czat i wiadomość przy wejściu nie. Do tego nie działa doublejump.
#include <sourcemod> #include <sdktools> #include <cstrike> #include <sdkhooks> #include <scp> int g_fLastButtons[MAXPLAYERS+1]; int g_fLastFlags[MAXPLAYERS+1]; int g_iJumps[MAXPLAYERS+1]; public Plugin:myinfo = { name = "VIP Generator", author = "mastah7991", description = "Automatycznie wygenerowany VIP", version = "1.0", url = "MYGO.PL" } public OnPluginStart() { HookEvent("player_spawn", Event_PlayerSpawn); HookEvent("player_death", Event_PlayerDeath); } public OnClientPutInServer(client) { if (IsValidPlayer(client) && (GetUserFlagBits(client) & ADMFLAG_CUSTOM1)) { char name[32]; GetClientName(client,name,31); PrintToChatAll("{green}c1.BlackSquad.eu{default}: {lightgreen}Gracz VIP{default} %s {lightgreen}wszedl na serwer",name); } } public Action:Event_PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast) { int client = GetClientOfUserId(GetEventInt(event, "userid")); if (IsValidPlayer(client) && (GetUserFlagBits(client) & ADMFLAG_CUSTOM1)) { SetEntityHealth(client, GetEntProp(client, Prop_Send, "m_iHealth")+20); SetEntProp(client, Prop_Send, "m_iAccount", GetEntProp(client, Prop_Send, "m_iAccount")+250); SetEntityGravity(client, 0.85); int iWeapon = GetPlayerWeaponSlot(client, 1); if (iWeapon > 0) { int iWeaponIndex = GetEntProp(iWeapon, Prop_Send, "m_iItemDefinitionIndex"); if (iWeaponIndex == 4 || iWeaponIndex == 32 || iWeaponIndex == 61) { RemovePlayerItem(client, iWeapon); AcceptEntityInput(iWeapon, "Kill"); GivePlayerItem(client, "weapon_deagle"); } } } } public Action:Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast) { int client = GetClientOfUserId(GetEventInt(event, "userid")); bool headshot = GetEventBool(event, "headshot"); if (IsValidPlayer(client) && (GetUserFlagBits(client) & ADMFLAG_CUSTOM1)) { SetEntityHealth(client, GetEntProp(client, Prop_Send, "m_iHealth")+5); if(headshot) SetEntityHealth(client, GetEntProp(client, Prop_Send, "m_iHealth")+15); if(GetEntProp(client, Prop_Send, "m_iHealth")>180) SetEntityHealth(client, 180); SetEntProp(client, Prop_Send, "m_iAccount", GetEntProp(client, Prop_Send, "m_iAccount")+100); if(headshot) SetEntProp(client, Prop_Send, "m_iAccount", GetEntProp(client, Prop_Send, "m_iAccount")+300); } } public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3], float angles[3], int &weapon) { if(IsValidPlayer(client)&&GetUserFlagBits(client)&(1<<ADMFLAG_CUSTOM1)) { int fCurFlags = GetEntityFlags(client); int fCurButtons = GetClientButtons(client); if (g_fLastFlags[client] & FL_ONGROUND) { if (!(fCurFlags & FL_ONGROUND) &&!(g_fLastButtons[client] & IN_JUMP) && fCurButtons & IN_JUMP) { g_iJumps[client]++; } } else if (fCurFlags & FL_ONGROUND) { g_iJumps[client] = 0; } else if (!(g_fLastButtons[client] & IN_JUMP) && fCurButtons & IN_JUMP) { if ( 1 <= g_iJumps[client] <= 1) { g_iJumps[client]++; float vVel[3]; GetEntPropVector(client, Prop_Data, "m_vecVelocity", vVel); vVel[2] = 250.0; TeleportEntity(client, NULL_VECTOR, NULL_VECTOR, vVel); } } g_fLastFlags[client] = fCurFlags; g_fLastButtons[client] = fCurButtons; } } public Action:OnChatMessage(&author, Handle:recipients, String:name[], String:message[]) { if (IsValidPlayer(author)) { if(GetUserFlagBits(author) & ADMFLAG_CUSTOM1 || CheckCommandAccess(author, "sm_komendaktoraniemusiistniec", ADMFLAG_CUSTOM1)) { Format(name, MAXLENGTH_NAME, "\x01[\x06C1 - VIP\x01]\x04 %s",name); return Plugin_Changed; } return Plugin_Continue; } return Plugin_Continue; } stock bool IsValidPlayer(client) { if(client >= 1 && client <= MaxClients && IsClientConnected(client) && !IsFakeClient(client) && IsClientInGame(client) ) return true; return false; }
-
Faktycznie, niestety nadal nie działa czat. Jest normalny, nic się nie zmienia. I taki mały szczegół - da radę zrobić jakiś wyjątek, że jeżeli gracz ma podstawowy pistolet (usp-s, hpkw, glocka) to doda mu do inventory deagla zamiast wyrzucać go na ziemię? A, i z tego co zauważyłem nie pokazuję wiadomości przy wejściu.
Kod:
#include <sourcemod> #include <sdktools> #include <cstrike> #include <sdkhooks> #include <scp> int g_fLastButtons[MAXPLAYERS+1]; int g_fLastFlags[MAXPLAYERS+1]; int g_iJumps[MAXPLAYERS+1]; public Plugin:myinfo = { name = "VIP Generator", author = "mastah7991", description = "Automatycznie wygenerowany VIP", version = "1.0", url = "MYGO.PL" } public OnPluginStart() { HookEvent("player_spawn", Event_PlayerSpawn); HookEvent("player_death", Event_PlayerDeath); } public OnClientPutInServer(client) { if (IsValidPlayer(client) && (GetUserFlagBits(client) & ADMFLAG_CUSTOM1)) { char name[32]; GetClientName(client,name,31); PrintToChatAll("{green}c1.BlackSquad.eu{default}: {lightgreen}Gracz VIP{default} %s {lightgreen}wszedl na serwer",name); } } public Action:Event_PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast) { int client = GetClientOfUserId(GetEventInt(event, "userid")); if (IsValidPlayer(client) && (GetUserFlagBits(client) & ADMFLAG_CUSTOM1)) { SetEntityHealth(client, GetEntProp(client, Prop_Send, "m_iHealth")+20); SetEntProp(client, Prop_Send, "m_iAccount", GetEntProp(client, Prop_Send, "m_iAccount")+250); SetEntityGravity(client, 0.85); GivePlayerItem(client,"weapon_deagle"); } } public Action:Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast) { int client = GetClientOfUserId(GetEventInt(event, "userid")); bool headshot = GetEventBool(event, "headshot"); if (IsValidPlayer(client) && (GetUserFlagBits(client) & ADMFLAG_CUSTOM1)) { SetEntityHealth(client, GetEntProp(client, Prop_Send, "m_iHealth")+5); if(headshot) SetEntityHealth(client, GetEntProp(client, Prop_Send, "m_iHealth")+15); if(GetEntProp(client, Prop_Send, "m_iHealth")>180) SetEntityHealth(client, 180); SetEntProp(client, Prop_Send, "m_iAccount", GetEntProp(client, Prop_Send, "m_iAccount")+100); if(headshot) SetEntProp(client, Prop_Send, "m_iAccount", GetEntProp(client, Prop_Send, "m_iAccount")+300); } } public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3], float angles[3], int &weapon) { if(IsValidPlayer(client)&&GetUserFlagBits(client)&(1<<ADMFLAG_CUSTOM1)) { int fCurFlags = GetEntityFlags(client); int fCurButtons = GetClientButtons(client); if (g_fLastFlags[client] & FL_ONGROUND) { if (!(fCurFlags & FL_ONGROUND) &&!(g_fLastButtons[client] & IN_JUMP) && fCurButtons & IN_JUMP) { g_iJumps[client]++; } } else if (fCurFlags & FL_ONGROUND) { g_iJumps[client] = 0; } else if (!(g_fLastButtons[client] & IN_JUMP) && fCurButtons & IN_JUMP) { if ( 1 <= g_iJumps[client] <= 1) { g_iJumps[client]++; float vVel[3]; GetEntPropVector(client, Prop_Data, "m_vecVelocity", vVel); vVel[2] = 250.0; TeleportEntity(client, NULL_VECTOR, NULL_VECTOR, vVel); } } g_fLastFlags[client] = fCurFlags; g_fLastButtons[client] = fCurButtons; } } public Action:OnChatMessage(&author, Handle:recipients, String:name[], String:message[]) { if (IsValidPlayer(author) && (GetUserFlagBits(author) & ADMFLAG_CUSTOM1)) { Format(name, MAXLENGTH_NAME, "%s", name); new MaxMessageLength = MAXLENGTH_MESSAGE - strlen(name) - 5; Format(name, MaxMessageLength, "\x01[\x06C1 - VIP\x01]\x04 %s",name); return Plugin_Changed; } return Plugin_Continue; } stock bool IsValidPlayer(client) { if(client >= 1 && client <= MaxClients && IsClientConnected(client) && !IsFakeClient(client) && IsClientInGame(client) ) return true; return false; }
-
Nadal nic, kod:
#include <sourcemod> #include <sdktools> #include <cstrike> #include <sdkhooks> #include <scp> int g_fLastButtons[MAXPLAYERS+1]; int g_fLastFlags[MAXPLAYERS+1]; int g_iJumps[MAXPLAYERS+1]; public Plugin:myinfo = { name = "VIP Generator", author = "mastah7991", description = "Automatycznie wygenerowany VIP", version = "1.0", url = "MYGO.PL" } public OnPluginStart() { HookEvent("player_spawn", Event_PlayerSpawn); HookEvent("player_death", Event_PlayerDeath); } public OnClientPutInServer(client) { if(IsValidPlayer(client)&&GetUserFlagBits(client)&(1<<ADMFLAG_CUSTOM1)) { CS_SetClientClanTag(client, "[VIP] "); char name[32]; GetClientName(client,name,31); PrintToChatAll("c1.BlackSquad.eu | Gracz VIP %s wszedl na serwer",name); } } public Action:Event_PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast) { int client = GetClientOfUserId(GetEventInt(event, "userid")); if(IsValidPlayer(client)&&GetUserFlagBits(client)&(1<<ADMFLAG_CUSTOM1)) { SetEntityHealth(client, GetEntProp(client, Prop_Send, "m_iHealth")+120); SetEntProp(client, Prop_Send, "m_iAccount", GetEntProp(client, Prop_Send, "m_iAccount")+250); SetEntityGravity(client, 0.8); SetEntPropFloat(client, Prop_Send, "m_flLaggedMovementValue", 1.2); GivePlayerItem(client,"weapon_deagle"); } } public Action:Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast) { int client = GetClientOfUserId(GetEventInt(event, "userid")); bool headshot = GetEventBool(event, "headshot"); if(IsValidPlayer(client)&&GetUserFlagBits(client)&(1<<ADMFLAG_CUSTOM1)) { SetEntityHealth(client, GetEntProp(client, Prop_Send, "m_iHealth")+5); if(headshot) SetEntityHealth(client, GetEntProp(client, Prop_Send, "m_iHealth")+15); if(GetEntProp(client, Prop_Send, "m_iHealth")>180) SetEntityHealth(client, 180); SetEntProp(client, Prop_Send, "m_iAccount", GetEntProp(client, Prop_Send, "m_iAccount")+100); if(headshot) SetEntProp(client, Prop_Send, "m_iAccount", GetEntProp(client, Prop_Send, "m_iAccount")+300); } } public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3], float angles[3], int &weapon) { if(IsValidPlayer(client)&&GetUserFlagBits(client)&(1<<ADMFLAG_CUSTOM1)) { int fCurFlags = GetEntityFlags(client); int fCurButtons = GetClientButtons(client); if (g_fLastFlags[client] & FL_ONGROUND) { if (!(fCurFlags & FL_ONGROUND) &&!(g_fLastButtons[client] & IN_JUMP) && fCurButtons & IN_JUMP) { g_iJumps[client]++; } } else if (fCurFlags & FL_ONGROUND) { g_iJumps[client] = 0; } else if (!(g_fLastButtons[client] & IN_JUMP) && fCurButtons & IN_JUMP) { if ( 1 <= g_iJumps[client] <= 2) { g_iJumps[client]++; float vVel[3]; GetEntPropVector(client, Prop_Data, "m_vecVelocity", vVel); vVel[2] = 250.0; TeleportEntity(client, NULL_VECTOR, NULL_VECTOR, vVel); } } g_fLastFlags[client] = fCurFlags; g_fLastButtons[client] = fCurButtons; if(buttons & IN_DUCK) SetEntityRenderColor(client, 255, 255, 255, 175); else SetEntityRenderColor(client, 255, 255, 255, 255); } } public Action:OnChatMessage(&author, Handle:recipients, String:name[], String:message[]) { if (IsValidPlayer(author) && (GetUserFlagBits(author) & ADMFLAG_CUSTOM1)) { Format(name, MAXLENGTH_NAME, "%s", name); new MaxMessageLength = MAXLENGTH_MESSAGE - strlen(name) - 5; Format(name, MaxMessageLength, " [VIP] %s",name); return Plugin_Changed; } return Plugin_Continue; } stock bool IsValidPlayer(client) { if(client >= 1 && client <= MaxClients && IsClientConnected(client) && !IsFakeClient(client) && IsClientInGame(client) ) return true; return false; }
-
Tak czy siak zwraca "Jesteś vipem", za pierwszym razem przez sm_viptestcheck.
-
Zwraca pozytywną wartość, "Jesteś vipem."
-
Niestety to nic nie daje, próbowałem dawać flagę przez admins.cfg, rangi w admin_groups etc. Nic z tego :/
-
Rangi nadaje poprzez zwykły config admins.cfg
{ "KamiiQ" { "auth" "steam" "identity" "STEAM_0:1:154322001" "flags" "o" } }
//edit, tzn. flagi
-
Miałem kiedyś serwer 18 slotowy, działał dobrze z tick128 i paroma pluginami przy full zapełnieniu, zero lagów. Szkoda, że teraz przerzuciłem się na VPS u konkurencji, mimo to polecam.
-
13 godzin temu, Czepeel napisał:
Zamień w kodzie te linijki
if(IsValidPlayer(author)&&GetUserFlagBits(author)&(1<<ADMFLAG_CUSTOM1))
na
if (IsValidPlayer(author) && (GetUserFlagBits(author) & ADMFLAG_CUSTOM1))
Dzięki za jedyną normalna odpowiedź, niestety to nic nie daje. Plugin jak nie działał, tak nie działa, próbowałem też z HanyS VIP ale pomimo override vipa ma każdy.
Ps. to może się przydać:
[SM] Listing 31 plugins: 01 "Fun Votes" (1.8.0.6007) by AlliedModders LLC 02 "Nextmap" (1.8.0.6007) by AlliedModders LLC 03 "Basic Chat" (1.8.0.6007) by AlliedModders LLC 04 "VIP Generator" (1.0) by mastah7991 05 "[CS:GO] Supporter Tracers" (2.2) by Twisted|Panda & Neoxx 06 "Player Commands" (1.8.0.6007) by AlliedModders LLC 07 "Admin Help" (1.8.0.6007) by AlliedModders LLC 08 "Reserved Slots" (1.8.0.6007) by AlliedModders LLC 09 "Team Names" (1.1) by Internet Bully 10 "Fun Commands" (1.8.0.6007) by AlliedModders LLC 11 "[CSGO] Free taser" (1.0) by Grey83 12 "Nade Tails" (2.0) by InternetBully 13 "Basic Votes" (1.8.0.6007) by AlliedModders LLC 14 "SourceBans++: Main Plugin" (1.6.1) by SourceBans Development Team, SourceBans++ Dev Team 15 "SourceBans++: Admin Config Loader" (1.6.1) by AlliedModders LLC, SourceBans++ Dev Team 16 "Team Bets" (1.4) by ferret 17 "Basic Comm Control" (1.8.0.6007) by AlliedModders LLC 18 "Advertisements" (2.0.2) by Tsunami 19 "SourceBans++: SourceComms" (1.6.1) by Alex, SourceBans++ Dev Team 20 "Admin Menu" (1.8.0.6007) by AlliedModders LLC 21 "Admin File Reader" (1.8.0.6007) by AlliedModders LLC 22 "Anti-Flood" (1.8.0.6007) by AlliedModders LLC 23 "SourceBans++: SourceSleuth" (1.6.1) by ecca, SourceBans++ Dev Team 24 "Basic Info Triggers" (1.8.0.6007) by AlliedModders LLC 25 "RankMe" (3.0.3.Kento.25) by lok1, Scooby, pracc, Kento, Kxnrl 26 "DR.API HIGH PING KICKER" (1.0.1) by Dr. Api 27 "DR.API SHOW DAMAGE" (1.1.2) by Dr. Api 28 "Client Preferences" (1.8.0.6007) by AlliedModders LLC 29 "Sound Commands" (1.8.0.6007) by AlliedModders LLC 30 "Basic Commands" (1.8.0.6007) by AlliedModders LLC 31 <Failed> "SourceBans++: Bans Checker" (1.6.1) by psychonic, Ca$h Munny, SourceBans++ Dev Team Errors: sbpp_checker.smx (SourceBans++: Bans Checker): Failed to connect to SourceBans DB, Could not find driver "defualt"
sm version SourceMod Version Information: SourceMod Version: 1.8.0.6007 SourcePawn Engine: SourcePawn 1.8, jit-x86 (build 1.8.0.6007) SourcePawn API: v1 = 4, v2 = 11 Compiled on: Jun 15 2017 15:30:51 Built from: https://github.com/alliedmodders/sourcemod/commit/1e50df9 Build ID: 6007:1e50df9 http://www.sourcemod.net/
Dla większego zasięgu oznaczę twórce generatora: @mastah7991
-
Srednio bo brak .sp, nie moge dodac wlasnych ustawien z zewnetrznych pluginow.
-
Witam, mam problem z generatorem vip (tym od mygo.pl). W konsoli nie mam żadnych errorów, gracz nawet po nabyciu flagi CUSTOM_1 ("o") nie dostaje atrybutów, które powinien otrzymać.
Kod:
#include <sourcemod> #include <sdktools> #include <cstrike> #include <sdkhooks> #include <scp> int g_fLastButtons[MAXPLAYERS+1]; int g_fLastFlags[MAXPLAYERS+1]; int g_iJumps[MAXPLAYERS+1]; public Plugin:myinfo = { name = "VIP Generator", author = "mastah7991", description = "Automatycznie wygenerowany VIP", version = "1.0", url = "MYGO.PL" } public OnPluginStart() { HookEvent("player_spawn", Event_PlayerSpawn); HookEvent("player_death", Event_PlayerDeath); } public OnClientPutInServer(client) { if(IsValidPlayer(client)&&GetUserFlagBits(client)&(1<<ADMFLAG_CUSTOM1)) { CS_SetClientClanTag(client, "[VIP] "); char name[32]; GetClientName(client,name,31); PrintToChatAll("c1.BlackSquad.eu | Gracz VIP %s wszedl na serwer",name); } } public Action:Event_PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast) { int client = GetClientOfUserId(GetEventInt(event, "attacker")); if(IsValidPlayer(client)&&GetUserFlagBits(client)&(1<<ADMFLAG_CUSTOM1)) { SetEntityHealth(client, GetEntProp(client, Prop_Send, "m_iHealth")+120); SetEntProp(client, Prop_Send, "m_iAccount", GetEntProp(client, Prop_Send, "m_iAccount")+250); SetEntityGravity(client, 0.8); SetEntPropFloat(client, Prop_Send, "m_flLaggedMovementValue", 1.2); GivePlayerItem(client,"weapon_deagle"); } } public Action:Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast) { int client = GetClientOfUserId(GetEventInt(event, "attacker")); bool headshot = GetEventBool(event, "headshot"); if(IsValidPlayer(client)&&GetUserFlagBits(client)&(1<<ADMFLAG_CUSTOM1)) { SetEntityHealth(client, GetEntProp(client, Prop_Send, "m_iHealth")+5); if(headshot) SetEntityHealth(client, GetEntProp(client, Prop_Send, "m_iHealth")+15); if(GetEntProp(client, Prop_Send, "m_iHealth")>180) SetEntityHealth(client, 180); SetEntProp(client, Prop_Send, "m_iAccount", GetEntProp(client, Prop_Send, "m_iAccount")+100); if(headshot) SetEntProp(client, Prop_Send, "m_iAccount", GetEntProp(client, Prop_Send, "m_iAccount")+300); } } public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3], float angles[3], int &weapon) { if(IsValidPlayer(client)&&GetUserFlagBits(client)&(1<<ADMFLAG_CUSTOM1)) { int fCurFlags = GetEntityFlags(client); int fCurButtons = GetClientButtons(client); if (g_fLastFlags[client] & FL_ONGROUND) { if (!(fCurFlags & FL_ONGROUND) &&!(g_fLastButtons[client] & IN_JUMP) && fCurButtons & IN_JUMP) { g_iJumps[client]++; } } else if (fCurFlags & FL_ONGROUND) { g_iJumps[client] = 0; } else if (!(g_fLastButtons[client] & IN_JUMP) && fCurButtons & IN_JUMP) { if ( 1 <= g_iJumps[client] <= 2) { g_iJumps[client]++; float vVel[3]; GetEntPropVector(client, Prop_Data, "m_vecVelocity", vVel); vVel[2] = 250.0; TeleportEntity(client, NULL_VECTOR, NULL_VECTOR, vVel); } } g_fLastFlags[client] = fCurFlags; g_fLastButtons[client] = fCurButtons; if(buttons & IN_DUCK) SetEntityRenderColor(client, 255, 255, 255, 175); else SetEntityRenderColor(client, 255, 255, 255, 255); } } public Action:OnChatMessage(&author, Handle:recipients, String:name[], String:message[]) { if(IsValidPlayer(author)&&GetUserFlagBits(author)&(1<<ADMFLAG_CUSTOM1)) { Format(name, MAXLENGTH_NAME, "%s", name); new MaxMessageLength = MAXLENGTH_MESSAGE - strlen(name) - 5; Format(name, MaxMessageLength, " [VIP] %s",name); return Plugin_Changed; } return Plugin_Continue; } stock bool IsValidPlayer(client) { if(client >= 1 && client <= MaxClients && IsClientConnected(client) && !IsFakeClient(client) && IsClientInGame(client) ) return true; return false; }
Skompilowalem do *.smx, mam inc.
-
//refresh
-
//refresh
-
//refresh
-
Rekrutacja do amatorskiej drużyny Atomical
Witam, z dniem dzisiejszym (25. 04. 2017r.) rozpoczynamy rekrutacje do drużyny CS:GO. Nasza drużyna działa już ponad rok, lecz miała pare razy zmieniany logotyp (oraz nazwę).
Co oferujemy?
- Stabilny serwer ts3 (24/7, niska pingówka, duża dostępność slotów);
- Serwer treningowy (24/7, lokalizacja w Warszawie, system rankingowy);
- Graczy z mutacja, wiek powyżej 15;
- Banner&Avatar klanowy z Twoimi inicjałami lub nickiem
Czego oczekujemy?
- Dużej dostępności w środku tygodnia (min. 20 godzin w grze w ciągu 2 ostatnich tygodni);
- Konto steam ważne rok;
- Konto na faceit.com, cme.gg;
- Posiadanie więcej niż 750 godzin w CS:GO;
- Nazwy miejscówek z puli map competitive;
- Mikrofon (bez pierdzeń oraz mikrofalówki w tle), mutacja głosu, wiek powyżej 15
-
Przedziału rang g1-g4- doszliśmy do wniosku, że ranga nie gra, akceptujemy każdy przedział rang oprócz silverów.
Jesteś chętny? Pisz w kom na profilu (steam) a się do Ciebię odezwę ;).
-
https://mygo.pl/generator-vip/ użyj to do grawitacji i innych bajerów, co do reszty to napisz do jakiegoś forumowego skryptera czy by Ci nie pomógł :P
-
Juz udalo mi sie to naprawic, sprawdzilem spojnosc plikow z poziomu konsolki. A co do -debug w komendzie startu - nie moge tego zrobic bo super hosting hostandplay nie zezwala na edycje tego kodu :)
-
Witam. Po zmianie mapy na cache (przez komende source moda) mam problem z serwerem. Serwer sie zcrashowal, zmienilem glowna mape na de_mirage i nic... Do tej pory nie moge wlaczyc. Wywalilem cache z maplist/cycle tez nic... Ktos cos ?
Wed Sep7 15:02:09 CEST 2016: Server restart in 10 seconds # #Console initialized. Setting breakpad minidump AppID = 740 #Using breakpad minidump system 740/13546.358.DC Using breakpad crash handler Forcing breakpad minidump interfaces to load Looking up breakpad interfaces from steamclient Calling BreakpadMiniDumpSystemInit #Loading VPK file hashes for pure server operation. #Loading VPK file hashes for pure server operation. #Game.dll loaded for "Counter-Strike: Global Offensive" #CGameEventManager::AddListener: event 'server_pre_shutdown' unknown. #CGameEventManager::AddListener: event 'game_newmap' unknown. #CGameEventManager::AddListener: event 'finale_start' unknown. #CGameEventManager::AddListener: event 'round_start' unknown. #CGameEventManager::AddListener: event 'round_end' unknown. #CGameEventManager::AddListener: event 'difficulty_changed' unknown. #CGameEventManager::AddListener: event 'player_connect' unknown. #CGameEventManager::AddListener: event 'player_disconnect' unknown. #GameTypes: missing mapgroupsSP entry for game type/mode (custom/custom). #GameTypes: missing mapgroupsSP entry for game type/mode (cooperative/cooperative). #GameTypes: missing mapgroupsSP entry for game type/mode (cooperative/coopmission). #Unable to load manifest file 'scripts/game_sounds_manifest.txt' Add "-debug" to the ./srcds_run command line to generate a debug.log to help with solving this problem Wed Sep7 15:02:10 CEST 2016: Server restart in 10 seconds
-
Jak moglbym to zmodyfikowac zeby dzialaly?
-
Mimo to i tak nie dziala :/
//edit
Dodam, ze mam wgrany plugin abner bhop tez edytowany pod flage A
-
Bledy przy kompilacji:
//SourceMod Batch Compiler // by the SourceMod Dev Team //// cs_go_double_jump.sp // // cs_go_double_jump.sp(32) : warning 234: symbol "FCVAR_PLUGIN" is marked as deprecated: No logic using this flag ever existed in a released game. It only ever appeared in the first hl2sdk. // // // cs_go_double_jump.sp(32 -- 33) : warning 234: symbol "FCVAR_PLUGIN" is marked as deprecated: No logic using this flag ever existed in a released game. It only ever appeared in the first hl2sdk. // // // cs_go_double_jump.sp(33 -- 34) : warning 234: symbol "FCVAR_PLUGIN" is marked as deprecated: No logic using this flag ever existed in a released game. It only ever appeared in the first hl2sdk. // // // cs_go_double_jump.sp(34 -- 35) : warning 234: symbol "FCVAR_PLUGIN" is marked as deprecated: No logic using this flag ever existed in a released game. It only ever appeared in the first hl2sdk. // // // cs_go_double_jump.sp(35 -- 36) : warning 234: symbol "FCVAR_PLUGIN" is marked as deprecated: No logic using this flag ever existed in a released game. It only ever appeared in the first hl2sdk. // // // Code size: 6776 bytes // Data size: 4156 bytes // Stack/heap size: 16384 bytes // Total requirements: 27316 bytes // // 5 Warnings. // // Compilation Time: 0,39 sec // ---------------------------------------- Press enter to exit ...
Atomical - rekrutacja.
w Klan szuka graczy
Opublikowano · Edytowane przez kaamil3q
Pomijając Twój zbędny offtop, który został zreportowany to masz rację - dlatego większość się nie dostała.
Ps. od dawna nie przyjmujemy już do teamu, można zamknąć.