Code: Show/Hide if (c->check("challenge")) { if (!*c->final) {sendPrivate(p, "Syntax: !challenge <playername>");} else { String challenger, challenged; challenger = p->name; challenged = c->final; _listnode <Player> *parse = playerlist->head; while (parse) { Player *p = parse->item; { if (p->name == challenged) { sendPrivate(p, (String)challenger + " Has challenged you for a duel, !accept to accept the duel!"); } } } } } else if (c->check("accept")) { if (p->name == challenged) { sendPrivate(p, "You have accepted the duel"); sendPrivate(p, "*warpto # #"); sendPrivate(challenger, "*warpto # #"); } } |
Witchie NL wrote: |
i just wrote that with bare hands and it might be fucked coz this forum doest suport the Tab key. There might be some bug's to but this will explain it a bit. |
Code: Show/Hide struct Challenge{
Player *challenger; Player *challenged; }; |