Jump to content
  • 0

Problema /respawnallcars (/rac)


al3xqq

Question

Am filterscript-ul de masini personale Im_Bank. Intrebarea mea este cum pot sa introduc masinile personale care se creeaza cu filter-ul

in comanda /rac ?

Si mai am una, cum sa fac comanda /jetpack ? Adica ce e neinregula cu aceasta ?

[pawn]if(strcmp(cmd, "/jetpack", true) == 0)

{

    if(PlayerInfo[playerid][pAdmin] >= 3)

    {

        if(IsPlayerConnected(playerid))

        {

                SetPlayerSpecialAction(playerid,2);

SendClientMessage(playerid, COLOR_GREEN, "%s a folosit comanda /jetpack !");

}

else

{

    SendClientMessage(playerid, COLOR_RED, "Nu esti autorizat sa folosesti aceasta comanda");

}

}

}[/pawn]

A fost usor sa te iubim ...,

      Acum e imposibil sa te uitam !

Link to comment
Share on other sites

14 answers to this question

Recommended Posts

Incearca sa inlocuiesti cu [glow=red,2,300]SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);[/glow] sau daca nu spunene exact ce iti zice cand dai /jetpack? nu til dau sa ce.

Iar /rac sa mearga la toata masinile selecteaza de la ce idcar pana la ce idcar de exemplu de la 1 pana la 50 sau cum ai tu. (/oldcar in game or /dll)

Link to comment
Share on other sites

	if(strcmp(cmd, "/jetpack", true) == 0)
	{
		if(IsPlayerConnected(playerid))
		{
			if(PlayerInfo[playerid][pAdmin] >= 3)
			{
				SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);
				SendClientMessage(playerid, COLOR_GREEN, "%s a folosit comanda /jetpack !");
			}
			else
			{
			    SendClientMessage(playerid, COLOR_RED, "Nu esti autorizat sa folosesti aceasta comanda");
			}
		}
	}

i0418xcttya707ofg.jpg

Link to comment
Share on other sites

Am urmatoare eroare la comanda asta:

In loc sa`mi dea bani scrie de multe ori Ai primit bani de la Administratori !

[pawn]if(strcmp(cmd, "/moneyforall", true) == 0)

{

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

tmp = strtok(cmdtext, idx);

if(PlayerInfo[playerid][pAdmin] >= 1338)

{

if(!strlen(tmp))

{

SendClientMessage(playerid, COLOR_GREY, "Usage: /moneyforall [amount]");

return 1;

}

new money;

money = strval(tmp);

    if(IsPlayerConnected(playerid))

{

    if ( money >= 99999999)

    {

    SendClientMessage(playerid, COLOR_RED, "ERROR : Too much moneys!");

    return 1;

    }

    for(new i=0; i < MAX_PLAYERS; i++)

    {

PlayerInfo[pCash] += money;

SendClientMessageToAll(COLOR_LIGHTGREEN, "Ai primit bani de la Administratori.");

}

}

else

{

    SendClientMessage(playerid, COLOR_RED, "You Must be logged in to use this command!");

}

}

else

{

    SendClientMessage(playerid, COLOR_ORANGE, "DENIED: {FFFFFF}Nu ai acces sa folosesti aceasta comanda.");

}

return 1;

}[/pawn]

A fost usor sa te iubim ...,

      Acum e imposibil sa te uitam !

Link to comment
Share on other sites

A mers !

Acum am alta problema ... Am un fs de fast event (reaction test) care daca castigi iti da banii si ti i`a inapoi dupa aceea deoarece comanda GivePlayerMoney este blocata de JunkBuster. Am incercat sa o inlocuiesc dar imi da undentified symbol. Ce e de facut ?

A fost usor sa te iubim ...,

      Acum e imposibil sa te uitam !

Link to comment
Share on other sites

I`am dat define cum a zis gireada dar tot la fel face ...

Si sincer nu stiu unde sa pun niste chestii din fs in gm ... de ex de la filterscriptinit pun la ongameinit ? si de la onfilterscriptexit unde pun ? :(

A fost usor sa te iubim ...,

      Acum e imposibil sa te uitam !

Link to comment
Share on other sites

Poftim aici /jetpack

[pawn]if(strcmp(cmd, "/jetpack", true) == 0)

{

        if(IsPlayerConnected(playerid))

    {

if (PlayerInfo[playerid][pAdmin] >= 1338)

{

            SendClientMessage(playerid, 0xFF7F50AA, "{33FF33}You have jetpack now!");

            SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);

            return 1;

            }

            else

            {

            SendClientMessage(playerid,0xFF0000AA,"You can't use this command.");

            return 1;

            }

        }

    }[/pawn]

Cel din urma va fi cel dintâi.

Link to comment
Share on other sites

Si pentru bani:

[pawn]if(strcmp(cmd, "/givemoneyall", true) == 0)

    {

    if (PlayerInfo[playerid][pAdmin] >= 1338)

    {

      tmp = strtok(cmdtext, idx);

if(!strlen(tmp))

{

SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: /givemoneyall (money)");

return 1;

}

new number;

number = strval(tmp);

  for(new i = 0; i <= MAX_PLAYERS; i++)

      {

        if(IsPlayerConnected(i))

        {

          new playercash = PlayerInfo[pAccount];

          PlayerInfo[pAccount] = playercash + number;

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

          format(string, sizeof(string), "Administrator %s give %d$ to all players who are online", sendername, number);

          SendClientMessage(i,COLOR_LIGHTBLUE,string);

        }

      }

      return 1;

    }

    else

    {

        SendClientMessage(playerid, COLOR_GRAD1, "Nu esti autorizat sa folosesti aceasta comanda !");

    }

    }[/pawn]

Cel din urma va fi cel dintâi.

Link to comment
Share on other sites

Esti marf? frate !

Cum pot face cand cuiva i se execut comanda GivePlayerMoney sa scrie intr-un log. Motiv ? Pentru ca am un gm vulnerabil la hack`uri si am si un hack care functioneaza pe el :|

Sau recomanda`ti`mi un fs de anti cheats [dar dupa ce il introduc sa imi mearga vechile comenzi de dat bani]

A fost usor sa te iubim ...,

      Acum e imposibil sa te uitam !

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.