[HELP] Detect Team Change (cstrike)
Is there any way to detect when a player joins to spectator via cs_set_user_team native?
This won't hook it =d PHP Code:
|
Re: [HELP] Detect Team Change (cstrike)
I don't know how did you plan to detect a team change by setting someone's team. I guess you meant cs_get_user_team.
Here's a solution using Okapi. Tested and works on Windows. PHP Code:
|
Re: [HELP] Detect Team Change (cstrike)
What i meant was if it is possible to detect when cs_set_user_team is called, but i guess i will just do a work around..
|
Re: [HELP] Detect Team Change (cstrike)
If you're trying to prevent the spectator bug, i'd recommend ReGameDLL_CS.
|
Re: [HELP] Detect Team Change (cstrike)
Quote:
|
Re: [HELP] Detect Team Change (cstrike)
Too tired to do such things.. and if i do that, then i will want to start doing more.. and in that way i will never finish my project
|
Re: [HELP] Detect Team Change (cstrike)
Use Orpheu to hook that native, kek.
|
Re: [HELP] Detect Team Change (cstrike)
Nah, i got a nice workaround method already, i need to create some new natives for my csex API plugin which is an extension of natives for cstrike.. i will handle there and this..
I don't have the required knowledge to use orpheu, and atm i don't have the required time to learn And if it were to do this, i would rather modify amxx, and i don't want to get into that, because i will want to modify more and more and more and i will never finish my project lol |
Re: [HELP] Detect Team Change (cstrike)
Edit: Updated per Arkshine & Klippy's comments.
Signature created using cstrike module from 1.8.3 dev+4748 I only tested this on Windows. PHP Code:
Code:
cs_set_user_team : id=1 Team=3 Model=0Code:
{Code:
{ |
Re: [HELP] Detect Team Change (cstrike)
new iTeam = OrpheuMemoryGetAtAddress( params + 4 , "int" );
new iModel = OrpheuMemoryGetAtAddress( params + 8 , "int" ); Why did you add these numbers? |
| All times are GMT -4. The time now is 09:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.