Jump to content
  • 0

Se repeta tot ce zic :|


Question

Posted

De curand vyo imi inchide topicuri pt k au deja raspuns :)) am reusit sal bag :)) dar acuma mise repeta tot ce zik :|

Asta se intampla de knd am bagat acesta chesti:| help va dau si OnPlayerText sa alu si eu ce am gresit

public OnPlayerText(playerid,text[])
{
	new str[124];
	format(str,124,"{AFE7FF}%s",text);
	SendPlayerMessageToAll(playerid, str);

    SetPlayerChatBubble(playerid, text, 0xFFFFFFAA, 100.0, 10000);
    if(isafk[playerid] == 1)
    {
    SystemMessage(playerid, "{FFFFFF}You can not speak for you in BRB or AFK.");
    }
    if (!strcmp(text, reactionstr, false))
    {
    if (reactioninprog == 2) ReactionWin(playerid);
    if (reactioninprog == 1)
    {
    if (reactionwinnerid == playerid)
    {
    SendClientMessage(playerid, 0x247C1BFF, "{FFFFFF}Deja ai castigat!");
    }
    else
    {
    SendClientMessage(playerid, 0x247C1BFF, "{FFFFFF}Deja a castigat altcineva!");
    }
    }
    }
	return 1;
	}

9zZndmN.png

2 answers to this question

Recommended Posts

Posted

Ti-am rezolvat-o eu + aranjat OnPlayerText:

public OnPlayerText(playerid,text[])
{
	SetPlayerChatBubble(playerid, text, 0xFFFFFFAA, 100.0, 10000);
	if(isafk[playerid] == 1)
	{
		SystemMessage(playerid, "{FFFFFF}You can not speak for you in BRB or AFK.");
	}
	if (!strcmp(text, reactionstr, false))
	{
		if (reactioninprog == 2) ReactionWin(playerid);
		if (reactioninprog == 1)
		{
			if (reactionwinnerid == playerid)
			{
				SendClientMessage(playerid, 0x247C1BFF, "{FFFFFF}Deja ai castigat!");
			}
			else
			{
				SendClientMessage(playerid, 0x247C1BFF, "{FFFFFF}Deja a castigat altcineva!");
			}
		}
	}
	new str[124];
	format(str,124,"{AFE7FF}%s",text);
	SendPlayerMessageToAll(playerid, str);
	return 0;
}

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.