Retrieve xyz of entry of interior?
#1

So, I'm making a snake-cam ( basically if you're standing at the entrance you should be able to see the inside once you type /snakecam ).
How can I do it so when the player is in range of point and types the command the command retrieves the interior entrance and spawns something like a spectate camera to just look inside.
Reply
#2

You should detect if the player is in range of the entrance and if thats true then try using SetPlayerCameraPos.
Read https://sampwiki.blast.hk/wiki/SetPlayerCameraPos

Good luck!
Reply
#3

It should go like this, it is not finished but...
PHP код:
if(!strcmp("/snakecam",cmdtext))
{
    if(
IsPlayerInRangeOfPoint(playerid7.02695.6880, -1704.630011.8438))
    {
        
SetPlayerCameraLookAt // here goes cords, make them specific for each interior as they are different
        
SendClientMessage // You are looking at X,Y
    
}
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)