Jump to content

AlexxAdv

Membru
  • Posts

    544
  • Joined

  • Last visited

  • Days Won

    17

Posts posted by AlexxAdv

  1. CMD:pa(playerid,params[])
    {
        if(PlayerChatActiv == 1)
        {
        	if(gettime() < GetPVarInt(playerid, "padeelay")) return va_SendClientMessage(playerid, -1, "Mai de asteptat %d secunde.", gettime() - GetPVarInt(playerid, "padeelay"));
            if (PlayerInfo[playerid][pAdmin] > 0 || PlayerInfo[playerid][pAdmin] <= 0 || PlayerInfo[playerid][pLeader] >= 1)
            {
                new string[250],result[250],sendername[25];
                if(sscanf(params, "s[250]",result)) return SendClientMessage(playerid, COLOR_WHITE, "{FF9900}Scrie: {33CCFF}/pa <Message>");
                   GetPlayerName(playerid, sendername, sizeof(sendername));
                {
                       new estegrad[MAX_STRING];
                       if(PlayerInfo[playerid][pAdmin] <= 0) estegrad = "Civil";
                       if(PlayerInfo[playerid][pLeader] >= 1) estegrad = "Leader";
                    if(PlayerInfo[playerid][pAdmin] == 1) estegrad = "Admin";
                    if(PlayerInfo[playerid][pAdmin] == 2) estegrad = "Admin";
                    if(PlayerInfo[playerid][pAdmin] == 3) estegrad = "Admin";
                    if(PlayerInfo[playerid][pAdmin] == 4) estegrad = "Admin";
                    if(PlayerInfo[playerid][pAdmin] == 5) estegrad = "Admin";
                     if(PlayerInfo[playerid][pAdmin] == 6) estegrad = "{FFFF00}Supervizor";
                     if(PlayerInfo[playerid][pAdmin] == 7) estegrad = "{FF0000}Fondator";
                     if(PlayerInfo[playerid][pAdmin] == ? estegrad = "{33FFFF}Fondator{FFFFFF} & {990033}Scripter{FF0000}";
                    format(string, sizeof(string), "[/pa]: %s %s: %s",estegrad , sendername, result);
                }
                APlayerCast(COLOR_BLUE, string,1);
                SetPVarInt(playerid, "padeelay", gettime() + 5);
            }
    
        }
        else return SendClientMessage(playerid, COLOR_WHITE, "Aceasta comanda a fost dezactivata temporar de catre un administrator.");
        return 1;
    }

    Sa ai si #include <YSI\y_va> altfel te poti folosi si de un format string.

  2. On 7/5/2018 at 3:57 PM, aKrapovici said:

    Trebiue sa aveti GTA-ul clear si dupa sa instalati sa-mp-ul in folderul unde aveti gta-ul si sigur va merge, insa recomand sa evitati sa-mp-ul deoarece in unele cazuri creaza dependenta.

    nu cred ca mai creeaza dependenta la cum a ajuns samp-ul :))

  3. Deoarece linia asta     if(!EstiFondator(playerid)) return SCM(playerid, COLOR_ERROR, AdminOnly); verifica daca ai numele din acel public.

    Cauti public-ul si iti pui numele tau acolo pe care il folosesti pe server sau stergi acea linie si pui verificare daca are admin mai mare decat 6 sau cat doresti tu.

×
×
  • 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.