Help me, IMPORTANT plz read
#1

HELP ME

please help me in /report zcmd, i want to switch it to strcmpor even dcmd plz

thanks for ready
PasteBin For The report zmcd
regards MBX97
Reply
#2

No you don't want to Strcmp sucks.
Reply
#3

i need it please, write it to me in pastebin or
pawn Код:
HERE
Reply
#4

pawn Код:
dcmd_report(playerid, params[])
{
    new pName[MAX_PLAYER_NAME], aName[MAX_PLAYER_NAME], str[128], reason, iD;
    if (sscanf(params, "dz", iD, reason)) return SendClientMessage(playerid, 0xAA3333AA, "Usage: /report [id] [reason]");
    if (iD == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xAA3333AA, "Invalid ID.");
    if (playerid == iD) return SendClientMessage(playerid, 0xAA3333AA, "You can't report yourself.");
    GetPlayerName(playerid, pName, sizeof(pName));
    GetPlayerName(iD, aName, sizeof(aName));
    for (new i = 0; i < MAX_PLAYERS; i++)
    {
        if (IsPlayerConnected(i))
        {
            new zName[MAX_PLAYER_NAME], pFile[256];
            GetPlayerName(i, zName, sizeof(zName));
            format(pFile, sizeof(pFile), "Users\%s.ini", zName);
            if (IsPlayerAdmin(i) || dini_Int(pFile, "AdminLevel") >= 1)
            {
                format(str, sizeof(str), "%s(%d) has reported %s(%d) for: %s", pName, playerid, aName, iD, reason);
                SendClientMessage(i, 0xFFFFFFFF, str);
            }
        }
    }
    return 1;
}
Not tested.
Reply
#5

no strcmp , gimme strcmp plz
Reply
#6

It's simple. Just make a message that displays the ID and message they typed and have it send to admins only.
Reply
#7

thats not my problem, my problem is that i wantit without sscanf and by strcmp, so please just do it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)