Mask bug - 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)
+--- Thread: Mask bug (
/showthread.php?tid=462846)
Mask bug -
Don_Cage - 08.09.2013
When someone uses /maskon his name is hidden so other players doesn't see who he is. But when ever he or someone else changes interior or virtual world they start to see his name again. How can I prevent that?
Re: Mask bug -
Don_Cage - 08.09.2013
I made this code.
pawn Код:
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[i][pMaskuse] == 1)
{
ShowPlayerNameTagForPlayer(i, i, 0);
}
}
}
2 questions. Will it work and where should I put it for best effect?
Re: Mask bug -
Richie© - 08.09.2013
Check OnPlayerStreamIn, you must hide the name when player streams for another player.
Re: Mask bug -
Don_Cage - 08.09.2013
I don't have any OnPlayerStreamIn
Re: Mask bug -
Eyce - 09.09.2013
pawn Код:
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
Re: Mask bug -
Don_Cage - 09.09.2013
Thanks