[Addon] Id system
#5

pawn Код:
if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)
    {
        if ((noooc) && PlayerInfo[playerid][pAdmin] < 1)
        {
            SendClientMessage(playerid, COLOR_GRAD2, "  the ooc chanel has been disabled by admin");
            return 1;
        }
        if(Mute[playerid] == 1)
        {
            SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot speak, you have been silenced");
            return 0;
        }
        GetPlayerName(playerid, sendername, sizeof(sendername));
        new length = strlen(cmdtext);
        while ((idx < length) && (cmdtext[idx] <= ' '))
        {
            idx++;
        }
        new offset = idx;
        new result[64];
        while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
        {
            result[idx - offset] = cmdtext[idx];
            idx++;
        }
        result[idx - offset] = EOS;
        if(!strlen(result))
        {
            SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/o)oc [ooc chat]");
            return 1;
        }
        format(string, sizeof(string), "[OOC] %s:[%d] %s " , sendername, playerid, result);
        OOCOff(TEAM_ORANGE_COLOR,string);
        printf("%s", string);
        return 1;
    }
you only have to add [%d] in the line and , playerid on the right place afther the " and before the );
Reply


Messages In This Thread
[Addon] Id system - by radi - 20.08.2009, 16:49
Re: [Addon] Id system - by DauerDicht - 20.08.2009, 16:51
Re: [Addon] Id system - by radi - 20.08.2009, 16:53
Re: [Addon] Id system - by DauerDicht - 20.08.2009, 16:55
Re: [Addon] Id system - by radi - 20.08.2009, 17:08
Re: [Addon] Id system - by DauerDicht - 20.08.2009, 17:10
Re: [Addon] Id system - by radi - 20.08.2009, 17:14
Re: [Addon] Id system - by Frikandel - 20.08.2009, 17:27
Re: [Addon] Id system - by nuriel8833 - 20.08.2009, 17:31
Re: [Addon] Id system - by saiberfun - 20.08.2009, 17:35

Forum Jump:


Users browsing this thread: 1 Guest(s)