premysltalich / teamgames Goto Github PK
View Code? Open in Web Editor NEWSourcemod plugin providing team based games for prisoners and some useful things for wardens.
Sourcemod plugin providing team based games for prisoners and some useful things for wardens.
Error logs (a lot): http://pastebin.com/8HRPJ3Lz
I use another model Fence corner (line_post.mdl), it is the standard cs:go and does not require downloading, but a little low. So please add
[FenceCorner <float: scale>] models/props_unique/airport/line_post.mdl
http://linkme.ufanet.ru/images/9656fb9cc783df3273a68ad8b3caa558.jpg
I can't find addons/sourcemod/plugins . Is it missing or am I just dumb?
L 05/02/2016 - 04:34:19: [TeamGames/TeamGames.smx] Unknown file prefix "HotPotato-healthbar" (file: "materials/tg/healthbar/100.vmt") !
L 05/02/2016 - 04:34:19: [TeamGames/TeamGames.smx] Unknown file prefix "HotPotato-healthbar" (file: "materials/tg/healthbar/90.vmt") !
L 05/02/2016 - 04:34:19: [TeamGames/TeamGames.smx] Unknown file prefix "HotPotato-healthbar" (file: "materials/tg/healthbar/70.vmt") !
L 05/02/2016 - 04:34:19: [TeamGames/TeamGames.smx] Unknown file prefix "HotPotato-healthbar" (file: "materials/tg/healthbar/50.vmt") !
L 05/02/2016 - 04:34:19: [TeamGames/TeamGames.smx] Unknown file prefix "HotPotato-healthbar" (file: "materials/tg/healthbar/30.vmt") !
L 05/02/2016 - 04:34:19: [TeamGames/TeamGames.smx] Unknown file prefix "HotPotato-healthbar" (file: "materials/tg/healthbar/10.vmt") !
https://github.com/KissLick/TeamGames/search?utf8=%E2%9C%93&q=DOWNLOAD_HEALTHBAR
In the folder "plugins" I sort of *.sp files in folders, especially the modules, if I put a plug-in or module folder sourcemod / plugins / TeamGames, the plug can not create the setting.
[TeamGames/TG_ChickenHunt.smx] Cannot create file 'addons/sourcemod/configs/colorvariables/plugin.TeamGames/TG_ChickenHunt.cfg' !
SourcePawn Compiler 1.8.0.5914
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2015 AlliedModders LLC
/home/home/GIT/TeamGames/addons/sourcemod/scripting/modules/TG_Warden.sp(36) : error 001: expected token: ";", but found "return"
/home/home/GIT/TeamGames/addons/sourcemod/scripting/modules/TG_Warden.sp(46) : error 001: expected token: ";", but found "return"
/home/home/GIT/TeamGames/addons/sourcemod/scripting/modules/TG_Warden.sp(56) : error 001: expected token: ";", but found "return"
/home/home/GIT/TeamGames/addons/sourcemod/scripting/modules/TG_Warden.sp(66) : error 001: expected token: ";", but found "return"
/home/home/GIT/TeamGames/addons/sourcemod/scripting/modules/TG_Warden.sp(71) : error 001: expected token: ";", but found "return"
/home/home/GIT/TeamGames/addons/sourcemod/scripting/modules/TG_Warden.sp(76) : error 001: expected token: ";", but found "return"
/home/home/GIT/TeamGames/addons/sourcemod/scripting/modules/TG_Warden.sp(108) : error 001: expected token: ";", but found "return"
7 Errors.
The preparation of the game is given 5 seconds, and if T during the preparation time to write "!refise" or "-" the game does not start.
It is necessary that T could protect themselves from CT that launch games that T could not attack them.
Thank You for #8 (comment)
Please Add in include something like
SpawnMark (iClient, TG_BlueTeam, fX, fY, fZ);
For other plugins
For example, for this plugin WARDEN https://github.com/FoxSerito/sm_jail_warden/blob/master/sm_jail_warden.sp#L936
or any shop.
for example in the configs/teamgames/moremarks.cfg addition to red, and blue, you can add more others Marks and others plugins can use these.
tgm_warden_admins : 1 : : Treat admins as warden.
tgm_warden_fences : 1 : : Only warden can use TG fence.
tgm_warden_games : 1 : : Only warden can use TG games.
tgm_warden_marks : 1 : : Only warden can use TG marks.
tgm_warden_menu : 1 : : Only warden can use TG menu.
tgm_warden_teams : 1 : : Only warden can use TG teams.
So my jail is set up so that if no CT, the cells are always open and always T respawned.
And at this time when there is no CT admins can run games.
Can you do cvar to the T came out menus (if he wants to play the game)
At the moment when the admin puts the player in the team.
Sorry for bad English.
I just added all files, started server and get this:
L 03/03/2017 - 16:25:12: SourceMod error session started
L 03/03/2017 - 16:25:12: Info (map "workshop/172839288/jb_renegade_v5") (file "errors_20170303.log")
L 03/03/2017 - 16:25:12: [SM] Exception reported: invalid handle 0 (error: 4)
L 03/03/2017 - 16:25:12: [SM] Blaming: TG_PermanentFences.smx
L 03/03/2017 - 16:25:12: [SM] Call stack trace:
L 03/03/2017 - 16:25:12: [SM] [0] WriteFileLine
L 03/03/2017 - 16:25:12: [SM] [1] Line 94, TG_PermanentFences.sp::OnMapStart
[SM] Exception reported: Client index 1418041570 is invalid
[SM] Blaming: TeamGames/TeamGames.smx()
[SM] Call stack trace:
[SM] [0] VFormat
[SM] [1] Line 104, /home/renat/scripting/include/colorvariables.inc::CPrintToChatAll()
[SM] [2] Line 115, Teams.sp::SwitchAllToRedTeam()
[SM] [3] Line 68, Teams.sp::TeamsMenu_Handler()
SM] Exception reported: Client index 1953784144 is invalid
SM] Blaming: TeamGames/TeamGames.smx()
SM] Call stack trace:
SM] [0] VFormat
SM] [1] Line 104, /home/renat/scripting/include/colorvariables.inc::CPrintToChatAll()
SM] [2] Line 115, Teams.sp::SwitchAllToRedTeam()
SM] [3] Line 68, Teams.sp::TeamsMenu_Handler()
For example, these games also would be very useful in LR
TG_ChickenHunt.sp
TG_GunFight.sp
TG_HEGrenades.sp
TG_HeadShotOnly.sp
TG_HotPotato.sp
TG_Machines.sp
TG_ReloadBattle.sp
TG_TaserMania.sp
Or please do based on these plug-ins for standalone HOSTIES2
I think in https://github.com/KissLick/TeamGames/blob/f791bbd0ad2ae969bd67c1802b4968ed1221a037/addons/sourcemod/scripting/modules/TG_Warden.sp#L107
need to add
if (....&& iClient > 0 && warden_iswarden(iClient))
return true;
because
[SM] Exception reported: Client index -1 is invalid
[SM] Blaming: sm_jail_csgowarden.smx()
[SM] Call stack trace:
[SM] [0] IsClientInGame
[SM] [1] Line 448, /home/home/GIT/sm_warden/scripting/sm_jail_csgowarden.sp::Native_IsWarden()
[SM] [3] warden_iswarden
[SM] [4] Line 107, /home/home/GIT/TeamGames/addons/sourcemod/scripting/modules/TG_Warden.sp::CheckWardenAccess()
[SM] [5] Line 74, /home/home/GIT/TeamGames/addons/sourcemod/scripting/modules/TG_Warden.sp::TG_OnPlayerTeam()
[SM] [7] Call_Finish
[SM] [8] Line 158, Teams.sp::SwitchToTeam()
[SM] [9] Line 362, Teams.sp::ClearTeam()
[SM] [10] Line 125, Api.sp::Native_ClearTeam()
[SM] [12] TG_ClearTeam
[SM] [13] Line 120, /home/home/GIT/t2_lr_cfg/addons/sourcemod/scripting/jail_t2lrcfg.sp::lr()
So basically, when CT spawn C4 it drops the server, any updates on how to fix it?(Teamgames menu - Spawn bomb)
public Action:Command_Rebel(iClient, iArgs)
{
if (Client_IsValid(iClient)) {
if (CVAR == 0) {
CPrintToChat(iClient, "%t", "Rebel-IsDisabled");
} else if (GetClientTeam(iClient) != CS_TEAM_T) {
CPrintToChat(iClient, "%t", "Rebel-PrisonersOnly");
} else if (!IsPlayerAlive(iClient)) {
CPrintToChat(iClient, "%t", "Rebel-AliveOnly");
} else if (!TG_IsPlayerRedOrBlue(iClient)) {
CPrintToChat(iClient, "%t", "Rebel-InTeamOnly");
} else {
MakeRebel(iClient);
}
}
return Plugin_Handled;
}
And new key "2" for tg_game_rebelattack
// Action taken when red/blue T attack CT during game
// 0 = no dmg & no rebel
// 1 = no dmg & make rebel
// 2 = dmg & no rebel
https://github.com/KissLick/TeamGames/blob/master/addons/sourcemod/scripting/modules/TG_HotPotato.sp
The game HotPotato after the death of a HotPotatoplayer a bomb is not removed, but new hot potato is created. As a result, it created a lot of bombs, and it is not clear which of the bombs is a hot potato.
It would be nice to make a bomb, which has a model of a hot potato
for example:
SetEntityModel(bomb_ent, "HotPotatoModel");
Where HotPotatoModel == models\props_junk\watermelon01.mdl or models\props_misc\bread-4.mdl or models\gibs\hgibs.mdl for exapmle
And that from the hot potato to the "holder" of potatoes was a line
TE_SetupBeamPoints (posHotPotato, posHolder, ...........);
TE_SendToClient (allclients);
Can you make a hint to the player with potatoes? (PrintHintText)
For example: if the player threw the potatoes then it will be written that he picked it up and threw another player. Because a lot of beginners do not understand the meaning of the game when it launches commander.
shadows of his fall, but it is invisible http://linkme.ufanet.ru/images/c42aceb70abc183da3c9b03700826396.jpg
tg_fence_type 1 working fine
P.S. how to make that Prisoners could not pass through it?
[SM] Exception reported: Client 17 is not in game
[SM] Blaming: TeamGames/TeamGames.smx
[SM] Call stack trace:
[SM] [0] IsPlayerAlive
[SM] [1] Line 5, Commands.sp::Command_BindAction
addons/sourcemod/configs/colorvariables/plugin.TeamGames.cfg
replace "tg-blueteam" "{lightblue}"
to "tg-blueteam" "{blue}" //for exapmle
Because https://github.com/KissLick/ColorVariables is not have lightblue for CS:GO
i would be happy with a new ConVar. something like:
tg_noneteam_attack - Can Ts in **none team** attack each other even if there is no game?
I misread alltime tg_team_attacks
"excluding". Would be very helpful for my project.
Thanks in advance!
Hi,
I would have a new ConVar request.
I'm not happy with this part: https://github.com/KissLick/TeamGames/blob/master/addons/sourcemod/scripting/TeamGames.sp#L379-L381
// CT can't hurt CT
if (iAttackerTeam == CS_TEAM_CT && iVictimTeam == CS_TEAM_CT)
return Plugin_Handled;
I used by mistake an old modified version of TG for all my testings and forgot about this part. To keep compatibility with MyJailbreak I wrote this little plugin to toggle your friendly fire system #20 . But now I ran in the issue for CTs in a FreeForAll or "teammates_are_enemies round". stupid me.
Would be nice to have a Cvar to toggle CTs friendly fire or include this in tg_team_none_attack
or maybe even a native? Or maybe you got a better idea to handle this conflict, instead of toggling cvars.
Much Thnks!
SourcePawn Compiler 1.8.0.5914
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2015 AlliedModders LLC
/home/home/scripting/include/teamgames-stocks.inc(269) : error 130: cannot coerce functions to values
/home/home/scripting/include/teamgames-stocks.inc(280) : warning 237: coercing functions to and from primitives is unsupported and will be removed in the future
After 770fded
Hey guys,
after i installed this teamgames, and set it only for warden, there is another problem..
When somebody type into chat /teamgames, it will say [SM] You dont have permissionson this!... :(
I am using this MyJB-dev-73f7718 and https://github.com/KissLick/TeamGames this version of teamgames..
Can somebody say me why this doesnt work? But for admins it works :)
There is a problem regarding the myjailbreak when activated event day, for example, the FFA, the Friendly Fire is disabled and team can not take damage
I think that you need to install the Alpha 255
https://github.com/KissLick/TeamGames/blob/2d77236f9cc055ae1d03849afa1230d16dca3022/addons/sourcemod/scripting/modules/TG_HotPotato.sp#L223 for example.
P.S. and sm plugins reload TeamGames/TG_HotPotato crash server.
I have problem with compile this plugins and default compiled version crash sometimes when some game start, which one i dont know.
Sourcemod - 1.10 - build 6510
Metamod - 1.11 - build 1145
TG version - "1.1.0.7-fix" //edit by shanapu"
TeamGames.sp
//
// D:\*\addons\sourcemod\scripting\include\teamgames-natives.inc(380) : fatal error 196: deprecated syntax; see https://wiki.alliedmods.net/SourcePa...yntax#Typedefs
//
// Compilation aborted.
// 1 Error.
Hello, After installing the plugin, everyone writes:Status: 0
Client: 1.After each action.Tell me please, how to remove?
https://github.com/KissLick/TeamGames/blob/master/addons/sourcemod/translations/ru/TeamGames.phrases.txt#L166
Not Отcановить игру
Остановить игру
Server is crashing when someone tries to join.
Sourcemod Version: 1.10.0.6380
Error: Host_Error: Index error writing string table baseline downloadables
Accelerator: IS3X-RBI4-ZE4T
If I leave only TeamGames.smx, TG_MoreMarks.smx and TG_Warden.smx it works fine.
I will test module by module to check if it's a specific module.
If T is picked up by another bomb, then he will not be able to throw the hot potato. It is necessary to make a ban on the recruitment of other bombs.
Hello !
I don't see cables when I create fences and I found those lines in my logs.
Those files are missing in extras folder.
[TeamGames.smx] File 'materials/cable/bf_rope.vmt' (prefix '[FenceMaterial 1.0 255 255 255 255]') not found!
[TeamGames.smx] File 'materials/cable/bf_rope.vmt' (prefix '[PermanentFeces-Material 1.0 255 255 255 255]') not found!
[TeamGames.smx] File 'materials/cable/bf_rope.vtf' (prefix '') not found!
please do so when you move into the team, the message is dispatched to chat with one at all players, not for each player individually.
for example:
instead
sharen Player 1 moved in the red team
sharen Player 2 moved in the red team
sharen moved 3 player in the team red
sharen moved 4 player in the team red
do this way:
sharen moved all the players in the team red
I've already done the blank phrases:
"PlayerMove-RedTeamALL" // msg for all players when player {1} moved all players to team red
{
"#format" "{1:s}"
"en" "{1} moved all players to{tg-redteam} red {default} team!"
"ru" "{1} переместил всех в команду {tg-redteam} красных!"
}
"PlayerMove-FiftyFiftyAll" // msg for all players when player {1} moved all players to both teams
{
"#format" "{1:s}"
"en" "{1} divided into 2 teams all!"
"ru" "{1} поделил всех на 2 команды!"
}
"PlayerMove-NoneTeamAll" // msg for all players when all players was moved out of any team
{
"en" "All players expelled from the team!"
"ru" "Всех игроков исключили из команды!"
}
P.S. and additionals for ru translation http://rgho.st/85PKkCkpX
[SM] Exception reported: Invalid client index 328
[SM] Blaming: TeamGames/TeamGames.smx()
[SM] Call stack trace:
[SM] [0] IsPlayerAlive
[SM] [1] Line 659, Api.sp::Native_StopGame()
[SM] [3] TG_StopGame
[SM] [4] Line 121, /home/home/GIT/t2_lr_cfg/addons/sourcemod/scripting/jail_t2lrcfg.sp::lr()
May be it is userid, not index? https://github.com/KissLick/TeamGames/blob/a6ae9825289e741ed65fc9f0b3bbf8ccf285cba4/addons/sourcemod/scripting/Api.sp#L659
Please do (as a module) For CT could start the game only when all T will be in a certain zone.
Because many CT start the game right away as a prisoner out of the cells, and can start playing even if one of the prisoners escaped. What could spoil the gameplay.
For example:
"TG_Zones"
{
"ba_jail_electric_vip_v3"
{
"Football" //The game can begin only when all the T will be in one of these zones
"Gameroom"
}
"jb_map2"
{
"Gameroom"
}
}
If a CT wants to play, and some of the prisoners had escaped, he leaves a message: "To start the game Take all the prisoners in one of these areas:
Football
Gameroom "
https://forums.alliedmods.net/showthread.php?p=2023591 DevZones
Of course, if the server admin is not lazy and will place the zone on each map.
A note the zone using Dev Zones is a case for 5 minutes
Or just before the game to check whether all the prisoners next to each other or someone escaped.
Please do so that CT can quickly and emergency stop the game.
ForExample sm_stopgame or with Bind-actions
And to Core_GamesMenu-Fifty Fifty and Core_GamesMenu-ReadOnly have always been active in menu, but if the team is not divided correctly, the plugin provides automatic distribution of either the Red team a half Red and Blue
Do so in games weapons were issued at the expense of 3, not at the beginning of reference.
And so it turns out that the account of all the T 3 are targeting each other in the head.
Or is it better to the account of 3 players thawed, and a moment later they were given weapons.
When I create a fence the beams/ropes doesn't load
Thanks, Papero.
[SM] Native "RemoveEdict" reported: Edict 1107 (1107) is not a valid edict
[SM] Displaying call stack trace for plugin "TeamGames/TeamGames.smx":
[SM] [0] Line 96, HealthBar.sp::RemoveHealthBar()
[SM] [1] Line 45, HealthBar.sp::UpdateHealthBar()
[SM] [2] Line 365, TeamGames.sp::Hook_OnTakeDamagePost()
the game is that the healthbars remain after the game
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.