PDA

View Full Version : No icon


Nikola_Belic
24/09/2013, 12:55 PM
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.

MAFIAWARS
24/09/2013, 12:59 PM
You have to make a Command with zcmd called "enter"

Let me give you an Example:


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.

AnonScripter
24/09/2013, 01:13 PM
use this first:
public OnGameModeInit()
{
DisableInteriorEnterExits();
return 1;
}
to disable the markers that on every door ingame.

Nikola_Belic
24/09/2013, 02:37 PM
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.