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 } |
. it was just a elize source with the elize stuff deleted and a !doors command and a kill macro (thanks to Dr Brain for his help). i was wondering how you base something on a players rec like for example if you want to eliminate a player at 5 deaths.
). k is the killer, just so you remember
I'm often wondering if k is the killer or the killed...
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); } |