Jump to content
  • 0

disconnect when dying on specific map


IsabelaFernandez

Question


  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.07
  • Content Count:  354
  • Reputation:   8
  • Joined:  04/16/18
  • Last Seen:  

Hello friends, as the title itself says I would like a script to make the player disconnect on a specific map when dying.

For example the map: bossnia_01, bossnia_02

 

thank you all for your support
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  255
  • Reputation:   232
  • Joined:  07/24/13
  • Last Seen:  

14 minutes ago, IsabelaFernandez said:

Hello friends, as the title itself says I would like a script to make the player disconnect on a specific map when dying.

For example the map: bossnia_01, bossnia_02

 


thank you all for your support
-	script	Bossnia_kicker	-1,{
OnPCDieEvent:
	if (strcharinfo(3) == "bossnia_01" || strcharinfo(3) == "bossnia_02" || strcharinfo(3) == "bossnia_03" || strcharinfo(3) == "bossnia_04")
		atcommand "@kick "+strcharinfo(0);
	end;
}

Something like this.

  • Love 1
  • Like 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.07
  • Content Count:  354
  • Reputation:   8
  • Joined:  04/16/18
  • Last Seen:  

On 10/31/2019 at 8:19 PM, Balfear said:

-	script	Bossnia_kicker	-1,{
OnPCDieEvent:
	if (strcharinfo(3) == "bossnia_01" || strcharinfo(3) == "bossnia_02" || strcharinfo(3) == "bossnia_03" || strcharinfo(3) == "bossnia_04")
		atcommand "@kick "+strcharinfo(0);
	end;
}

Something like this.

 

thanks, it worked exactly as i wanted it to!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...