Quote:
Originally Posted by Dare Devil.....
pawn Код:
CMD:enterhouse(playerid, params[]) { for(new i = 0; i < MAX_HOUSES;i++) { if(IsPlayerInRangeOfPoint(playerid,2.5,HInfo[i][XPos],HInfo[i][YPos],HInfo[i][ZPos])) { if(HInfo[i][locked] == 0) { SetPlayerVirtualWorld(playerid,playerid); SetPlayerPos(playerid,2496.049804,-1695.238159,1014.742187); } } return 1; } return 0; }
This is my /enterhouse but I wanted to ask that when a player enters it he gose into air can I fix it?
|
what you mean it goes into air? can you add more details?
SetPlayerVirtualWorld(playerid, -1) or specified virtual world of the house. and you forgot to use SetPlayerInterior(playerid,....)