Raised This Month: $ Target: $400
 0% 

[Request] Block player spawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 04-09-2016 , 13:42   [Request] Block player spawn
Reply With Quote #1

I want to block players from spawning after the round as started.

And no, iam not talking about after the freezetime, neither after the buytime, i want it to block right after the round as started, so only players that are already connected+inside-team are spawned, the ones who try to enter team do not get spawned.

There are some plugins that already do this job, but they Kill the user... i want it to simply not spawn.
Syturi0 is offline
Artifact
Veteran Member
Join Date: Jul 2010
Old 04-09-2016 , 14:02   Re: [Request] Block player spawn
Reply With Quote #2

edit that plugin they kill user from
user_kill(id) into user_silentkill(id)
__________________
Artifact is offline
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 04-09-2016 , 14:05   Re: [Request] Block player spawn
Reply With Quote #3

Quote:
Originally Posted by Artifact View Post
edit that plugin they kill user from
user_kill(id) into user_silentkill(id)
Already tryied. Its the same sh*t.
Syturi0 is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-09-2016 , 14:05   Re: [Request] Block player spawn
Reply With Quote #4

Quote:
There are some plugins that already do this job, but they Kill the user
How Artifact said, search in the plugin(s) the user_kill(id) or user_silentkill(id) and delete this.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-09-2016 , 14:06   Re: [Request] Block player spawn
Reply With Quote #5

Quote:
Originally Posted by Syturi0 View Post
Already tryied. Its the same sh*t.
What is the plugin that you searched, can you show?
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 04-09-2016 , 14:12   Re: [Request] Block player spawn
Reply With Quote #6

Quote:
Originally Posted by EFFx View Post
How Artifact said, search in the plugin(s) the user_kill(id) or user_silentkill(id) and delete this.
I dont want to kill the player, i want to block the spawning, so when he tries to enter the team, it just starts spectating someone (like when you try to join in the midle of the round).
Syturi0 is offline
SkazzY
AlliedModders Donor
Join Date: Nov 2014
Location: Forbidden Forest
Old 04-09-2016 , 14:30   Re: [Request] Block player spawn
Reply With Quote #7

Just kill him with silentkill as they said.
SkazzY is offline
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 04-09-2016 , 14:35   Re: [Request] Block player spawn
Reply With Quote #8

Quote:
Originally Posted by SkazzY View Post
Just kill him with silentkill as they said.
Thats not what i asked for.
silentkill is not really "silent"...
The player still lives for half a second, then he dies, gets -1 score, and the top right corner message still appears, and his body stays on ground.

Last edited by Syturi0; 04-09-2016 at 14:35.
Syturi0 is offline
Artifact
Veteran Member
Join Date: Jul 2010
Old 04-09-2016 , 15:24   Re: [Request] Block player spawn
Reply With Quote #9

Quote:
Originally Posted by Syturi0 View Post
Thats not what i asked for.
silentkill is not really "silent"...
The player still lives for half a second, then he dies, gets -1 score, and the top right corner message still appears, and his body stays on ground.
User silent kill is user_kill without message in corner and other things. As you can see in message_stocks.inc file
PHP Code:
stock user_silentkill(index)
{
    static 
msgid 0;
    new 
msgblock;
    if (!
msgid)
    {
        
msgid get_user_msgid("DeathMsg");
    }
    
msgblock get_msg_block(msgid);
    
set_msg_block(msgidBLOCK_ONCE);    
    
user_kill(index1);
    
set_msg_block(msgidmsgblock);

    return 
1;

If you want to kill player without losing score simple use
PHP Code:
public fullSilentid ) {
    
// First kill player
    
user_silentkillid )
    
// Then get user frags (not death)
    
new frags get_user_fragsid )
    
// Increse player frags by 1
    
set_user_fragsidfrags )

__________________

Last edited by Artifact; 04-09-2016 at 15:25.
Artifact is offline
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 04-09-2016 , 15:44   Re: [Request] Block player spawn
Reply With Quote #10

Quote:
Originally Posted by Artifact View Post
User silent kill is user_kill without message in corner and other things. As you can see in message_stocks.inc file
PHP Code:
stock user_silentkill(index)
{
    static 
msgid 0;
    new 
msgblock;
    if (!
msgid)
    {
        
msgid get_user_msgid("DeathMsg");
    }
    
msgblock get_msg_block(msgid);
    
set_msg_block(msgidBLOCK_ONCE);    
    
user_kill(index1);
    
set_msg_block(msgidmsgblock);

    return 
1;

If you want to kill player without losing score simple use
PHP Code:
public fullSilentid ) {
    
// First kill player
    
user_silentkillid )
    
// Then get user frags (not death)
    
new frags get_user_fragsid )
    
// Increse player frags by 1
    
set_user_fragsidfrags )

EDIT: Nvm, fixed. mb

Last edited by Syturi0; 04-09-2016 at 15:48.
Syturi0 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 04:20.


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