No icon
#1

I just started learning how to script,so i don't know much about it.
I would like to know how to make an enter point without an icon?

Example:When you come to the door, you don't see any icon in front of it,but when you type /enter there you enter a custom interior.


Thanks in advance.
Reply
#2

You have to make a Command with zcmd called "enter"

Let me give you an Example:

pawn Код:
CMD:enter(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 5, x,y,z)) //Set Range from where Player can do /enter
    {
        SetPlayerPos(playerid, x,y,z); //Set Position of Player by doing /save in game.
        SetPlayerInterior(playerid, <interiorid>); //Check Interior ID from ******
    }
    return 1;
}
If you won't understand, feel free to reply here Again.
Reply
#3

use this first:
pawn Код:
public OnGameModeInit()
{
    DisableInteriorEnterExits();
        return 1;
}
to disable the markers that on every door ingame.
Reply
#4

I only want to have two or three invisible enter points (with no icons),like hitman HQ ans such. Other things,like houses should normaly show green house icon.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)