I can help, what server source are you using?
|
How would I make a command that makes a player say what you want them to say? I looked for a guide but I couldn't find one.
Pl0x.
Lol.
Rep+ to who helps.
Well I got so far:
Trying to make it so you doCode:if (command.startsWith("maketalk")){ try { String Tlk = command.substring(4); int TlkID = PlayerHandler.getPlayerID(Tlk); client p = (client) server.playerHandler.players[TlkID]; p.plrText = ""+command.substring(???)+""; p.plrTextUpdateRequired = true; }catch(Exception e) { sendMessage("Wrong syntax! Use as ::maketalk [PLAYERNAME]."); } }
Code:::maketalk [playername] [whatyouwantthemtosay]
---------- Post added at 04:24 AM ---------- Previous post was at 04:03 AM ----------
Anyone know? D:
okay use this:
String[] parts = command.split(" ");
int playerId = Integer.valueOf(parts[1]);
...Do the rest here...
p.plrText = parts[1];
p.plrTextUpdateRequired = true;
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |