Jump to content
Sign in to follow this  

Mesajele doar in apropiere

Recommended Posts

Salut, am pornit un gm de la 0 si as vrea sa stiu cum as putea in momentul in care un player scrie ceva pe chat sa apara acel mesaj doar jucatorilor dintr-o anumita raza.

Ma poate ajuta cineva va rog?

Share this post

Link to post
Share on other sites

Te folosesti de functia ProxDetector sau iti creezi tu una personala.


20.0 - reprezinta raza mesajului

Fade1-5 - sunt culorile mesajului

Restu banuiesc ca sti.

Un exemplu:

La OnPlayerText:

format(string, sizeof string, "* %s spune: %s", GetName(playerid), text);
ProxDetector(20.0, playerid, string, Fade1, Fade2, Fade3, Fade4, Fade5);

// ----------------------------------
stock GetName(playerid)
	new GetPName[24];
	GetPlayerName(playerid, GetPName, sizeof(GetPName));
	return GetPName;

// culorile

#define Fade1 						( 0xE6E6E6E6 )
#define Fade2 						( 0xC8C8C8C8 )
#define Fade3 						( 0xAAAAAAAA )
#define Fade4 						( 0x8C8C8C8C )
#define Fade5 						( 0x6E6E6E6E )


Share this post

Link to post
Share on other sites
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.


Important Information

This site uses cookies. By continuing browsing, you agree to the use of this information. For more details, see Terms of Use and Privacy Policy.