Command?

02/24/2010 03:14 Decker_#1
Hello.
I deleted my NPC to start quiz show but is there a command that only PM/GM's can start it without the NPC?
02/24/2010 03:16 Arcо#2
/quiz?
Search your chat.cs before asking questions about commands next time.
02/24/2010 05:38 pro4never#3
Even if there wasn't... not exactly hard to do.

Use one of the existing cmds as an example and have it trigger the start quiz function in your source.
02/24/2010 08:30 -NewDawn-#4
Quote:
Originally Posted by Decker_ View Post
Hello.
I deleted my NPC to start quiz show but is there a command that only PM/GM's can start it without the NPC?
Code:
if (Cmd[0] == "/quiz")
     if (!Features.QuizShow.QuizON)
     Features.QuizShow.Start();
[Only registered and activated users can see links. Click Here To Register...]
Hope that helps =P, You might have to change ... if (GC.AuthInfo.Status == "[PM]") .... to .... if (GC.AuthInfo.Status == "[GM]" || GC.AuthInfo.Status == "[PM]") .... (around line 259) if you're trying to test it with a GM. If it's just a PM it should work fine if not already in there.
02/24/2010 17:19 Decker_#5
Thanks newdawn
#request close