Code: Show/Hide else if (c->check("remove")) {
// if the player isn't a capt if(p->name != captains[0] && p->name != captains[1]) { sendPrivate(p,"You are not a captain and don't have access to this command"); } else { String s; s = c->final; int found=0; _listnode <Player> *parse = playerlist->head; while (parse && found==0) { Player *r = parse->item; sendRemotePrivate("Debug",r->name); sendRemotePrivate("Debug",s); if (r->name == s) { sendPrivate(r,"*setship 0"); sendPrivate(r,"*setfreq SPECFREQ"); found=1; } parse = parse->next; } if(found==0) sendPrivate(p,"That player wasn't found"); } } |