Problem command /fwarn i give rep who helps me !
#3

and the msg

pawn Код:
CMD:fwarn(playerid, params[])
{
    if(IsPlayerConnected(playerid))
    {
        new userID;
        new string[256];
        new giveplayer[MAX_PLAYER_NAME];
        new sendername[MAX_PLAYER_NAME];
        if(sscanf(params, "u", userID)) return SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/fwarn [playerid]");
        {
            if(playerVariables[playerid][pGroupRank] >= 6 && PlayerVariables[userID][pGroup] == PlayerVariables[playerid][pGroup])
            {
                GetPlayerName(userID, giveplayer, sizeof(giveplayer));
                GetPlayerName(playerid, sendername, sizeof(sendername));
                playerVariables[userID][pFWarns] += 1;
                format(string, sizeof(string), "You have give a faction warn to %s!", giveplayer);
                SendClientMessage(playerid, COLOR_LIGHTRED, string);
                format(string, sizeof(string), "%s has give you a faction warn!", sendername);
                SendClientMessage(userID, COLOR_LIGHTRED, string);
            }
            else SendClientMessage(playerid, COLOR_LIGHTRED, "Error: Player is not in your Faction!");
        }
    }
    return 1;
}
Reply


Messages In This Thread
Problem command /fwarn i give rep who helps me ! - by buburuzu19 - 08.10.2014, 15:50
Re: Problem command /fwarn i give rep who helps me ! - by MattTucker - 08.10.2014, 16:47
Re: Problem command /fwarn i give rep who helps me ! - by Rudy_ - 08.10.2014, 16:56
Re: Problem command /fwarn i give rep who helps me ! - by buburuzu19 - 09.10.2014, 13:01

Forum Jump:


Users browsing this thread: 1 Guest(s)