House
#6

Quote:
Originally Posted by Sreyas
Посмотреть сообщение
its hard for people to help you in an non english script translate it for us.
PHP код:
if(newkeys == KEY_SECONDARY_ATTACK )
{
    for(new 
i; i < MAX_HOUSES; i++)
    {
        if(
IsPlayerInRangeOfPoint(playerid, 3.0, HouseInfo[i][kEnterX], HouseInfo[i][kEnterY], HouseInfo[i][kEnterZ]))
        {
            if(
PlayerInfo[playerid][PosedovanjeKuce] == i || HouseInfo[i][kZatvoreno] == 0)
            {
                
SetPlayerVirtualWorld(playerid, HouseInfo[i][kVW]);
                
SetPlayerInterior(playerid, HouseInfo[i][kInt]);
                
SetPlayerPos(playerid, HouseInfo[i][kExitX], HouseInfo[i][kExitY], HouseInfo[i][kExitZ]);
            }
            else 
ERROR(playerid, "House is locked!");
        }
        if(
IsPlayerInRangeOfPoint(playerid, 3.0, HouseInfo[i][kExitX], HouseInfo[i][kExitY], HouseInfo[i][kExitZ]) && GetPlayerVirtualWorld(playerid) == HouseInfo[i][kVW])
        {
            
SetPlayerInterior(playerid, 0);
            
SetPlayerVirtualWorld(playerid, 0);
            
SetPlayerPos(playerid, HouseInfo[i][kEnterX], HouseInfo[i][kEnterY], HouseInfo[i][kEnterZ]);
        }
    }
} 
Here you go
Reply


Messages In This Thread
House - by Micko123 - 28.08.2016, 06:52
Re: House - by Shinja - 28.08.2016, 12:36
Re: House - by Micko123 - 28.08.2016, 12:39
Re: House - by Shinja - 28.08.2016, 12:43
Re: House - by SyS - 28.08.2016, 12:53
Re: House - by Micko123 - 28.08.2016, 12:56
Re: House - by Shinja - 28.08.2016, 13:00
Re: House - by Micko123 - 28.08.2016, 13:06
Re: House - by PrO.GameR - 28.08.2016, 16:32
Re: House - by Micko123 - 28.08.2016, 19:42

Forum Jump:


Users browsing this thread: 1 Guest(s)