i think you can add this when the option is clicked like in clickingbuttons under the option add this
if it worked thank meCode:c.getPA().removeAllWindows();
also make it so that the player cannot move when they first join the server
|
Okay when someone first joins the server this pops up
Now if you spamm click any of the following options listed above they stack on each other also if you click off onto the map and click on skill's teleport and choose a place to teleport it also dupes the items, how do I fix this?
i think you can add this when the option is clicked like in clickingbuttons under the option add this
if it worked thank meCode:c.getPA().removeAllWindows();
also make it so that the player cannot move when they first join the server
ok, so when you click the melee button what happens?
Create a boolean to check if they've received the starter.
In player.java; public boolean hasStarter = false;
Then in your starter code where it gives items, have a check like;
Code:if (!c.hasStarter) { //giveitem1 //giveitem2 //etc c.hasStarter = true; (Important otherwise it'll always be false). }
This is false
The reason is it'll always restore to the default (false) when you relog (can be fixed if you'll save it on accountfile).
How it can be cheated? simply a person relog, use a cheat client to open a dialogue OR cheat engine opening the dialogue.
So you should mainly save it on the account file & adding a basic system time millis timer.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |