Ban

Results 1 to 7 of 7
  1. #1
    Enthusiast Zenmar is offline
    MemberRank
    Jun 2008 Join Date
    27Posts

    Ban

    add #include "MYSQLM.h" to the top

    now add this somewhere
    Code:
    else if(strcmp(command, "ban") == ){
    MYSQL::insert("UPDATE `users` SET banned = 1 WHERE username = %d", next_token);
    MYSQL::insert("UPDATE `users` SET ban_reason = 1 WHERE username = %d", next_token);
    PlayersPacket::showMassage("%d has been banned.", next_token);
    		}
    else if(strcmp(command, "unban") == ){
    MYSQL::insert("UPDATE `users` SET banned = 0 WHERE username = %d", next_token);
    MYSQL::insert("UPDATE `users` SET ban_reason = 0 WHERE username = %d", next_token);
    PlayersPacket::showMassage("%d has been unbanned.", next_token);
    		}


  2. #2
    Valued Member iHannah is offline
    MemberRank
    May 2008 Join Date
    134Posts

    Re: [release]Ban

    what is this suppose to do

  3. #3
    Account Upgraded | Title Enabled! PixmaDragon is offline
    MemberRank
    Apr 2008 Join Date
    Planet EarthLocation
    560Posts

    Re: [release]Ban

    Quote Originally Posted by iHannah View Post
    what is this suppose to do
    i think its suppose to ban a player?

  4. #4
    Member Khal is offline
    MemberRank
    Jun 2008 Join Date
    I don't know, do you?Location
    71Posts

    Re: [release]Ban

    What the heck is with the spam?

  5. #5
    Account Upgraded | Title Enabled! zander145 is offline
    MemberRank
    Apr 2008 Join Date
    Norfolk, VALocation
    966Posts

    Re: [release]Ban

    Quote Originally Posted by Khal View Post
    What the heck is with the spam?
    Just ignore them, Nice release. though i'm sure i've seen it be4 for titan. I do beleive that this is for it.

  6. #6
    Account Upgraded | Title Enabled! Rigged is offline
    MemberRank
    Jun 2008 Join Date
    -Location
    1,036Posts

    Re: [release]Ban

    I thought it was a GM command for OdinMS Source to be put in the Command Processor. Meh.

  7. #7
    Account Upgraded | Title Enabled! zander145 is offline
    MemberRank
    Apr 2008 Join Date
    Norfolk, VALocation
    966Posts

    Re: [release]Ban

    Quote Originally Posted by Rigged View Post
    I thought it was a GM command for OdinMS Source to be put in the Command Processor. Meh.
    lol. Can't be. No MYSQLM.h file in odin. Thats Titan and and Vana.



Advertisement