Jump to content
  • 0

[GF/RP] Problema contracte hitman agency


Papana

Question

Salut,am si io un bug la hitman agency

Pun /contract pe cineva

Dau /portable,contracts apoi givehit papana

ma duc il omor da bani nu mi da..

nici nu scrie ca Gitman Papana la omorat pe XXXXXX ............

Ma ajuta cineva ?

Add Y!M: papana_papy

si va dau si .pwn

Dau admin care ma ajuta :D,e hostat :| si nu vreau sa stau cu el hostat si sa am bugu asta :@

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

uite te ajut eu.. inlocuieste ce ai tu akl cu asta [pawn]public SearchingHit(playerid)

{

new string[256];

new giveplayer[MAX_PLAYER_NAME];

new searchhit = 0;

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

{

if(IsPlayerConnected(i))

{

    if(searchhit == 0)

    {

    if(PlayerInfo[pHeadValue] > 0 && GotHit == 0 && PlayerInfo[pMember] != 8)

    {

        GetPlayerName(i, giveplayer, sizeof(giveplayer));

        searchhit = 1;

        hitfound = 1;

        hitid = i;

        for(new h = 0; h < GetMaxPlayers(); h++)

{

if(IsPlayerConnected(h))

{

        if(PlayerInfo[h][pMember] == 8 || PlayerInfo[h][pLeader] == 8)

        {

              SendClientMessage(h, COLOR_WHITE, "|__________________ Hitman News __________________|");

                SendClientMessage(h, COLOR_DBLUE, "*** Incoming Message: A Hit has become available. ***");

                format(string, sizeof(string), "Person: %s  ID: %d  Value: %d $", giveplayer, i, PlayerInfo[pHeadValue]);

SendClientMessage(h, COLOR_DBLUE, string);

SendClientMessage(h, COLOR_YELLOW, "Use Givehit Hitmanid, to assign the Contract to one of Hitmans.");

SendClientMessage(h, COLOR_WHITE, "|________________________________________________________|");

      }

    }

}

return 0;

    }

}

}

}

if(searchhit == 0)

{

    SendClientMessage(playerid, COLOR_YELLOW, "No Contracts available !");

}

return 0;

}

[/pawn]

Link to comment
Share on other sites

Am si io:

[pawn]public SearchingHit(playerid)

{

new string[256];

new giveplayer[MAX_PLAYER_NAME];

new searchhit = 0;

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

{

if(IsPlayerConnected(i))

{

    if(searchhit == 0)

    {

    if(PlayerInfo[pHeadValue] > 0 && GotHit == 0 && PlayerInfo[pMember] != 8)

    {

        GetPlayerName(i, giveplayer, sizeof(giveplayer));

        searchhit = 1;

        hitfound = 1;

        hitid = i;

        for(new h = 0; h < GetMaxPlayers(); h++)

{

if(IsPlayerConnected(h))

{

        if(PlayerInfo[h][pMember] == 8 || PlayerInfo[h][pLeader] == 8)

        {

              SendClientMessage(h, COLOR_GREEN, "__________ Hitman Agency Contract __________");

                format(string, sizeof(string), "» Jucator: %s  ID: %d  Suma: %d$", giveplayer, i, PlayerInfo[pHeadValue]);

SendClientMessage(h, COLOR_WHITE, string);

SendClientMessage(h, COLOR_WHITE, "» Contractul a fost preluat.");

SendClientMessage(h, COLOR_GREEN, "__________ Hitman Agency Contract __________");

      }

    }

}

return 0;

    }

}

}

}

if(searchhit == 0)

{

    SendClientMessage(playerid, COLOR_YELLOW, ": Nu sunt contracte disponibile.");

}

return 0;

}[/pawn]

Link to comment
Share on other sites

Sub OnPlayerDeath pune asta:

[pawn] if(PlayerInfo[playerid][pHeadValue] > 0)

{

    if(IsPlayerConnected(killerid))

    {

    if(gTeam[killerid] == 1 || PlayerInfo[killerid][pLeader] == 8)

    {

        if(GoChase[killerid] == playerid)

        {

            ConsumingMoney[killerid] = 1;

new killer[MAX_PLAYER_NAME];

GetPlayerName(killerid, killer, sizeof(killer));

GivePlayerMoney(killerid, PlayerInfo[playerid][pHeadValue]);

format(string,128,"* {FFFFFF}Hitman {FFF1AF}%s {FFFFFF}a indeplinit contractul pe {6EF83C}%s {FFFFFF}si a primit {00C0FF}$%d",killer,name,PlayerInfo[playerid][pHeadValue]);

SendFamilyMessage(8, COLOR_YELLOW, string);

PlayerInfo[playerid][pHeadValue] = 0;

GotHit[playerid] = 0;

GetChased[playerid] = 999;

GoChase[killerid] = 999;

}

}

}

}[/pawn]

userbar6.jpg
Link to comment
Share on other sites

Sub OnPlayerDeath pune asta:

[pawn] if(PlayerInfo[playerid][pHeadValue] > 0)

{

    if(IsPlayerConnected(killerid))

    {

    if(gTeam[killerid] == 1 || PlayerInfo[killerid][pLeader] == 8)

    {

        if(GoChase[killerid] == playerid)

        {

            ConsumingMoney[killerid] = 1;

new killer[MAX_PLAYER_NAME];

GetPlayerName(killerid, killer, sizeof(killer));

GivePlayerMoney(killerid, PlayerInfo[playerid][pHeadValue]);

format(string,128,"* {FFFFFF}Hitman {FFF1AF}%s {FFFFFF}a indeplinit contractul pe {6EF83C}%s {FFFFFF}si a primit {00C0FF}$%d",killer,name,PlayerInfo[playerid][pHeadValue]);

SendFamilyMessage(8, COLOR_YELLOW, string);

PlayerInfo[playerid][pHeadValue] = 0;

GotHit[playerid] = 0;

GetChased[playerid] = 999;

GoChase[killerid] = 999;

}

}

}

}[/pawn]

Are si el :|. Voi habar naveti de bugurile din GF?

Cauta la OnPlayerDeath. asta [pawn]if(gTeam[killerid] == 10 || PlayerInfo[killerid][pLeader] == 8)//sau cum ai tu..[/pawn]

Si inlocuie cu asta:

[pawn]if(PlayerInfo[killerid][pMember] == 8 || PlayerInfo[killerid][pLeader] == 8)[/pawn]

Stiu si eu ... branza e pe bani, dar eu tot ma joc pe gratis!

Link to comment
Share on other sites

Sub OnPlayerDeath pune asta:

[pawn] if(PlayerInfo[playerid][pHeadValue] > 0)

{

    if(IsPlayerConnected(killerid))

    {

    if(gTeam[killerid] == 1 || PlayerInfo[killerid][pLeader] == 8)

    {

        if(GoChase[killerid] == playerid)

        {

            ConsumingMoney[killerid] = 1;

new killer[MAX_PLAYER_NAME];

GetPlayerName(killerid, killer, sizeof(killer));

GivePlayerMoney(killerid, PlayerInfo[playerid][pHeadValue]);

format(string,128,"* {FFFFFF}Hitman {FFF1AF}%s {FFFFFF}a indeplinit contractul pe {6EF83C}%s {FFFFFF}si a primit {00C0FF}$%d",killer,name,PlayerInfo[playerid][pHeadValue]);

SendFamilyMessage(8, COLOR_YELLOW, string);

PlayerInfo[playerid][pHeadValue] = 0;

GotHit[playerid] = 0;

GetChased[playerid] = 999;

GoChase[killerid] = 999;

}

}

}

}[/pawn]

idiotule, ai testat tu si ti-a mers ? esti prost ingramadit, nu vezi ca este doar || PlayerInfo[killerid][pLeader] == 8

Link to comment
Share on other sites

la onplayerdeath ete ce am ..

    if(PlayerInfo[playerid][pHeadValue] > 0)
	{
	    if(IsPlayerConnected(killerid))
	    {
		   	if(gTeam[killerid] == 10 || PlayerInfo[killerid][pLeader] == 8 || PlayerInfo[killerid][pMember] == 8)
		    {
		        if(GoChase[killerid] == playerid)
		        {
		            ConsumingMoney[killerid] = 1;
					new killer[MAX_PLAYER_NAME];
					GetPlayerName(killerid, killer, sizeof(killer));
					GivePlayerMoney(killerid, PlayerInfo[playerid][pHeadValue]);
					format(string,128,"<< Hitman %s has fulfilled the contract on %s and collected $%d >>",killer,name,PlayerInfo[playerid][pHeadValue]);
					SendFamilyMessage(8, COLOR_YELLOW, string);
					PlayerInfo[playerid][pHeadValue] = 0;
					GotHit[playerid] = 0;
					GetChased[playerid] = 999;
					GoChase[killerid] = 999;
				}
			}
		}
	}

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.