Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help prefix doesnt work with shop
#1
So i tried to make a prefix plugin thing and i put this code onplayersay
CSHARP Code
  1. if (Client.XUID == "MY XUID")
  2. {
  3. ServerSay("^1[Staff] ^5" + Client.Name + ": ^8" + Message, true);
  4. return ChatType.ChatNone; // This is so that the message doesnt pop up twice
  5.  
  6. }
thats in Main.cs in a project where i have alot of other .cs files
i use sailormoons shop plugin and when i type !points it doesnt work but when other people without the prefix type it, it works. The thing is i have administratorcommands.cs with !noclip etc. and that works, help? (Srry for bad grammar)

the return ChatType.ChatNone; is what is casuing the problem, i tried removing it and it works, but what i find strange is that other commands such as !noclip works. Any way i can fix this but still have my prefix without message showing twice?
[Image: 24gu1a8.png]
Reply

#2
if (Client.XUID == "MY XUID" && !Message.StartsWith("!"))

That should fix it
Reply

#3
Trying that out now, thanks
EDIT: It works thanks ^^
[Image: 24gu1a8.png]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Permissions DOESNT work Hallla 2 3,048 08-18-2013, 11:28
Last Post: hillbilly
  Shop Database Hallla 5 4,793 07-23-2013, 07:33
Last Post: xfxtroll
  why permissions dont work. ? ExoGamer* 4 3,258 07-21-2013, 13:46
Last Post: X-Track
Wink [Release] Shop system for Infected gametype Nekochan 125 76,184 07-05-2013, 18:09
Last Post: mohammadnanaa
  Bunker Plugin Won't work OBJAY 4 4,494 06-03-2013, 15:48
Last Post: X-Track
  Moonlight Shop HELP Hallla 4 3,275 05-12-2013, 16:05
Last Post: Hallla
  Help Infected Shop Plugin Problem Hallla 2 3,153 05-06-2013, 18:29
Last Post: Hallla
  Help Perks do not work (( x1412 6 4,387 04-06-2013, 18:09
Last Post: x1412
  Help !Shop TK hillbilly 3 3,428 04-05-2013, 10:26
Last Post: hillbilly
  shop mySQL [HARD] Tony. 3 2,636 03-19-2013, 17:13
Last Post: [HARD] Tony.

Forum Jump:


Users browsing this thread:
2 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.