Jump to content
  • 0

Inca o problema


TopGun

Question

Am comanda /bonusmission si acolo daca faci misiuni iti da un bonus sa zicem la 10/10 (10 e level 1)  Apoi problema e ca vreau cand faci 10/10 misiuni  vreau sa se reseteze sa fie 0/30 (30 este level urmator adica level 2) si tot asa 0/50 (50 level 3)  cand fac 50/50 misiuni .... Ca asa cand faceam misiuni imi arata 10/10 si tot continuam 11/30  31/50 si numi place.

Vreo idee?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

[pawn]//------------------------------------------------------------------------------------------------------

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

{

    if(IsPlayerConnected(playerid))

    {

    SendClientMessage(playerid, COLOR_GREY,"*** {12E3A8}Level 1{737373} *** {FB0500}10 {07B584}mission passed - {FFB700}100.000$ + 5 respect points.");

SendClientMessage(playerid, COLOR_GREY,"*** {12E3A8}Level 2{737373} *** {FB0500}30 {07B584}mission passed - {FFB700}250.000$ + 15 respect points.");

SendClientMessage(playerid, COLOR_GREY,"*** {12E3A8}Level 3{737373} *** {FB0500}50 {07B584}mission passed - {FFB700}500.000$ + 30 respect points.");

SendClientMessage(playerid, COLOR_GREY,"*** {12E3A8}Level 4{737373} *** {FB0500}100 {07B584}mission passed - {FFB700}1.000.000$ + 1 level.");

SendClientMessage(playerid, COLOR_GREY,"*** {12E3A8}Level 5{737373} *** {FB0500}250 {07B584}mission passed - {FFB700}3.000.000$ + 1 level + 50 respect points.");

new misiuni = PlayerInfo[playerid][pCompMission];

            if ( PlayerInfo[playerid][pCompMission] < 10)

{

      SendClientMessage(playerid, COLOR_GREY,"*** You are {12E3A8}level 1.");

      format(string, 256 ,"*** Completed mission {FFFFFF}[{FB0500}%d/10{FFFFFF}]", misiuni);

      SendClientMessage(playerid, COLOR_GREY, string);

      return 1;

}

if ( PlayerInfo[playerid][pCompMission] < 30)

{

      SendClientMessage(playerid, COLOR_GREY,"*** You are {12E3A8}level 2.");

      format(string, 256 ,"*** Completed mission {FFFFFF}[{FB0500}%d/30{FFFFFF}]", misiuni);

      SendClientMessage(playerid, COLOR_GREY, string);

      return 1;

}

if ( PlayerInfo[playerid][pCompMission] < 50)

{

      SendClientMessage(playerid, COLOR_GREY,"*** You are {12E3A8}level 3.");

      format(string, 256 ,"*** Completed mission {FFFFFF}[{FB0500}%d/50{FFFFFF}]", misiuni);

      SendClientMessage(playerid, COLOR_GREY, string);

      return 1;

}

if ( PlayerInfo[playerid][pCompMission] < 100)

{

      SendClientMessage(playerid, COLOR_GREY,"***You are {12E3A8}level 4.");

      format(string, 256 ,"*** Completed mission {FFFFFF}[{FB0500}%d/100{FFFFFF}]", misiuni);

      SendClientMessage(playerid, COLOR_GREY, string);

      return 1;

}

if ( PlayerInfo[playerid][pCompMission] < 250)

{

      SendClientMessage(playerid, COLOR_GREY,"***You are {12E3A8}level 5.");

      format(string, 256 ,"*** Completed mission {FFFFFF}[{FB0500}%d/250{FFFFFF}]", misiuni);

      SendClientMessage(playerid, COLOR_GREY, string);

      return 1;

}

}

return 1;

}[/pawn]

Link to comment
Share on other sites

1.Ai warn pentru 2xpost.

2.

if(strcmp(cmd, "/bonusmis", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
		    SendClientMessage(playerid, COLOR_GREY,"*** {12E3A8}Level 1{737373} *** {FB0500}10 {07B584}mission passed - {FFB700}100.000$ + 5 respect points.");
			SendClientMessage(playerid, COLOR_GREY,"*** {12E3A8}Level 2{737373} *** {FB0500}30 {07B584}mission passed - {FFB700}250.000$ + 15 respect points.");
			SendClientMessage(playerid, COLOR_GREY,"*** {12E3A8}Level 3{737373} *** {FB0500}50 {07B584}mission passed - {FFB700}500.000$ + 30 respect points.");
			SendClientMessage(playerid, COLOR_GREY,"*** {12E3A8}Level 4{737373} *** {FB0500}100 {07B584}mission passed - {FFB700}1.000.000$ + 1 level.");
			SendClientMessage(playerid, COLOR_GREY,"*** {12E3A8}Level 5{737373} *** {FB0500}250 {07B584}mission passed - {FFB700}3.000.000$ + 1 level + 50 respect points.");
			new misiuni = PlayerInfo[playerid][pCompMission];
            		if ( PlayerInfo[playerid][pCompMission] < 10 && PlayerInfo[playerid][pLevel] == 1)
			{
			      SendClientMessage(playerid, COLOR_GREY,"*** You are {12E3A8}level 1.");
			      format(string, 256 ,"*** Completed mission {FFFFFF}[{FB0500}%d/10{FFFFFF}]", misiuni);
			      SendClientMessage(playerid, COLOR_GREY, string);
			      return 1;
			}
			if ( PlayerInfo[playerid][pCompMission] < 30 && PlayerInfo[playerid][pLevel] == 2)
			{
			      SendClientMessage(playerid, COLOR_GREY,"*** You are {12E3A8}level 2.");
			      format(string, 256 ,"*** Completed mission {FFFFFF}[{FB0500}%d/30{FFFFFF}]", misiuni);
			      SendClientMessage(playerid, COLOR_GREY, string);
			      return 1;
			}
			if ( PlayerInfo[playerid][pCompMission] < 50 && PlayerInfo[playerid][pLevel] == 3)
			{
			      SendClientMessage(playerid, COLOR_GREY,"*** You are {12E3A8}level 3.");
			      format(string, 256 ,"*** Completed mission {FFFFFF}[{FB0500}%d/50{FFFFFF}]", misiuni);
			      SendClientMessage(playerid, COLOR_GREY, string);
			      return 1;
			}
			if ( PlayerInfo[playerid][pCompMission] < 100 && PlayerInfo[playerid][pLevel] == 4)
			{
			      SendClientMessage(playerid, COLOR_GREY,"***You are {12E3A8}level 4.");
			      format(string, 256 ,"*** Completed mission {FFFFFF}[{FB0500}%d/100{FFFFFF}]", misiuni);
			      SendClientMessage(playerid, COLOR_GREY, string);
			      return 1;
			}
			if ( PlayerInfo[playerid][pCompMission] < 250 && PlayerInfo[playerid][pLevel] == 2)
			{
			      SendClientMessage(playerid, COLOR_GREY,"***You are {12E3A8}level 5.");
			      format(string, 256 ,"*** Completed mission {FFFFFF}[{FB0500}%d/250{FFFFFF}]", misiuni);
			      SendClientMessage(playerid, COLOR_GREY, string);
			      return 1;
			}
		}
		return 1;
	}

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

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.