Problem with Teleport help..
#4

this is how it should look

pawn Код:
if(!strcmp(cmdtext, "/garazavlez", true))
    {
        if(IsPlayerConnected(playerid))
        {
            if(GetPlayerState(playerid) == 0)
            {
                if(PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0)
                {
                    if(PlayerToPoint(1.0,playerid,1222.5159,-1426.0334,13.3681))
                    {
                        if(IsPlayerInAnyVehicle(playerid))
                        {
                        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;
                        }else{
                        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) == 0)
            {
                if(PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0)
                {
                    if(PlayerToPoint(1.0,playerid,242.7591,66.4315,1003.6406))
                    {
                        if(IsPlayerInAnyVehicle(playerid))
                        {
                        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;
                        }else{
                        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)