Hi, need help with this
#7

Код:
CMD:/r(playerid,params[])
{
    if(iGroupID = PlayerInfo[playerid][pMember]==0,PlayerInfo[playerid][pFMember]!=0)
    {
        ////do only family chat
    }
    if(iGroupID = PlayerInfo[playerid][pMember]!=0,PlayerInfo[playerid][pFMember]==0)
    {
        ////do only faction chat
    }
    new text[128],identifier[3];
    if(sscanf(params,"s[1]s[128]",identifier,text)) return //dosomething
    if(strcmp(identifier,"fam")==0)
    {
         ///dooo youur stuff for family chat
    }
    if(strcmp(identifier,"fac")==0)
    {
        ///dooo youur stuff for faction chat
    } 
}
also this is for if person is only in famly or only in faction. Also ofcourse it will give errors this is just basic example you need to edit all your commands. If i did them all for you whats the point ?
Reply


Messages In This Thread
Hi, need help with this - by PierreMarley - 17.11.2017, 18:10
Re: Hi, need help with this - by grymtn - 17.11.2017, 18:16
Re: Hi, need help with this - by solstice_ - 17.11.2017, 18:28
Re: Hi, need help with this - by PierreMarley - 17.11.2017, 18:48
Re: Hi, need help with this - by grymtn - 17.11.2017, 18:57
Re: Hi, need help with this - by PierreMarley - 17.11.2017, 19:01
Re: Hi, need help with this - by grymtn - 17.11.2017, 19:04
Re: Hi, need help with this - by PierreMarley - 17.11.2017, 19:41
Re: Hi, need help with this - by PierreMarley - 18.11.2017, 22:29
Re: Hi, need help with this - by Barnwell - 18.11.2017, 22:54
Re: Hi, need help with this - by thefirestate - 19.11.2017, 02:11
Re: Hi, need help with this - by Sew_Sumi - 19.11.2017, 04:00
Re: Hi, need help with this - by thefirestate - 19.11.2017, 05:14
Re: Hi, need help with this - by grymtn - 19.11.2017, 09:08
Re: Hi, need help with this - by Sew_Sumi - 19.11.2017, 17:31

Forum Jump:


Users browsing this thread: 3 Guest(s)