[HELP] Everyone on the server can read my /local...
#1

The title says it all... here is the script:

Код:
	if(!strcmp(cmdtext, "/local", true, 6))
	{
		new str[256], pname[256];
		GetPlayerName(playerid, pname, 256);
		format(str, 256, "(( Local Ooc: %s:%s ))", pname, cmdtext[6]);
		LimitGlobalChatRadius(20);
		SendClientMessageToAll(0xFFFFFFAA, str);
 		return 1;
	}
Why can everyone read it?
Reply
#2

Код:
SendClientMessageToAll
I think that maybe failing your script :P
Reply
#3

lol ^

Код:
	if(!strcmp(cmdtext, "/local", true, 6))
	{
		new str[256], pname[256];
		GetPlayerName(playerid, pname, 256);
		format(str, 256, "(( Local Ooc: %s:%s ))", pname, cmdtext[6]);
		LimitGlobalChatRadius(20);
		SendClientMessage(0xFFFFFFAA, str); [maybe SendClientMessage (playerid) or I donno I or the other]
 		return 1;
	}
Reply
#4

this should do it.
pawn Код:
if(!strcmp(cmdtext, "/local", true, 6))
    {
        new str[256], pname[256];
        GetPlayerName(playerid, pname, 256);
        format(str, 256, "(( Local Ooc: %s:%s ))", pname, cmdtext[6]);
        LimitGlobalChatRadius(20);
        OnPlayerText(playerid, str);
        LimitGlobalChatRadius(999999);
        return 1;
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)