Local chat only in its Virtual World
#1

Hello, i would like to know how is it possible that players who are not in same Virtual World but on same position/location can't see the local text?

pawn Код:
if(strcmp(cmd, "/l", true) == 0 || strcmp(cmd, "/local", true) == 0)
    {
        GetPlayerName(playerid, sendername, sizeof(sendername));
        new length = strlen(cmdtext);
        while ((idx < length) && (cmdtext[idx] <= ' '))
        {
            idx++;
        }
        new offset = idx;
        new result[64];
        while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
        {
            result[idx - offset] = cmdtext[idx];
            idx++;
        }
        result[idx - offset] = EOS;
        if(!strlen(result))
        {
            SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/l)ocal");
            return 1;
        }
        format(string, sizeof(string), "* %s says: %s", sendername, result);
        ProxDetector(12.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        printf("%s", string);
        return 1;
    }
Here is the code, i tried adding stuff to it but it failed.
This one works well until i see people in same houses/interiors but in other virtual world can see each other Local Chats.


Thanks in advance and i hope someone helps me here

Reply


Messages In This Thread
Local chat only in its Virtual World - by Blades - 31.08.2009, 20:43
Re: Local chat only in its Virtual World - by oncedead - 31.08.2009, 22:10

Forum Jump:


Users browsing this thread: 1 Guest(s)