Raised This Month: $ Target: $400
 0% 

[css] how to detect which pligin kills player on spawn


Post New Thread Reply   
 
Thread Tools Display Modes
altex
Veteran Member
Join Date: May 2009
Location: Russia
Old 12-29-2009 , 03:24   Re: [css] how to detect which pligin kills player on spawn
Reply With Quote #11

Quote:
Originally Posted by meng View Post
have you tried adjusting the repawn time?
it respawns player in a 2 seconds

Quote:
Originally Posted by meng View Post
what does Preset Spawns do?
Just TeleportEntity(client...)
__________________
altex is offline
altex
Veteran Member
Join Date: May 2009
Location: Russia
Old 12-29-2009 , 08:04   Re: [css] how to detect which pligin kills player on spawn
Reply With Quote #12

The same slays are exist on SURF server.
There is the same deathmatch:sm plugin here, but respawn time is 2.5 minutes.
__________________
altex is offline
altex
Veteran Member
Join Date: May 2009
Location: Russia
Old 12-29-2009 , 09:13   Re: [css] how to detect which pligin kills player on spawn
Reply With Quote #13

Yes, it definetly because of deathmatch respawn:
Code:
new Handle:hRoundRespawn = INVALID_HANDLE;
StartPrepSDKCall(SDKCall_Player);
PrepSDKCall_SetFromConf(hGameConf, SDKConf_Signature, "RoundRespawn");
hRoundRespawn = EndPrepSDKCall();
...
SDKCall(hRoundRespawn, client);
But there are if statements
Code:
//10 sec repeat timer
    for ( new i = 1; i <= MaxClients; i++ )
    {
        if ( !IsClientInGame(i) || IsPlayerAlive(i) )
        {
            continue;
        }
        if ( GetClientTeam(i) < 2 )
        {
            continue;
        }
        // respawn HERE
    }
So i can not understant why it slays
__________________

Last edited by altex; 12-29-2009 at 09:15.
altex is offline
altex
Veteran Member
Join Date: May 2009
Location: Russia
Old 12-29-2009 , 09:41   Re: [css] how to detect which pligin kills player on spawn
Reply With Quote #14

i changed

SDKCall(hRoundRespawn, i);
to
CS_RespawnPlayer(i)

it means that
Code:
               "RoundRespawn"
{
    "library"     "server"
    "windows"     "\x56\x8B\xF1\x8B\x06\xFF\x90*\x04\x00\x00\x8B\x86*\x0D\x00"
    "linux"          "@_ZN9CCSPlayer12RoundRespawnEv"
}
changed to
Code:
"RoundRespawn"
{
    "library"     "server"
    "windows"     "\x56\x8B\xF1\x8B\x06\xFF\x90\x2A\x04\x00\x00\x8B\x86\x2A\x0D\x00"
    "linux"          "@_ZN9CCSPlayer12RoundRespawnEv"
}
So i'll check it out
__________________
altex is offline
altex
Veteran Member
Join Date: May 2009
Location: Russia
Old 12-29-2009 , 10:02   Re: [css] how to detect which pligin kills player on spawn
Reply With Quote #15

It did not help
__________________
altex is offline
API
Veteran Member
Join Date: May 2006
Old 12-29-2009 , 13:20   Re: [css] how to detect which pligin kills player on spawn
Reply With Quote #16

Search for ForcePlayerSuicide
__________________
API is offline
Send a message via AIM to API
altex
Veteran Member
Join Date: May 2009
Location: Russia
Old 12-29-2009 , 17:42   Re: [css] how to detect which pligin kills player on spawn
Reply With Quote #17

I actualy found the issue, and solved it
http://forums.alliedmods.net/showpos...5&postcount=20

Thanks for the help everybody.

I've searched for ForcePlayerSuicide too.
__________________
altex 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 20:28.


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