Code: Show/Hide if(c->check("doors 0))
{ sendpublic(p, "?set door:doormode=0"); } //i dont know if thats the right command to do a public message |
Code: Show/Hide if (c->check("doors"))
{ // Trust the player was right and just set it to whatever the player said with no checking String s = "?set door:doormode:"; s += c->final;//c->final is the final part of the command sendPublic(/*No sound code needed*/s.msg);//.msg because we are puritan :) You could get by with just s too probably, but s.msg is clearer and more safe } |
Code: Show/Hide if(c->check("enable"))
{ onoff=c->final; } |
Code: Show/Hide if(c->check("enable")) { onoff= atoi(c->final); String s= "Removing players with"; s += onoff; s += " deaths"; sendPublic(s.msg); } |