Raised This Month: $51 Target: $400
 12% 

Module: Semiclip (Team Semiclip) Ultimate 2013 [ALL GAMES] + ZP Integration


Post New Thread Reply   
 
Thread Tools Display Modes
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 07-29-2011 , 23:13   Re: Modules: Semiclip & Team Semiclip [ALL GAMES]
Reply With Quote #11

Download the amxmodx sourcecode!
Open the cstrike.cpp, cstrike.h, etc: ...
__________________
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 07-30-2011 , 00:11   Re: Modules: Semiclip & Team Semiclip [ALL GAMES]
Reply With Quote #12

For the Zombie Plague mod:

You have to update the AMXX API team's ID at players for a fair semiclip effect!

How to edit the zombie plague plugin?

In the down of the script you'll find this:

Code:
// Set a Player's Team
stock fm_cs_set_user_team(id, team)
{
	set_pdata_int(id, OFFSET_CSTEAMS, team, OFFSET_LINUX)
}
The stock will be looking like this:

Code:
// Set a Player's Team
stock fm_cs_set_user_team(id, team)
{
	set_pdata_int(id, OFFSET_CSTEAMS, team, OFFSET_LINUX)
        cs_set_team_id(id, team)
}
Also, in the top of the script you'll find this:

Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fakemeta>
#include <hamsandwich>
#include <xs>
The included files should be looking like this:

Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fakemeta>
#include <hamsandwich>
#include <xs>
#include <cs_team_changer>
ATTENTION: Don't forget to copy the cs_team_changer.inc to addons\amxmodx\scripting\include before compiling!

Big thanks to Arkshine for rewriting and compiling the module!

Attached Files
File Type: dll cs_team_changer_amxx.dll (76.0 KB, 268 views)
File Type: so cs_team_changer_amxx_i386.so (17.4 KB, 260 views)
File Type: zip cs_team_changer_source.zip (40.1 KB, 279 views)
File Type: inc cs_team_changer.inc (2.3 KB, 292 views)
__________________

Last edited by claudiuhks; 08-11-2011 at 19:04.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 07-30-2011 , 04:27   Re: Modules: Semiclip & Team Semiclip [ALL GAMES]
Reply With Quote #13

Quote:
Originally Posted by Arkshine View Post
Yes, cs_set_user_team sends MF_SetPlayerTeamInfo which update properly the team's id in AMXX API, so no need to send the message.
So if we change a player's team using some other method, do we have to send the whole message using message_begin, or is there any offset which, if we alter will send the message automatically.
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-30-2011 , 04:58   Re: Modules: Semiclip & Team Semiclip [ALL GAMES]
Reply With Quote #14

Eh, it remembers this bug and the fix I have proposed : https://bugs.alliedmods.net/show_bug.cgi?id=4656 , read my comment at the end.

AMXX updates the team's id only when ScoreInfo is sent. But in game, ScoreInfo is sent only when you spawn. By default, you respawn only on new round.

So :

- When the above fix will be pushed : Team's id will be updated when TeamInfo will be sent.
- Without this fix : You need to throw ScoreInfo.
- Using the above module (team_changer) : MF_SetPlayerTeamInfo is used, so it updates properly the team's id in AMXX API.

I would recommend the module, since I don't know when BAIL' is going to push the fix, and to avoid to send unnecessary message.

@claudiuhks : I have attached in your post the linux version, please test it.
__________________

Last edited by Arkshine; 07-30-2011 at 05:12.
Arkshine is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 07-30-2011 , 05:15   Re: Modules: Semiclip & Team Semiclip [ALL GAMES]
Reply With Quote #15

Well i will only use the module if its the last option, let me ask one more thing:
Code:
MF_SetPlayerTeamInfo( iParameters[ 1 ], iParameters[ 2 ], "TERRORIST" );
Is there any native or offset through which we can directly call the above line using amxx?

For eg: for this:
Code:
MDLL_ClientUserInfoChanged(pPlayer, GETINFOKEYBUFFER(pPlayer));
We can call this function by using Fakemeta:
Code:
dllfunc(DLLFunc_ClientUserInfoChanged, client, engfunc(EngFunc_GetInfoKeyBuffer, client));
This is what i mean?
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 07-30-2011 , 05:15   Re: Modules: Semiclip & Team Semiclip [ALL GAMES]
Reply With Quote #16

claudiuhks

Thanks man you your team_changer module, now works fine in Zombie Mod.

Just 1 more question:
PHP Code:
// Set a Player's Team
stock fm_cs_set_user_team(idteam)
{
    
set_pdata_int(idOFFSET_CSTEAMSteamOFFSET_LINUX)
        
player_set_team(idteam)

Why still want to use fakemetard:
PHP Code:
set_pdata_int(idOFFSET_CSTEAMSteamOFFSET_LINUX
Since we have a team_changer module? can you explain a bit more please.
PHP Code:
// Set a Player's Team
stock fm_cs_set_user_team(idteam)
{
    
//set_pdata_int(id, OFFSET_CSTEAMS, team, OFFSET_LINUX)
        
player_set_team(idteam)

***Edited***
Nevermind, i've found the answer. BTW thanks again for this good module
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019

Last edited by yokomo; 07-30-2011 at 05:21. Reason: NVM i have found the answer.
yokomo is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-30-2011 , 05:18   Re: Modules: Semiclip & Team Semiclip [ALL GAMES]
Reply With Quote #17

Quote:
Is there any native or offset through which we can directly call the above line using amxx?
Nope. You don't understand we are talking about AMXX API itself, so for functions to be used in others modules of AMXX.
__________________
Arkshine is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 07-30-2011 , 06:19   Re: Modules: Semiclip & Team Semiclip [ALL GAMES]
Reply With Quote #18

Quote:
Originally Posted by Arkshine View Post
Nope. You don't understand we are talking about AMXX API itself, so for functions to be used in others modules of AMXX.
Seems that the module is the only last choice, i'll report this to MeRcyLeZZ
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 07-30-2011 , 08:31   Re: Modules: Semiclip & Team Semiclip [ALL GAMES]
Reply With Quote #19

Right, set_pdata_int will change the player team without lagging because there's not any messages (in set_pdata_int) to update the tablescore, because this messages can crash the server if there's a mass-changing!

This is the reason why Mercylezz added some delay in the tablescore changes... with message_begin(MSG_ALL,g_iTeamInfo),write_byte (player),write_string(szTeam),message_end();
The 'cs_set_user_team' native also crash the server (in mass-teamchanges) because it starts the team info message and change the player model...

The last solution is to use this module because it just change some informations from the server engine at players...

You can tell to Mercylez to crate a copy of his plugin in his primary post, with the team_changer module active and the link to the semiclip post...

@Arkshine, thank you for compiling the linux version
__________________

Last edited by claudiuhks; 07-30-2011 at 08:35.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-30-2011 , 08:36   Re: Modules: Semiclip & Team Semiclip [ALL GAMES]
Reply With Quote #20

Quote:
it just change some informations from the server engine at players...
No, it updates only the team's id in the AMXX API.
__________________
Arkshine is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode