SA-MP Forums Archive
Text on entering area - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Text on entering area (/showthread.php?tid=234555)



Text on entering area - Swiftz - 03.03.2011

How can i do this? When a players enters certain area , with boundaries on 4 sides and a text display saying the custom area name, Like if we go to san fierro , in single players by default a text appears how can i do that


Re: Text on entering area - Stigg - 03.03.2011

Код:
public OnGameModeInit()
{
    EnableZoneNames(1);
    return 1;
}
Is that what your after ?

Sozz. Did'nt know function was removed. My bad.


Re: Text on entering area - Swiftz - 03.03.2011

No not actuallY, I meant that, how can i create my custom area names?


Re: Text on entering area - Stigg - 03.03.2011

First you'll have to create the area's, then gametext or textdraw for player when he enters the area.
Simple.


Re: Text on entering area - Swiftz - 03.03.2011

Whats the line to create an area and whats the function is there any like onplayerenterarea or somethign?


Re: Text on entering area - Stigg - 03.03.2011

I use incognitos streamer for my area's. The callback is:

Код:
public OnPlayerEnterDynamicArea(playerid, areaid)
Streamer is located at:

https://sampforum.blast.hk/showthread.php?tid=102865


Re: Text on entering area - iggy1 - 03.03.2011

EnableZoneNames(); was removed according to the wiki. You could use incognito's streamer plugin for the areas it has callbacks for when you enter/leave an area.

EDIT: Too late.