Jump to content
  • 0

Script for Auto-kick from map if GM lv >1


Question

Posted (edited)

Good day,

I'm having some troubles finding a resource here for sending a player back to @go 0 (or their saved locaed) when entering a map. I tried using the Mapflags built into the game, but players can still @warp to my GM maps even with nowarp/nowarpto enabled. Anyone have a simple script to remove players from a specified map? I'd appreciate it greatly.

Edited by Rivers

9 answers to this question

Recommended Posts

  • 1
Posted
7 hours ago, Rivers said:

I just checked, but it wasn't under Lv 0. So what I did was add any_warp: false and it also did not resolved my problem.

Makes me confused why the mapflag nowarpto didn't workout. (it should be)

A little trick would be via scripting.

Try my script: Restriction

  • Upvote 1
  • 0
Posted
3 hours ago, Rivers said:

Good day,

I'm having some troubles finding a resource here for sending a player back to @go 0 (or their saved locaed) when entering a map. I tried using the Mapflags built into the game, but players can still @warp to my GM maps even with nowarp/nowarpto enabled. Anyone have a simple script to remove players from a specified map? I'd appreciate it greatly.

This might help. You just need to modify it.

 

 

  • Upvote 1
  • 0
Posted (edited)

Here

 

-	script	InvisibleOnLoadEvent	-1,{


OnPCLoadMap:
			mes "This is me when you use loadmap event";
			next;
			mes "Ok lets do some checking";
			next;
			if ( getgmlevel() >= 1 ) goto L_Notice;
			mes "You are normal player thats why you reading this";
			end;
                            
L_Notice:
		mes "Your group id is greater than 1 so you are a GM and GM are now allowed here";
		mes "Now you see how i pass the condition to warp you if you are not gm";
		next;
		warp geffen,x,y;
		end;
}
prontera	mapflag	loadmap

Once a char warp or load the prontera its either GM or Player he/she will go for checking 

Edited by Poring King
  • Upvote 1
  • 0
Posted
On 10/30/2020 at 1:32 AM, Rivers said:

Thank you both very much for this. 

Well first of all. Your mapflags are wrong. You can just mapflag nowarpto and nowarp to any specific map. Can you post your mapflags?

  • 0
Posted
heroton	mapflag	nowarp
hallow01	mapflag	nowarp
halloween	mapflag	nowarp
pa2_in02	mapflag	nowarp
heroton	mapflag	nowarpto
hallow01	mapflag	nowarpto
halloween	mapflag	nowarpto
pa2_in02	mapflag	nowarpto

 

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...