Roleplay Chat[Help]
#1

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.
Reply
#2

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;
}
Reply
#3

Lol thanks dude I feel so dumb lol
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)