How to insert?
#1

Hello friiends.i want to ask you how to insert this code :

Code:
	else if invited[playerid][GetPlayerVirtualWorld(playerid)] = true;
		SetPlayerPos(playerid, HouseInformation[x][TelePos][0], HouseInformation[x][TelePos][1], HouseInformation[x][TelePos][2]);
 		SetPlayerInterior(playerid, HouseInformation[x][interiors]);
 		SetPlayerVirtualWorld(playerid, 15500000 + x);
To here :

Code:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
    for(new x; x<houseid; x++)
    {
        if(HouseInformation[x][checkpointidx][0] == checkpointid)
        {
            if(InHouse[playerid] != -1)
            {
                InHouse[playerid] = -1;
                return 1;
            }
            InHouseCP[playerid] = x;
            new Pname[28];
            GetPlayerName(playerid, Pname, 28);
            if(HouseInformation[x][owner][0] != 0 && !strcmp(Pname, HouseInformation[x][owner][0]))
            {
                SetPlayerPos(playerid, HouseInformation[x][TelePos][0], HouseInformation[x][TelePos][1], HouseInformation[x][TelePos][2]);
                SetPlayerInterior(playerid, HouseInformation[x][interiors]);
                SetPlayerVirtualWorld(playerid, 15500000 + x);
            }
            if(!HouseInformation[x][owner][0]) SendClientMessage(playerid, -1, "==|Sis namas parduodamas jei norite /npirkti!");
            return 1;
        }
        if(HouseInformation[x][checkpointidx][1] == checkpointid)
        {
            if(InHouse[playerid] == -1)
            {
                InHouse[playerid] = x;
                return 1;
            }
            SetPlayerPos(playerid, HouseInformation[x][EnterPos][0], HouseInformation[x][EnterPos][1], HouseInformation[x][EnterPos][2]);
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid, 0);
            return 1;
        }
    }
    return 1;
}
Reply


Messages In This Thread
How to insert? - by Dziugsas - 17.05.2012, 11:32
Re: How to insert? - by Dziugsas - 17.05.2012, 11:44
Re: How to insert? - by ViniBorn - 17.05.2012, 14:22
Re: How to insert? - by Dziugsas - 18.05.2012, 10:39
Re: How to insert? - by milanosie - 18.05.2012, 10:47
Re: How to insert? - by Dziugsas - 18.05.2012, 10:56
Re: How to insert? - by milanosie - 18.05.2012, 11:00
Re: How to insert? - by Dziugsas - 18.05.2012, 11:17
Re: How to insert? - by milanosie - 18.05.2012, 11:20
Re: How to insert? - by Dziugsas - 18.05.2012, 11:21

Forum Jump:


Users browsing this thread: 1 Guest(s)