Knock command help
#4

Remove this part
PHP код:
                else //If the player is not in range of the house that is in loop.
        
{
            
NearHouse=0;
            
SendClientMessage(playeridCOLOR_WHITE"You are not near a house.");
            return 
1;
        } 
The loop is checking for every house and it is obvious that player will be near to only one house.


And add after the loop:
PHP код:
        if(NearHouse == 0)
        {
            
SendClientMessage(playeridCOLOR_WHITE"You are not near a house.");
         } 
Reply


Messages In This Thread
Knock command help - by maximthepain - 18.08.2017, 10:07
Re: Knock command help - by NewFreeroamStunt - 18.08.2017, 10:13
Re: Knock command help - by maximthepain - 18.08.2017, 10:15
Re: Knock command help - by coool - 18.08.2017, 10:26
Re: Knock command help - by Kane - 18.08.2017, 10:26
Re: Knock command help - by maximthepain - 18.08.2017, 10:47

Forum Jump:


Users browsing this thread: 1 Guest(s)