No icon - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: No icon (
/showthread.php?tid=465823)
No icon -
Nikola_Belic - 24.09.2013
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.
Re: No icon -
MAFIAWARS - 24.09.2013
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.
Re: No icon -
AnonScripter - 24.09.2013
use this first:
pawn Код:
public OnGameModeInit()
{
DisableInteriorEnterExits();
return 1;
}
to disable the markers that on every door ingame.
Re: No icon -
Nikola_Belic - 24.09.2013
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.