Jump to content
  • 0

Chat server


eXtreMe96

Question

4 answers to this question

Recommended Posts

cauti in mod :

if (realchat)

si o inlocuiesti cu asta


	if (realchat)
	{
	    if(gPlayerLogged[playerid] == 0)
	    {
	        return 0;
      	}
		GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "%s [ID: %d] Says: %s", sendername, playerid, text);
		ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
		PlayerInfo[playerid][pPoint] += 1;
		return 0;
	}

Link to comment
Share on other sites

Au au au... deja voi scriptati dupa GF sau cum ? Nu mai postati prostii, gen copy/paste, daca nu stiti despre ce e vorba.

Cauti OnPlayerText

si ii dai return 0; el are return 1; momentan

Dupa,

new tstr[128], pn[MAX_PLAYER_NAME];
GetPlayerName(playerid, pn, MAX_PLAYER_NAME);
format(tstr, 128, "[%i]%s:%s", playerid, pn, text);
SendClientMessageToAll(0xFFFFFFFF, tstr);

Pui tu ce culoare vrei la SendClientMessageToAll.

-Toate tutorialele postate intra aici sau puneti-le direct [url=http://www.sa-mp.ro/forum/index

Link to comment
Share on other sites

Au au au... deja voi scriptati dupa GF sau cum ? Nu mai postati prostii, gen copy/paste, daca nu stiti despre ce e vorba.

Cauti OnPlayerText

si ii dai return 0; el are return 1; momentan

Dupa,

new tstr[128], pn[MAX_PLAYER_NAME];
GetPlayerName(playerid, pn, MAX_PLAYER_NAME);
format(tstr, 128, "[%i]%s:%s", playerid, pn, text);
SendClientMessageToAll(0xFFFFFFFF, tstr);
Pui tu ce culoare vrei la SendClientMessageToAll.
in loc de SendClientMessageToAll mai bine foloseste SendPlayerMessageToAll:
new tstr[128];
format(tstr, 128, "[%i]:%s", playerid, text);
SendPlayerMessageToAll(playerid,tstr);

Si va aparea ca in chat :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.