22.10.2011, 10:53
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);