Help here ?
#1

Now it so that I'm about to script a jail has been a slight problem when I type / enter and then set to stop my car on the outside I want it to be with me when I go into jail. here the code thanks in advance

pawn Код:
}
        else if(IsPlayerInRangeOfPoint(playerid, 1,1826.36,-1537.21,13.64))
        {//Jail enter
            if(PlayerInfo[playerid][pDuty] >= 1 || PlayerInfo[playerid][pAdmin] >= 1)
            {
                GameTextForPlayer(playerid, "~g~Jail", 5000, 1);
                SafeSetPlayerInterior(playerid, 0);
                SafeSetPlayerPos(playerid,1817.97,-1536.64,13.45);

            }
            else return SendClientMessage(playerid, COLOR_GREY,"* You are not a gurad/Police!");
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1, 1817.97,-1536.64,13.45))
        {//Jail Exit
            GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
            SafeSetPlayerInterior(playerid, 0);
            SafeSetPlayerPos(playerid,1826.36,-1537.21,13.64);
Reply
#2

pawn Код:
else if(IsPlayerInRangeOfPoint(playerid, 1,1826.36,-1537.21,13.64))
        {//Jail Enter By Robin_Hellman
            if(PlayerInfo[playerid][pDuty] >= 1 || PlayerInfo[playerid][pAdmin] >= 1)
            {
                if(IsPlayerInAnyVehicle(playerid) && GetPlayerVehicleSeat(playerid) == 0)
                {
                    new vid = GetPlayerVehicleID(playerid);
                    SetVehiclePos(vid,1817.97,-1536.64,13.45);
                    LinkVehicleToInterior(vid,0);
                    PutPlayerInVehicle(playerid,vid,0);
                }
                else
                {
                    GameTextForPlayer(playerid, "~g~Jail", 5000, 1);
                    SafeSetPlayerInterior(playerid, 0);
                    SafeSetPlayerPos(playerid,1817.97,-1536.64,13.45);
                }

            }
            else return SendClientMessage(playerid, COLOR_GREY,"* You are not a gurad/Police!");
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1, 1817.97,-1536.64,13.45))
        {//Jail Exit By Robin_Hellman
            if(IsPlayerInAnyVehicle(playerid) && GetPlayerVehicleSeat(playerid) == 0)
            {
                new vid = GetPlayerVehicleID(playerid);
                SetVehiclePos(vid,1817.97,-1536.64,13.45);
                LinkVehicleToInterior(vid,0);
                PutPlayerInVehicle(playerid,vid,0);
            }
            else
            {
                GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
                SafeSetPlayerInterior(playerid, 0);
                SafeSetPlayerPos(playerid,1826.36,-1537.21,13.64);
            }
You mean this?
Reply
#3

to want the car to go with me when I write / enter so the car is left outside and just my character will into to the jail
Reply
#4

Quote:
Originally Posted by AeroBlast
Посмотреть сообщение
pawn Код:
else if(IsPlayerInRangeOfPoint(playerid, 1,1826.36,-1537.21,13.64))
        {//Jail Enter By Robin_Hellman
            if(PlayerInfo[playerid][pDuty] >= 1 || PlayerInfo[playerid][pAdmin] >= 1)
            {
                if(IsPlayerInAnyVehicle(playerid) && GetPlayerVehicleSeat(playerid) == 0)
                {
                    new vid = GetPlayerVehicleID(playerid);
                    SetVehiclePos(vid,1817.97,-1536.64,13.45);
                    LinkVehicleToInterior(vid,0);
                    PutPlayerInVehicle(playerid,vid,0);
                }
                else
                {
                    GameTextForPlayer(playerid, "~g~Jail", 5000, 1);
                    SafeSetPlayerInterior(playerid, 0);
                    SafeSetPlayerPos(playerid,1817.97,-1536.64,13.45);
                }

            }
            else return SendClientMessage(playerid, COLOR_GREY,"* You are not a gurad/Police!");
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1, 1817.97,-1536.64,13.45))
        {//Jail Exit By Robin_Hellman
            if(IsPlayerInAnyVehicle(playerid) && GetPlayerVehicleSeat(playerid) == 0)
            {
                new vid = GetPlayerVehicleID(playerid);
                SetVehiclePos(vid,1817.97,-1536.64,13.45);
                LinkVehicleToInterior(vid,0);
                PutPlayerInVehicle(playerid,vid,0);
            }
            else
            {
                GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
                SafeSetPlayerInterior(playerid, 0);
                SafeSetPlayerPos(playerid,1826.36,-1537.21,13.64);
            }
You mean this?
Thanks man rep+
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)