[COMMAND] Adding /gmrules

This is guide mostly for website tools and code, for example CMS or registration scripts.
There can also be tools.

Moderators: osRose dev team, ospRose dev team, osiRose dev team, Moderators

[COMMAND] Adding /gmrules

Postby fransh on Wed Feb 16, 2011 1:13 pm

This is a command which shows GMrules. (Like it does with /rules)

  1. else if (strcmp(command, "gmrule")==0)  //Coded by FransH ~ Inspired by Matt
  2.     {
  3.         if(Config.Command_Save > thisclient->Session->accesslevel)
  4.            return true;
  5.       SendPM(thisclient, "Follow these rules or you might lose your acceslevel!");
  6.             SendPM(thisclient, "Rule 1: Do not give items to other (normal) players");
  7.             SendPM(thisclient, "Rule 2: Don't abuse your powers");
  8.             SendPM(thisclient, "Rule 3: Respect the administrators");
  9.             SendPM(thisclient, "Rule 4: No spawning of any monsters in any towns");
  10.             SendPM(thisclient, "Rule 5: Don't teleport people for fun");
  11.             SendPM(thisclient,  "~ADMINS CAN DECIDE IF IT IS OKAY AT ALL TIME~.")
  12.     }


Ofcourse, everyone is free to edit these rules to their own.


Add this to gmcmd.cpp and ofcoure make a new line in commands.ini


~Made by FransH for SSROSE and inspired by '/rules' from Matt@RZ~
fransh
Smoulie
Smoulie
 
Posts: 34
Joined: Fri Jul 09, 2010 10:38 am

Return to PHP / Web Guides, Scripts and tools.

Who is online

Users browsing this forum: No registered users and 5 guests