Jump to content
  • 0

[GF/RP] Problema Hitman


Question

Posted

SAlut!!Am o problema la comenzile de la hitman.Cand pun contract pe cineva si dau givehit imi spune ca nu sunt hitman dar eu sunt leader hitman ce trbuie sa schimb

Linii

else if ((strcmp("Givehit", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Givehit")))

{

    if(PlayerInfo[playerid][pRank] < 4)

    {

        SendClientMessage(playerid, COLOR_GREY, "  You need Rank 4 to Give Contracts to Hitmans !");

        return 0;

    }

    if(hitfound == 0)

    {

        SendClientMessage(playerid, COLOR_GREY, "  There is no Hit Founded yet, use Contracts in the Portable first !");

        return 0;

    }

    tmp = strtok(text, idx);

    if(!strlen(tmp))

{

SendClientMessage(playerid, COLOR_GRAD1, "USAGE: Givehit [playerid/PartOfName]");

return 0;

}

//giveplayerid = strval(tmp);

giveplayerid = ReturnUser(tmp);

if(IsPlayerConnected(giveplayerid))

{

    if(giveplayerid != INVALID_PLAYER_ID)

    {

    if(PlayerInfo[giveplayerid][pMember] != 8)

                    if(PlayerInfo[giveplayerid][pLeader] != 8)

{

        SendClientMessage(playerid, COLOR_GREY, "  That player is not a Hitman !");

return 0;

    }

    if(GoChase[giveplayerid] < 999)

    {

        SendClientMessage(playerid, COLOR_GREY, "  That Hitman is already busy with a Contract !");

return 0;

    }

2 answers to this question

Recommended Posts

Posted

incearca asa [pawn]else if ((strcmp("Givehit", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Givehit")))

{

    if(PlayerInfo[playerid][pRank] < 4)

    {

        SCM(playerid, COLOR_GREY, "  You need Rank 4 to Give Contracts to Hitmans !");

        return 0;

    }

    if(hitfound == 0)

    {

        SCM(playerid, COLOR_GREY, "  There is no Hit Founded yet, use Contracts in the Portable first !");

        return 0;

    }

    tmp = strtok(text, idx);

    if(!strlen(tmp))

{

SCM(playerid, COLOR_GRAD1, "USAGE: Givehit [playerid/PartOfName]");

return 0;

}

//giveplayerid = strval(tmp);

giveplayerid = ReturnUser(tmp);

if(IsPlayerConnected(giveplayerid))

{

    if(giveplayerid != INVALID_PLAYER_ID)

    {

    if(PlayerInfo[giveplayerid][pMember] != 8)

    {

        SCM(playerid, COLOR_GREY, "  That player is not a Hitman !");

return 0;

    }

    if(GoChase[giveplayerid] < 999)

    {

        SCM(playerid, COLOR_GREY, "  That Hitman is already busy with a Contract !");

return 0;

    }[/pawn]

I'm back haha !

Posted

inearca asa .....

ar trebui sa mearga

else if ((strcmp("Givehit", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Givehit")))
		{
		    if(PlayerInfo[playerid][pRank] < 4)
		    {
		        SCM(playerid, COLOR_GREY, "   You need Rank 4 to Give Contracts to Hitmans !");
		        return 0;
		    }
		    if(hitfound == 0)
		    {
		        SCM(playerid, COLOR_GREY, "   There is no Hit Founded yet, use Contracts in the Portable first !");
		        return 0;
		    }
		    tmp = strtok(text, idx);
		    if(!strlen(tmp))
			{
				SCM(playerid, COLOR_GRAD1, "USAGE: Givehit [playerid/PartOfName]");
				return 0;
			}
			//giveplayerid = strval(tmp);
			giveplayerid = ReturnUser(tmp);
			if(IsPlayerConnected(giveplayerid))
			{
			    if(giveplayerid != INVALID_PLAYER_ID)
			    {
				    if(PlayerInfo[giveplayerid][pMember] != 8 || PlayerInfo[giveplayerid][pLeader] != 8)
				    {
				        SCM(playerid, COLOR_GREY, "   That player is not a Hitman !");
						return 0;
				    }
				    if(GoChase[giveplayerid] < 999)
				    {
				        SCM(playerid, COLOR_GREY, "   That Hitman is already busy with a Contract !");
						return 0;
				    }

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.