SA-MP Forums Archive
Help Please - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help Please (/showthread.php?tid=220057)



Help Please - punisher0000 - 02.02.2011

When player enter in same interior from different locations,the players who teleported from A to don't see players teleported from B and don't see what eachothers ( A and B players ) talks.

Thank's very much.


Re: Help Please - Unknown123 - 02.02.2011

I didnt understand you, but
pawn Код:
SetPlayerVirtualWorld(playerid, 3);



Re: Help Please - TheYoungCapone - 03.02.2011

you mean they teleported or they walked into a checkpoint? and yea maybe check your virtual worlds on both teleports to see if there the same.


Re: Help Please - punisher0000 - 03.02.2011

If i set virtual world they don't see eachothers...but see chat...


Re: Help Please - alpha500delta - 03.02.2011

Yeah, virtual worlds. The word says. It sets a player to "another" world, they can see the chat but they cant see each other. To see each other you must set the same worlds for both players (ex. 3)


Re: Help Please - punisher0000 - 03.02.2011

Yes i know,but i don't wan't to see eachother and i don't want to see B what A says and viceversa


Re: Help Please - alpha500delta - 03.02.2011

Ooh. Well, you can use this:

pawn Код:
for(new i; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
            {
                if(GetPlayerVirtualWorld(playerid) <  WORLD_HERE
                          {
                        format(cs,sizeof(cs),"[%d] %s",playerid,text);
                    SendPlayerMessageToPlayer(i,playerid,cs);

                   }
                return 0;
            }
        }
Forums messed up my indentation


Re: Help Please - punisher0000 - 03.02.2011

I will try .... come back with replies


Re: Help Please - punisher0000 - 03.02.2011

Quote:
Originally Posted by alpha500delta
Посмотреть сообщение
Ooh. Well, you can use this:

pawn Код:
for(new i; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
            {
                if(GetPlayerVirtualWorld(playerid) <  WORLD_HERE
                          {
                        format(cs,sizeof(cs),"[%d] %s",playerid,text);
                    SendPlayerMessageToPlayer(i,playerid,cs);

                   }
                return 0;
            }
        }
Forums messed up my indentation
where to put this ?


Re: Help Please - alpha500delta - 04.02.2011

Dont copy that... it has some bugs. If you do, you will have to fix it

Anyway, put under "OnPlayerText"