[Pedido] 'PegarContrato"
#4

pawn Код:
else if ((strcmp("PegarContrato", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("PegarContrato")))
        {
            if(PlayerInfo[playerid][pCargo] < 1)
            {
                SendClientMessage(playerid, COLOR_GREY, "   Vocк nгo й um Hitman/Triad");
                return 0;
            }
            if(hitfound == 0)
            {
                SendClientMessage(playerid, COLOR_GREY, "   Nгo ha contratos, USE contratos em seu laptop primeiro!");
                return 0;
            }
            if(IsPlayerConnected(giveplayerid))
            {
                    if(GoChase[playerid] < 999)
                    {
                        SendClientMessage(playerid, COLOR_GREY, "   Vocк jб tem um contrato!");
                        return 0;
                    }
                    if(IsPlayerConnected(hitid))
                    {
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        GetPlayerName(giveplayerid, giver, sizeof(giver));
                        GetPlayerName(hitid, giveplayer, sizeof(giveplayer));
                        format(string, sizeof(string), "* Assasino %s pegou o contrato em %s [ID: %d], por R$%d.", sendername, giveplayer, hitid, PlayerInfo[hitid][pHeadValue]);
                        SendFamilyMessage(GetPlayerOrg(playerid), COLOR_YELLOW, string);
                        GoChase[playerid] = hitid;
                        GetChased[hitid] = playerid;
                        GotHit[hitid] = 1;
                        hitid = 0;
                        hitfound = 0;
                        return 0;
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_GREY, "   O contrato saiu do servidor, Use contratos no seu laptop novamente!");
                        return 0;
                    }
            }
        }
prnt
Reply


Messages In This Thread
'PegarContrato" - by SouUmaJujuba - 31.01.2014, 21:38
Re: 'PegarContrato" - by SouUmaJujuba - 02.02.2014, 00:16
Re: 'PegarContrato" - by ZaturN - 02.02.2014, 00:35
Re: 'PegarContrato" - by Wellington1999 - 02.02.2014, 00:52

Forum Jump:


Users browsing this thread: 1 Guest(s)