Unban i ban log help fast

Započeo Jiky
14. Apr. 2019. Zaključano
742
pregleda
6
postova
Jiky
4
Shot Caller
14. Apr. 2019.
Problem(error/warning): /unban
Dio skripte:
CMD:ban(playerid, params[])
{
    new id, reason, string, banned;
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_WHITE,": {FF0000}SAMO ADMIN!");
    if(sscanf(params, "uz", id, reason)) return SendClientMessage(playerid, -1, ": {00B7FF}/ban [IME/ID] ");
    GetPlayerName(id, banned, sizeof(banned));
    format(string, sizeof(string), "{FFFFFF}: %s {00B7FF}je banovan od strane {FF0000}%s. {FFFFFF}razlog: %s", banned, GetName(playerid), reason);
    SendClientMessageToAll(COLOR_WHITE, string);
    BanEx(id, reason);
    return 1;
}

stock GetName(playerid)
{
    new
        pName;

    GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
    return pName;
}

Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): //
Slika/video ingame problema(obavezno ako je ingame problem): //

Zelim napraviti ban log + unban cmd , neko help? , koristim zcmd,sscanf2 i a_samp
Mister Naithan
5
Kingpin
14. Apr. 2019.
CMD:unban(playerid, params[])
{
    if(PlayerInfo >= 2)
    {
        new string;
        if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /unban ");

        if( PlayerInfo >= 1 )
        {
            PlayerInfo = 0;
            print("OnPlayerOfflineLogin: Variables saved properly");
            format(string, 128, " %s (IP:%s) was unbanned by %s.", params, PlayerInfo, GetPlayerNameEx(playerid));
            SendStaffMessage(COLOR_RED,string);
            new year, month,day;
            getdate(year, month, day);
            new playa;
            GetPlayerName(playerid, playa, MAX_PLAYER_NAME);
            format(string, sizeof(string), " %s : was unbanned by %s.", params, playa);
            SendStaffMessage(COLOR_RED, string);
        }
        else
        {
            SendClientMessage( playerid, COLOR_WHITE, "Not a banned account or no such account was found!" );
        }
    }
    return 1;
}


Credits : https://forum.sa-mp.com/showthread.php?t=349569
Jiky
4
Shot Caller
14. Apr. 2019.
Mister Naithan wrote on April 14, 2019, 7:18 pm:
CMD:unban(playerid, params[])
{
    if(PlayerInfo >= 2)
    {
        new string;
        if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /unban ");

        if( PlayerInfo >= 1 )
        {
            PlayerInfo = 0;
            print("OnPlayerOfflineLogin: Variables saved properly");
            format(string, 128, " %s (IP:%s) was unbanned by %s.", params, PlayerInfo, GetPlayerNameEx(playerid));
            SendStaffMessage(COLOR_RED,string);
            new year, month,day;
            getdate(year, month, day);
            new playa;
            GetPlayerName(playerid, playa, MAX_PLAYER_NAME);
            format(string, sizeof(string), " %s : was unbanned by %s.", params, playa);
            SendStaffMessage(COLOR_RED, string);
        }
        else
        {
            SendClientMessage( playerid, COLOR_WHITE, "Not a banned account or no such account was found!" );
        }
    }
    return 1;
}


Credits : https://forum.sa-mp.com/showthread.php?t=349569

nemam ja admin system , mozes napraviti za rcon admin , probo sam i nece
Mister Naithan
5
Kingpin
14. Apr. 2019.
Jiky wrote on April 14, 2019, 8:55 pm:
nemam ja admin system , mozes napraviti za rcon admin , probo sam i nece


Ja nisam skripter , ja se bavim Fixanjem . . .

@Vasic ako je rad , eto  😎




Ako ti sve budu drugi radili , nikad nauciti neces  😎
FunnyGamingDay - FGD
6
OG Legend
14. Apr. 2019.
Sad pisem preko fona, ako niko ne bude dao cmd do sutra, ja cu ti poslat.

Former SA:MP server developer

Muma Rascall
6
Forum Don
14. Apr. 2019.
Jiky wrote on April 14, 2019, 8:55 pm:
nemam ja admin system , mozes napraviti za rcon admin , probo sam i nece
if(PlayerInfo >= 2) > if(IsPlayerAdmin(playerid))

i sve zavisi kako ti čuvaš banove, tu resetuje pBan u igračevom fajlu i to resetuje onom ko je kucao...

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha