Jump to content

Question

Recommended Posts

  • 0
Posted
Acum 2 minute, Th3FuK3R Channel a spus:

BAGA ASA!

CMD:setadmin(playerid, params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa fii logat pentru a folosi comenzi.");
   if (PlayerInfo[playerid][pAdmin] >= 6) return SendClientMessage(playerid, COLOR_WHITE,"Nu ai acces");
    if(IsPlayerConnected(playerid))
    {
        if (EstiFondator(playerid))
        {
            new id,adminlevel,sendername[30],giveplayer[30],string[200],escape[200];
            if(sscanf(params, "ui",id,adminlevel)) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFFFFF}Folosire: {FFFFFF}/setadmin <Name/Playerid> <Admin Level>");
            if(PlayerInfo[id][pAdmin] >= 6 && !EstiFondator(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Nu poti modifica admin level-ul unui admin 6+!.");
            if(adminlevel > 4 && !EstiFondator(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Only founders can make admin higher than 4.");
            if(AdmActiv == 0) return SendClientMessage(playerid, COLOR_WHITE, "Nu ai acces la aceasta comanda.");
            if(IsPlayerConnected(id))
            {
                if(id != INVALID_PLAYER_ID)
                {
                    GetPlayerName(id, giveplayer, sizeof(giveplayer));
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    printf("{FF6969}AdmCMD: %s has promoted %s to a level %d admin.", sendername, giveplayer, adminlevel);
                    format(string, sizeof(string), "You've been promoted to level %d admin, by %s.", adminlevel, sendername);
                    SendClientMessage(id, COLOR_LIGHTBLUE, string);
                    format(string, sizeof(string), "You have promoted %s to a level %d admin.", giveplayer,adminlevel);
                    SendClientMessage(playerid, COLOR_WHITE, string);
                    format(string, sizeof(string), "* Admin %s set %s's admin level to %d.", sendername,giveplayer,adminlevel);
                    ABroadCast(COLOR_ADMIN,string,1);
                    HLChat(COLOR_ADMCHAT,string);
                    mysql_real_escape_string(string, escape);
                    PlayerInfo[id][pAdmin] = adminlevel;
                    if(adminlevel == 0)
                    {
                        AdminDuty[id] = 0;
                    }
                    new str[256];
                    mysql_format(SQL,str,sizeof(str),"UPDATE users SET `Admin`='%d' WHERE `name`='%s'",PlayerInfo[id][pAdmin],PlayerInfo[id][pNormalName]);
                    mysql_tquery(SQL,str,"","");
                    mysql_format(SQL,str, sizeof(str), "INSERT INTO staff_logs (`text`) VALUES ('%s')", escape);
                    mysql_tquery(SQL,str,"","");
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}*Acest player nu este conectat.");
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_ERROR, AdminOnly);
        }
    }
    return 1;
}

C:\Users\Gabi\Desktop\GM KOGGED\GM KOGGED\Gamemode\gamemodes\gamemode.pwn(35750) : warning 217: loose indentation
C:\Users\Gabi\Desktop\GM KOGGED\GM KOGGED\Gamemode\gamemodes\gamemode.pwn(35751) : warning 217: loose indentation
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.

  • 0
Posted
Chiar acum, Y0PJustME a spus:

Am incercat asta deja

atunci adauga-ma pe skype, turbyn31

  • 0
Posted
Acum 2 minute, Y0PJustME a spus:

C:\Users\Gabi\Desktop\GM KOGGED\GM KOGGED\Gamemode\gamemodes\gamemode.pwn(35750) : warning 217: loose indentation
C:\Users\Gabi\Desktop\GM KOGGED\GM KOGGED\Gamemode\gamemodes\gamemode.pwn(35751) : warning 217: loose indentation
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.

sunt simple warning-uri nu afecteaza nmc,gata poti da drumu la srv si sa vezi ca merge,lasa si tu +1

  • 0
Posted
Acum 16 minute, Th3FuK3R Channel a spus:

sunt simple warning-uri nu afecteaza nmc,gata poti da drumu la srv si sa vezi ca merge,lasa si tu +1

Acum imi zice simplu "Nu ai acces" :(

  • 0
Posted
Acum 1 minut, Y0PJustME a spus:

Pai si cum sa o scot ?

baga asa..

CMD:setadmin(playerid, params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa fii logat pentru a folosi comenzi.");
  // if (PlayerInfo[playerid][pAdmin] >= 6) return SendClientMessage(playerid, COLOR_WHITE,"Nu ai acces");
    if(IsPlayerConnected(playerid))
    {
        if (EstiFondator(playerid))
        {
            new id,adminlevel,sendername[30],giveplayer[30],string[200],escape[200];
            if(sscanf(params, "ui",id,adminlevel)) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFFFFF}Folosire: {FFFFFF}/setadmin <Name/Playerid> <Admin Level>");
            if(PlayerInfo[id][pAdmin] >= 6 && !EstiFondator(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Nu poti modifica admin level-ul unui admin 6+!.");
            if(adminlevel > 4 && !EstiFondator(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Only founders can make admin higher than 4.");
            if(AdmActiv == 0) return SendClientMessage(playerid, COLOR_WHITE, "Nu ai acces la aceasta comanda.");
            if(IsPlayerConnected(id))
            {
                if(id != INVALID_PLAYER_ID)
                {
                    GetPlayerName(id, giveplayer, sizeof(giveplayer));
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    printf("{FF6969}AdmCMD: %s has promoted %s to a level %d admin.", sendername, giveplayer, adminlevel);
                    format(string, sizeof(string), "You've been promoted to level %d admin, by %s.", adminlevel, sendername);
                    SendClientMessage(id, COLOR_LIGHTBLUE, string);
                    format(string, sizeof(string), "You have promoted %s to a level %d admin.", giveplayer,adminlevel);
                    SendClientMessage(playerid, COLOR_WHITE, string);
                    format(string, sizeof(string), "* Admin %s set %s's admin level to %d.", sendername,giveplayer,adminlevel);
                    ABroadCast(COLOR_ADMIN,string,1);
                    HLChat(COLOR_ADMCHAT,string);
                    mysql_real_escape_string(string, escape);
                    PlayerInfo[id][pAdmin] = adminlevel;
                    if(adminlevel == 0)
                    {
                        AdminDuty[id] = 0;
                    }
                    new str[256];
                    mysql_format(SQL,str,sizeof(str),"UPDATE users SET `Admin`='%d' WHERE `name`='%s'",PlayerInfo[id][pAdmin],PlayerInfo[id][pNormalName]);
                    mysql_tquery(SQL,str,"","");
                    mysql_format(SQL,str, sizeof(str), "INSERT INTO staff_logs (`text`) VALUES ('%s')", escape);
                    mysql_tquery(SQL,str,"","");
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}*Acest player nu este conectat.");
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_ERROR, AdminOnly);
        }
    }
    return 1;
}

  • Like 1
  • 0
Posted
Acum 4 minute, Th3FuK3R Channel a spus:

baga asa..

CMD:setadmin(playerid, params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa fii logat pentru a folosi comenzi.");
  // if (PlayerInfo[playerid][pAdmin] >= 6) return SendClientMessage(playerid, COLOR_WHITE,"Nu ai acces");
    if(IsPlayerConnected(playerid))
    {
        if (EstiFondator(playerid))
        {
            new id,adminlevel,sendername[30],giveplayer[30],string[200],escape[200];
            if(sscanf(params, "ui",id,adminlevel)) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFFFFF}Folosire: {FFFFFF}/setadmin <Name/Playerid> <Admin Level>");
            if(PlayerInfo[id][pAdmin] >= 6 && !EstiFondator(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Nu poti modifica admin level-ul unui admin 6+!.");
            if(adminlevel > 4 && !EstiFondator(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Only founders can make admin higher than 4.");
            if(AdmActiv == 0) return SendClientMessage(playerid, COLOR_WHITE, "Nu ai acces la aceasta comanda.");
            if(IsPlayerConnected(id))
            {
                if(id != INVALID_PLAYER_ID)
                {
                    GetPlayerName(id, giveplayer, sizeof(giveplayer));
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    printf("{FF6969}AdmCMD: %s has promoted %s to a level %d admin.", sendername, giveplayer, adminlevel);
                    format(string, sizeof(string), "You've been promoted to level %d admin, by %s.", adminlevel, sendername);
                    SendClientMessage(id, COLOR_LIGHTBLUE, string);
                    format(string, sizeof(string), "You have promoted %s to a level %d admin.", giveplayer,adminlevel);
                    SendClientMessage(playerid, COLOR_WHITE, string);
                    format(string, sizeof(string), "* Admin %s set %s's admin level to %d.", sendername,giveplayer,adminlevel);
                    ABroadCast(COLOR_ADMIN,string,1);
                    HLChat(COLOR_ADMCHAT,string);
                    mysql_real_escape_string(string, escape);
                    PlayerInfo[id][pAdmin] = adminlevel;
                    if(adminlevel == 0)
                    {
                        AdminDuty[id] = 0;
                    }
                    new str[256];
                    mysql_format(SQL,str,sizeof(str),"UPDATE users SET `Admin`='%d' WHERE `name`='%s'",PlayerInfo[id][pAdmin],PlayerInfo[id][pNormalName]);
                    mysql_tquery(SQL,str,"","");
                    mysql_format(SQL,str, sizeof(str), "INSERT INTO staff_logs (`text`) VALUES ('%s')", escape);
                    mysql_tquery(SQL,str,"","");
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}*Acest player nu este conectat.");
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_ERROR, AdminOnly);
        }
    }
    return 1;
}

Acum imi zice "You are not an admin/helper".

  • 0
Posted
Acum 3 minute, Th3FuK3R Channel a spus:

Incearca asa..

CMD:setadmin(playerid, params[])
{
    if(IsPlayerConnected(playerid))
    {
        if (PlayerInfo[playerid][pAdmin] >= 6)
        {
            new id,adminlevel,sendername[30],giveplayer[30],string[200];
            if(sscanf(params, "ui",id,adminlevel)) return SendClientMessage(playerid, COLOR_GREY, "Sintaxa: {FFFFFF}/setadmin <playerid/name> <Admin Level>");
            if(IsPlayerConnected(id))
            {
                if(id != INVALID_PLAYER_ID)
                {
                    GetPlayerName(id, giveplayer, sizeof(giveplayer));
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    PlayerInfo[id][pAdmin] = adminlevel;
                    PlayerInfo[id][pChar] = 217;
                    SetPlayerSkinEx(id, 217);
                    printf("AdmCmd: %s has promoted %s to a level %d admin.", sendername, giveplayer, adminlevel);
                    format(string, sizeof(string), "Ai fost promovat la admin %d de %s,", adminlevel, sendername);
                    SendClientMessage(id, COLOR_LIGHTBLUE, string);
                    format(string, sizeof(string), "L-ai promovat pe %s la nivel %d admin.", giveplayer,adminlevel);
                    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                    format(string, sizeof(string), "AdmCmd: Admin %s i-a setat lui %s admin %d.", sendername,giveplayer,adminlevel);
                    SendAdminMessage(COLOR_LOGS,string,4);
                     new wakaname[25];
                    GetPlayerName(id,wakaname,25);
                    new str[256];
                    format(str,256,"UPDATE users SET `Admin`='%d',`CChar`='%d' WHERE `ID`='%d'",PlayerInfo[id][pAdmin],PlayerInfo[id][pChar],PlayerInfo[id][pSQLID]);
                    mysql_query(SQL,str);
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "Acel player nu este conectat.");
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_LGREEN, "Nu ai acces la aceasta comanda!");
        }
    }
    return 1;
}
 

C:\Users\Gabi\Desktop\GM KOGGED\serversamp\gamemodes\bigzone.pwn(35762) : error 017: undefined symbol "pChar"
C:\Users\Gabi\Desktop\GM KOGGED\serversamp\gamemodes\bigzone.pwn(35763) : error 017: undefined symbol "SetPlayerSkinEx"
C:\Users\Gabi\Desktop\GM KOGGED\serversamp\gamemodes\bigzone.pwn(35770) : error 017: undefined symbol "SendAdminMessage"
C:\Users\Gabi\Desktop\GM KOGGED\serversamp\gamemodes\bigzone.pwn(35771) : warning 217: loose indentation
C:\Users\Gabi\Desktop\GM KOGGED\serversamp\gamemodes\bigzone.pwn(35772) : warning 217: loose indentation
C:\Users\Gabi\Desktop\GM KOGGED\serversamp\gamemodes\bigzone.pwn(35774) : error 017: undefined symbol "pChar"
C:\Users\Gabi\Desktop\GM KOGGED\serversamp\gamemodes\bigzone.pwn(35785) : error 017: undefined symbol "COLOR_LGREEN"
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
 

 

Ai skype ?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.