#3

Quote:
Originally Posted by Never Forgive
Посмотреть сообщение
Код:
else if(strcmp(x_nr,"lock",true) == 0)
            {
                for(new i = 0; i < sizeof(BizzInfo); i++)
                {
                    if (PlayerToPoint(3, playerid,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]) || PlayerToPoint(3, playerid,BizzInfo[i][bExitX], BizzInfo[i][bExitY], BizzInfo[i][bExitZ]))
                    {
                        if(PlayerInfo[playerid][pPbiskey] == i)
                        {
                            if(BizzInfo[i][bLocked] == 0)
                            {
                                BizzInfo[i][bLocked] = 1;
                                SendClientMessage(playerid,COLOR_LIGHTRED,"Door locked");
                                PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
                                return 1;
                            }
                        }
                        else
                        {
                            GameTextForPlayer(playerid, "~r~You Dont Have A Key", 5000, 6);
                            return 1;
                        }
                    }
                }
            }
This forum requires that you wait 120 seconds between posts. Please try again in 81 seconds.
Thanks, this working.
Reply


Messages In This Thread
Help - by N0FeaR - 08.09.2012, 23:26
Re: Help - by Never Forgive - 08.09.2012, 23:33
Re: Help - by N0FeaR - 08.09.2012, 23:37

Forum Jump:


Users browsing this thread: 1 Guest(s)