SA-MP Forums Archive
Roleplay Chat[Help] - 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: Roleplay Chat[Help] (/showthread.php?tid=337055)



Roleplay Chat[Help] - Infinity90 - 24.04.2012

Ok When I Use My Roleplay Chat, It Works But It Says The Normal Chat That Grandlarc Gamemode Uses and it sends the message to everyone, here is my text.

Код:
 
public OnPlayerText(playerid, text[])
{
	new string[128];
	new VBName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, VBName, MAX_PLAYER_NAME);
	format(string, sizeof(string), "%s says: %s", VBName, text);
	ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
	SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
	return 1;
}
Can Anyone Fix This? I Will +Rep.


Re: Roleplay Chat[Help] - 2KY - 24.04.2012

Just return 0.

pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[128];
    new VBName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, VBName, MAX_PLAYER_NAME);
    format(string, sizeof(string), "%s says: %s", VBName, text);
    ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
    SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
    return 0;
}



Re: Roleplay Chat[Help] - Infinity90 - 24.04.2012

Lol thanks dude I feel so dumb lol