Problem with Teleport help..
#1

So i want to make a garage when you at that location to type /garazavlez and to enter in the garage i make a interrior and other thigs i make cmd but when i type /garazavlez with car i cant enter but without car can enter.. Why?

Here is cmds:

pawn Код:
if(!strcmp(cmdtext, "/garazavlez", true))
    {
        if(IsPlayerConnected(playerid))
        {
            if(GetPlayerState(playerid) == 1)
            {
                if(PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0)
                {
                    if(PlayerToPoint(1.0,playerid,1222.5159,-1426.0334,13.3681))
                    {
                        SetVehiclePos(GetPlayerVehicleID(playerid), 2663.32958984,1777.94506836,1266.57214355);
                        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 1);
                        SetPlayerPos(playerid, 2663.32958984,1777.94506836,1266.57214355);
                        GameTextForPlayer(playerid, "~w~Dobrodosli u Prvu Garazu",5000,1);
                        SetPlayerInterior(playerid,1);
                        PlayerInfo[playerid][pInt] = 1;
                    }
                }
            }
        }
        return 1;
    }
    if(!strcmp(cmdtext, "/garazaizlez", true))
    {
        if(IsPlayerConnected(playerid))
        {
            if(GetPlayerState(playerid) == 1)
            {
                if(PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0)
                {
                    if(PlayerToPoint(1.0,playerid,242.7591,66.4315,1003.6406))
                    {
                        SetVehiclePos(GetPlayerVehicleID(playerid), 1222.5159,-1426.0334,13.3681);
                        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
                        SetPlayerPos(playerid, 1222.5159,-1426.0334,13.3681);
                        GameTextForPlayer(playerid, "~w~Dobrodosli u Los Santos",5000,1);
                        SetPlayerInterior(playerid,0);
                        PlayerInfo[playerid][pInt] = 0;
                    }
                }
            }
        }
        return 1;
    }
Reply


Messages In This Thread
Problem with Teleport help.. - by GBLTeam - 04.04.2011, 13:28
Re: Problem with Teleport help.. - by bijoyekuza - 04.04.2011, 14:50
Re: Problem with Teleport help.. - by GBLTeam - 04.04.2011, 15:02
Re: Problem with Teleport help.. - by bijoyekuza - 04.04.2011, 15:07
Re: Problem with Teleport help.. - by GBLTeam - 04.04.2011, 15:15
Re: Problem with Teleport help.. - by bijoyekuza - 04.04.2011, 15:19
Re: Problem with Teleport help.. - by GBLTeam - 04.04.2011, 15:28
Re: Problem with Teleport help.. - by bijoyekuza - 04.04.2011, 15:30
Re: Problem with Teleport help.. - by GBLTeam - 04.04.2011, 16:17
Re: Problem with Teleport help.. - by bijoyekuza - 04.04.2011, 16:40

Forum Jump:


Users browsing this thread: 1 Guest(s)