[Help]Lead Channels

Results 1 to 6 of 6
  1. #1
    Enthusiast Alfrdajpm is offline
    MemberRank
    Feb 2012 Join Date
    29Posts

    [Help]Lead Channels

    Does anyone know how to incorporate the TAG system, or make certain channels lead and some anti lead... im using gunz 1.5


  2. #2
    Enthusiast Stahlix is offline
    MemberRank
    May 2011 Join Date
    43Posts

    Re: [Help]Lead Channels

    if(strcmp(ZGetGameClient()->GetChannelName(), "[LEAD]")) {
    DO LEAD STUFF
    } else {
    DO NO LEAD STUFF
    }

  3. #3
    Member iDelta is offline
    MemberRank
    Mar 2012 Join Date
    67Posts

    Re: [Help]Lead Channels

    Quote Originally Posted by Stahlix View Post
    if(strcmp(ZGetGameClient()->GetChannelName(), "[LEAD]")) {
    DO LEAD STUFF
    } else {
    DO NO LEAD STUFF
    }
    fuck, thanks.

  4. #4
    Hi, I'm Omar! Vusion is offline
    MemberRank
    Jan 2011 Join Date
    HereLocation
    1,658Posts

    Re: [Help]Lead Channels

    Quote Originally Posted by Stahlix View Post
    if(strcmp(ZGetGameClient()->GetChannelName(), "[LEAD]")) {
    DO LEAD STUFF
    } else {
    DO NO LEAD STUFF
    }
    I used strstr myself.

  5. #5
    Proficient Member Mr_Troy is offline
    MemberRank
    Jun 2007 Join Date
    172Posts

    Re: [Help]Lead Channels

    Quote Originally Posted by Vusion View Post
    I used strstr myself.
    Which is the best way to go, stricmp only compares the first characters of the string. Strstr actually searches for the string in a string.
    Last edited by Mr_Troy; 21-04-12 at 11:20 AM.

  6. #6
    Enthusiast Stahlix is offline
    MemberRank
    May 2011 Join Date
    43Posts

    Re: [Help]Lead Channels

    Strcmp fitted my needs when I used it, but the point was to give an idea of what to do to the person asking for help.



Advertisement