CMD help.
#6

It's because when a hitman uses /hsms, they'll get this:
pawn Код:
if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4)
    {
        SendClientMessage(playerid,COLOR_WHITE, "You're not Hitman Agency member."); // <-- This
    return 1;
If they're in "faction 6", they'll get this:

pawn Код:
if(PlayerInfo[playerid][pFaction] == 6)
    {
        SendClientMessage(playerid, COLOR_GREY, "You're not authorized to use that command!"); // <-- This
    return 1;
    }
So you basicly did so all factions except for faction 6 & 4 being able to use it. Also you have no function? What's the CMD supposed to do?

Change your code to this:
pawn Код:
CMD:hsms(playerid, params[])
    if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4)
    {
        // Here you write what the CMD does if used by a hitman member.
    }
    else
    {
        SendClientMessage(playerid,COLOR_WHITE, "You're not Hitman Agency member.");
    }
    return 1;
}
Reply


Messages In This Thread
CMD help. - by DonMaraz - 14.01.2015, 20:48
Re: CMD help. - by xVIP3Rx - 14.01.2015, 20:52
Re: CMD help. - by DonMaraz - 14.01.2015, 20:54
Re: CMD help. - by DonMaraz - 14.01.2015, 21:09
Re: CMD help. - by DonMaraz - 14.01.2015, 21:22
Re: CMD help. - by CodyHawkins - 14.01.2015, 21:28
Re: CMD help. - by DonMaraz - 14.01.2015, 21:52
Re: CMD help. - by CodyHawkins - 14.01.2015, 21:56
Re: CMD help. - by DonMaraz - 15.01.2015, 11:05
Re: CMD help. - by CodyHawkins - 15.01.2015, 15:55

Forum Jump:


Users browsing this thread: 5 Guest(s)