I would like to offer you an idea of the script. I'd like to create the area on the map (may be island or locked castle tower) which will be use like the jail. If you want to punish the player for breaking server rules or cheating, then you put it in the jail instead of giving ban.Creating of custom area is rather easily in 3D editor, not as easy as the spawn code.
So, for creating such script we need some custom spawn location code whith the list UIDs which would call from data base table, because adding of banned and punished players would be easy.
The above code will create a new "cust_spawn" table into the DB.
5. Now click "clear" on the SQL page.
6. Paste the below code into the SQL page like before:
CREATE TRIGGER `custom_spawn`
BEFORE INSERT ON `character_data`
FOR EACH ROW
BEGIN
DECLARE x INT;
DECLARE y varchar(50);
SET x = (SELECT `PlayerUID` FROM `cust_spawn` WHERE `PlayerUID`=NEW.PlayerUID);
SET y = (SELECT `worldspace` FROM `cust_spawn` WHERE `PlayerUID`=NEW.PlayerUID);
IF NEW.PlayerUID = x THEN
SET NEW.worldspace=y;
END IF;
END;$$
Before clicking "ok" paste " $$ " into the delimiter box just below the sql box, Now click ok.
Now you have made your custom spawn table with the custom spawn point trigger
To setup a custom spawn point go into your new "cust_spawn" table on the left side, Click on "Insert" at the top and paste the UID of the player and enter the location you want them to spawn.
Question
X060T
Hi, all!
I would like to offer you an idea of the script. I'd like to create the area on the map (may be island or locked castle tower) which will be use like the jail. If you want to punish the player for breaking server rules or cheating, then you put it in the jail instead of giving ban.Creating of custom area is rather easily in 3D editor, not as easy as the spawn code.

So, for creating such script we need some custom spawn location code whith the list UIDs which would call from data base table, because adding of banned and punished players would be easy.
P.S. sorry 4 my English;)
Link to comment
Share on other sites
9 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now