04.02.2015, 15:00
how to make an enterable building when player uses /enter and /exit cmds he can enter
Go under On PlayerKeyState And make Some thing Like this. if(newkeys & KEY_SECONDARY_ATTACK) // if he press F or Enter { //Police Towards .. if IsPlayerInRangeOfPoint(playerid,1.0,-18.8034,2122.5828,17.3427) *then //This is Location where you Enter inside the Building { SetPlayerPos(playerid,-101.4980,2293.4893,17.5543);//it will set your Postion here.. You can change X,Y,Z } if IsPlayerInRangeOfPoint(playerid, 1.0,-101.4980,2293.4893,17.5543) *then// same for this { SetPlayerInterior(playerid, 0); SetPlayerPos(playerid,-18.8034,2122.5828,17.3427); } }