Jump to content

SaLiErY

Membru
  • Posts

    126
  • Joined

  • Last visited

Posts posted by SaLiErY

  1. ms mult merge nu mai ia ban dar mai e o acuma e o alba problema cand vreu sa ma teleportez la ei ma baga sub pamant la cordonatele 0 0 0 am baga aia cu

    if(IsPlayerNPC(playerid))

    {

        return 1;

    }

    la onplayerconnect la onplayerspawn si tot nu merge

  2. Salut Am facut si eu npc merg intra pe srv  tot dar in consola imi arata ca is banati si char sunt banati motiv speed hack dar eu iam facut pe jos fara masina  imi puteti spune dc  iau ban npc (folosesc junkbuster anti chear)

  3. Dupa Gm Ravens Am Incercat Sa Fac si eu un Train Sistem la Arme am Reusit Merge Bine Pana La Un Anume Punc

    si adica sciptu-l urmator

    if(IsPlayerInRangeOfPoint(playerid,5,300.5705,-134.0464,1004.0625))
    	{
    		if(PlayerInfo[playerid][pAmmuTrainTime] == 0)
    		{
                        new weapon[] = "Desert Deagle\nSMG MP5\nAK-47\nM4"
    		    ShowPlayerDialog(playerid,0,2,"What U Need Train",weapon,"Train","Cancel");
    		    return 1;
    		}
    		else
    		{
    		    format(string, sizeof(string), "ERROR: You must wait %d Seconds before you can get a training",PlayerInfo[playerid][pAmmuTrainTime]);
    		    SendClientMessage(playerid, COLOR_GREY, string);
    		    return 1;
    		}
    	}
    la acest scipt imi da erore la linia 4667 eroarea find (4667) : error 001: expected token: ";", but found "-identifier-" iar linia 4667 e
    ShowPlayerDialog(playerid,0,2,"What U Need Train",weapon,"Train","Cancel");

    va rog mult ajutatima

  4. eu te pot ajuta cu kill cop

    if(PlayerInfo[killerid][pMember] == 6 || PlayerInfo[killerid][pLeader] == 6)
    	{
    		if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
    		{
                new killer[MAX_PLAYER_NAME];
                GetPlayerName(killerid, killer, sizeof(killer));
                format(string,128,"* %s Yakuza has killed %s Cop and recivied 7000$.",killer,name);
                SendBZMessage(COLOR_1GREEN, string);
                format(string,128,"* %s Cop was pwned by %s Yakuza.",name,killer);
                SendCZMessage(COLOR_1BLUE, string);
    	        GivePlayerMoney(killerid, 7000);
    	        return 1;
            }
    	}

  5. am verificat sciptu numi da eroare/warning nimic din jco ies cu  wanted maxim (adica 6) cand intru in joc am wanted 0 am verificat peste tot la /stats /wanted peste tot unde arata wanted am incercat sa dau /surrender /arest si zice ca am wanted 0

  6. modifici din comanda /aod :

      if(strcmp(cmd, "/aod", true) == 0)
    	{
    		if (PlayerInfo[playerid][pAdmin] >= 1)
    		{
    		    if(AdminDuty[playerid] == 1)
    		    {
                           GetPlayerName(playerid, sendername, sizeof(sendername));
    			           format(string, sizeof(string), "[Admin Info] %s [ID:%d] is no longer on duty as an admin.", sendername,playerid);
                           SendClientMessageToAll(COLOR_DBLUE,string);
       				       AdminDuty[playerid] = 0;
    				       SetPlayerHealth(playerid,100);
    				       SetPlayerArmour(playerid,0);
    				       SetPlayerToTeamColor(playerid);
    			  }
    
    		    else
    		    {
                    GetPlayerName(playerid, sendername, sizeof(sendername));
    		    	format(string, sizeof(string), "[Admin Info] %s [ID:%d] is now on duty as an admin.Please /w him if you need help.",sendername,playerid);
    				SendClientMessageToAll(0xFAAFBEFF,string);
    				AdminDuty[playerid] = 1;
    				SetPlayerHealth(playerid,99999);
    				SetPlayerArmour(playerid,99999);
    				SetPlayerColor(playerid,0xFAAFBEFF);
    				for(new i = 0; i < MAX_PLAYERS; i ++)
    				       {
    				         if(IsPlayerConnected(i))
    				        {
    					      SetPlayerMarkerForPlayer( i,playerid,0xFAAFBEFF );
    					    }
    				       }
    		    }
    		}
    		else
    		{
    			SendClientMessage(playerid,COLOR_GREY,"Your not an admin !");
    		}
    		return 1;
    	}

    prate fara suparare nu e ce cauta el..el ar vrea ceva care sati seteze numele cu Scipteru[AOD] si cand dai dinou aod sa iesi din sati apare numele dor Scipteru

  7. salut care imi poate modificat si mie comanda de /sellmats ca sa ceara si bani pe de ex  /sellmats (id) (cate materiale) (suma) iar la cel care le vand sa trebuiasca sa dea /accest mats si sa ii scata suma de bani pe care se cere la /sellmats

    if(strcmp(cmd,"/sellmats",true)==0)

    {

        if(IsPlayerConnected(playerid))

        {

            if(PlayerInfo[playerid][pJob] != 9)

            {

                SendClientMessage(playerid, COLOR_GREY, "  You're not the materials dealer ! ");

                return 1;

            }

            tmp = strtok(cmdtext, idx);

            if(!strlen(tmp))

            {

                SendClientMessage(playerid, COLOR_WHITE, "HINT: /sellmats [playerid/PartOfName] [ammount]");

                return 1;

            }

            giveplayerid = ReturnUser(tmp);

            if(IsPlayerConnected(giveplayerid))

            {

                if(giveplayerid != INVALID_PLAYER_ID)

                {

    if(ProxDetectorS(5.0, playerid, giveplayerid))

    {

        tmp = strtok(cmdtext, idx);

        if(!strlen(tmp))

        {

            SendClientMessage(playerid, COLOR_WHITE, "HINT: /sellmats [playerid/PartOfName] [ammount]");

                return 1;

        }

        new ammount = strval(tmp);

        if(ammount < 1) { SendClientMessage(playerid, COLOR_GREY, "  Wrong ammount ! "); return 1; }

        if(ammount > PlayerInfo[playerid][pMats]) { SendClientMessage(playerid, COLOR_GREY, "  You don't have so many materials to sell !"); return 1; }

        PlayerInfo[playerid][pMats] -= ammount;

        PlayerInfo[giveplayerid][pMats] += ammount;

    GetPlayerName(playerid, sendername, sizeof(sendername));

    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

    format(string, sizeof(string), "* %s gives a package of materials to %s", sendername, giveplayer);

    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

    }

    else

    {

        SendClientMessage(playerid, COLOR_GREY, "  Player is not near you ! ");

        return 1;

    }

                }

            }

        }

        return 1;

    }

    comanda este aici sper sa ma puteti ajuta multumesc mult

  8. 1. trebe sa pun tu din property cordonatele bune ca sunt stricate

    2. unde is pGunLic trebe sa adaugi si

    pBuletin,

        la playerinfo[playerid] trebe sa mai adaugi si

    PlayerInfo[playerid][pBuletin] = 0

        dupa

    format(var, 32, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var);

    adaugi

       

    format(var, 32, "Buletin=%d\n",PlayerInfo[playerid][pBuletin]);fwrite(hFile, var);

        dupa

    if( strcmp( key , "GunLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGunLic] = strval( val ); }

        adaugi

    if( strcmp( key , "Buletin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBuletin] = strval( val ); }

        la atakelicense trebe sa mai adaugi

    else if(strcmp(x_nr,"buletin",true) == 0)

    {

                tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

        SendClientMessage(playerid, COLOR_WHITE, "USAGE: /atl buletinlicense [playerid/PartOfName]");

        return 1;

    }

    giveplayerid = ReturnUser(tmp);

    if(IsPlayerConnected(giveplayerid))

    {

        if(giveplayerid != INVALID_PLAYER_ID)

        {

            GetPlayerName(playerid, sendername, sizeof(sendername));

            GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

                format(string, sizeof(string), "* I-ai luat lui %s Buletin.",giveplayer);

            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

            format(string, sizeof(string), "* Adminul %s ti-a luat Licenta de Buletin.",sendername);

            SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);

            PlayerInfo[giveplayerid][pBuletin] = 0;

            GetPlayerName(playerid, giveplayer, sizeof(giveplayer));

        GetPlayerName(playerid, sendername, sizeof(sendername));

        format(string, 256, "AdmWarning: Admin %s has take License Buletin to %s.", sendername,giveplayer);

        ABroadCast(COLOR_YELLOW,string,1);

            return 1;

    }

    }

    else

    {

        SendClientMessage(playerid, COLOR_GREY, "  Acel player este Offline!");

        return 1;

    }

    }

            }

            else

            {

                SendClientMessage(playerid, COLOR_GREY, "  Nu esti autorizat pentru a folosi aceasta comanda!");

                return 1;

            }

        }

        return 1;

    }

    la agivelicense trebe adaugat

    else if(strcmp(x_nr,"buletin",true) == 0)

    {

                tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

        SendClientMessage(playerid, COLOR_WHITE, "USAGE: /agivelicense buletinlicense [playerid/PartOfName]");

        return 1;

    }

    giveplayerid = ReturnUser(tmp);

    if(IsPlayerConnected(giveplayerid))

    {

        if(giveplayerid != INVALID_PLAYER_ID)

        {

            GetPlayerName(playerid, sendername, sizeof(sendername));

            GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

                format(string, sizeof(string), "* You've given a Buletin License to %s.",giveplayer);

            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

            format(string, sizeof(string), "* Admin %s has given you a Buletin License.",sendername);

            SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);

            PlayerInfo[giveplayerid][pBuletin] = 1;

            GetPlayerName(playerid, giveplayer, sizeof(giveplayer));

        GetPlayerName(playerid, sendername, sizeof(sendername));

        format(string, 256, "AdmWarning: Admin %s has give License Buletin to %s.", sendername,giveplayer);

        ABroadCast(COLOR_YELLOW,string,1);

            return 1;

    }

    }

    else

    {

        SendClientMessage(playerid, COLOR_GREY, "  That player is Offline!");

        return 1;

    }

    }

            }

            else

            {

                SendClientMessage(playerid, COLOR_GREY, "  You are not authorised to use this command!");

                return 1;

            }

        }

        return 1;

    }

    dupa trebe sa faci comanda sa cumperi buletinu ( to dau eu ) comanda e facuta sa iei buletinu din Primarie

    if(strcmp(cmd, "/buybuletin", true) == 0)

    {

    if(IsPlayerConnected(playerid))

    {

    if(PlayerToPoint(3.0,playerid,362.4364,173.2401,1008.3828))

        {

      if(PlayerInfo[playerid][pBuletin] == 0)

        {

    if(PlayerInfo[playerid][pCash] >= 1000)

    {

    if(PlayerInfo[playerid]


    >= 14)

    {

    SendClientMessage(playerid, COLOR_WHITE, "Nu ai 14 ani sau mai mult!");

    }

        SendClientMessage(playerid, COLOR_LIGHTRED, "Acum ai un BULETIN!");

        GivePlayerMoney(playerid, -1000);

    PlayerInfo[playerid][pBuletin] = 1;

    GameTextForPlayer(playerid, "~r~-1000", 5000, 1);

    }

    else

    {

    SendClientMessage(playerid, COLOR_GREY,"  Nu ai $1000 !");

    }

    }

    else

    {

    SendClientMessage(playerid, COLOR_GREY,"  Ai deja un BULETIN !");

    }

    }

    }

    }

    la givelicense trebe inca

    else if(strcmp(x_nr,"buletin",true) == 0)

    {

                tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

        SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givelicense buletinlicense [playerid/PartOfName]");

        return 1;

    }

    giveplayerid = ReturnUser(tmp);

    if(IsPlayerConnected(giveplayerid))

    {

        if(giveplayerid != INVALID_PLAYER_ID)

        {

            GetPlayerName(playerid, sendername, sizeof(sendername));

            GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

                format(string, sizeof(string), "* You've given a Buletin License to %s.",giveplayer);

            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

            format(string, sizeof(string), "* Instructor %s has given you a Buletin License.",sendername);

            SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);

            PlayerInfo[giveplayerid][pBuletin] = 1;

            return 1;

    }

    }

    else

    {

        SendClientMessage(playerid, COLOR_GREY, "  That player is Offline !");

        return 1;

    }

    }

            }

    la take trebe adaugat

    else if(strcmp(x_nr,"buletin",true) == 0)

    {

        tmp = strtok(cmdtext, idx);

    if(!strlen(tmp)) {

    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /take buletinlicense [playerid/PartOfName]");

    return 1;

    }

    giveplayerid = ReturnUser(tmp);

    if(IsPlayerConnected(giveplayerid))

    {

        if(giveplayerid != INVALID_PLAYER_ID)

        {

            if (ProxDetectorS(8.0, playerid, giveplayerid))

    {

            format(string, sizeof(string), "* You have taken away %s's Buletin License.", giveplayer);

            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

            format(string, sizeof(string), "* Officer %s has taken away your Buletin License.", sendername);

            SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);

            PlayerInfo[giveplayerid][pBuletin] = 0;

            }

            else

    {

        SendClientMessage(playerid, COLOR_GREY, "  That player is not near you !");

        return 1;

    }

        }

    }

    else

    {

        SendClientMessage(playerid, COLOR_GREY, "  That player is Offline !");

        return 1;

    }

    }

    else

    {

    SendClientMessage(playerid, COLOR_GREY, "  Unknown Take name !");

    return 1;

    }

            }

    comanda sa vezi buletinu tu

    if(strcmp(cmd,"/buletin",true)==0)

        {

            if(IsPlayerConnected(playerid))

        {

    if(PlayerInfo[playerid][pBuletin] == 1)

    {

    GetPlayerName(playerid, sendername, sizeof(sendername));

    new otext[20];

    if(PlayerInfo[playerid][pOrigin] == 1) { otext = "SF"; }

    else if(PlayerInfo[playerid][pOrigin] == 2) { otext = "LS"; }

    new atext[20];

    if(PlayerInfo[playerid][pSex] == 1) { atext = "Male"; }

    else if(PlayerInfo[playerid][pSex] == 2) { atext = "Female"; }

            SendClientMessage(playerid, COLOR_LIGHTRED, "Your Buletin");

            format(string, sizeof(string), "~b~RO~y~MA~r~NIA~n~~w~Name: %s~n~~w~Age: %d~n~~w~Origin: %s~n~~w~Sex: %s.", sendername,PlayerInfo[playerid]


    ,otext,atext);

    comanda sa areti buletinu la careva

    if(strcmp(cmd,"/showbuletin",true)==0)

        {

            if(IsPlayerConnected(playerid))

        {

            tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /showbuletin [playerid/PartOfName]");

    return 1;

    }

    giveplayerid = ReturnUser(tmp);

    if(IsPlayerConnected(giveplayerid))

    {

    if(giveplayerid != INVALID_PLAYER_ID)

    {

        if (ProxDetectorS(8.0, playerid, giveplayerid))

    {

    if(PlayerInfo[playerid][pBuletin] < 1)

    {

    SendClientMessage(playerid, COLOR_WHITE, "You don't have a buletin to show!");

    }

        if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot Show your Buletin to yourself, use /showbuletin!"); return 1; }

    GetPlayerName(playerid, sendername, sizeof(sendername));

    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

    new otext[20];

    if(PlayerInfo[playerid][pOrigin] == 1) { otext = "SF"; }

    else if(PlayerInfo[playerid][pOrigin] == 2) { otext = "LS"; }

    new atext[20];

    if(PlayerInfo[playerid][pSex] == 1) { atext = "Male"; }

    else if(PlayerInfo[playerid][pSex] == 2) { atext = "Female"; }

            SendClientMessage(giveplayerid, COLOR_LIGHTRED, "A Buletin");

            format(string, sizeof(string), "~r~RO~y~MAN~b~IA~n~~w~Name: %s~n~~w~Age: %d~n~~w~Origin: %s~n~~w~Sex: %s.", sendername,PlayerInfo[playerid]


    ,otext,atext);

    la    else if (PlayerToPoint are trebui adaugata

    else if (PlayerToPoint(3, i,362.4364,173.2401,1008.3828))

    {

        GameTextForPlayer(i, "~w~Type: ~r~~h~/buybuletin ~w~ to buy a ~b~Buletin ~n~~w~Cost: ~g~~h~$1000", 3000, 5);

        }

    iar daca vrei sa apara I de unde iti ei buletinu

    AddStaticPickup(1239, 23, 362.4364,173.2401,1008.3828);//Buletin

    GameTextForPlayer(giveplayerid, string, 5000, 1);

    format(string, sizeof(string), "* %s has shown his Buletin to you.", sendername);

    SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);

    format(string, sizeof(string), "* You have shown your Buletin to %s.", giveplayer);

    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

    }

    else

    {

        SendClientMessage(playerid, COLOR_GREY, "  That player is not near you !");

        return 1;

    }

    }

    }

            else

            {

                SendClientMessage(playerid, COLOR_GREY, "  That player is Offline !");

                return 1;

            }

    }

        return 1;

    }

    GameTextForPlayer(playerid, string, 5000, 1);

    }

    }

        return 1;

    }

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