SendFactionMessage
#1

Its quite a small problem, but the chat is shown to everyone

PHP код:
SendFactionMessage(playerid,string[]) {
    foreach(new 
Player) {
        if(
AccInfo[playerid][PlayerFaction] == AccInfo[i][PlayerFaction]) {
            
Msg(iCOLOR_LIGHTBLUEstring);
        }
    }
    return 
true;

Reply
#2

Change playerid with 'i'.
Edit: Patrick beat me to it.
Reply
#3

That function is completely ok. You probably using it inside OnPlayerText
When you send that message return 0 so that message that player typed is not sent (you are sending it with Msg function)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)