SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 30/06/2012, 08:33 PM   #1
Garc1a
Big Clucker
 
Join Date: Jul 2010
Posts: 118
Reputation: 0
Default Disable nametag

I'm creating a mask script, when a player is wearing a mask, their nametag isn't there. How can I do this?
I know: http://wiki.sa-mp.com/wiki/ShowPlayerNameTagForPlayer but that disables everyone else's client side.
Garc1a is offline   Reply With Quote
Old 30/06/2012, 08:55 PM   #2
Toreno
Gangsta
 
Join Date: Nov 2010
Posts: 725
Reputation: 41
Default Re: Disable nametag

This is all you need.
pawn Code:
for(new i; i < MAX_PLAYERS; i++)
{
    if(!IsPlayerConnected(playerid))
    {
        continue;
    }

    ShowPlayerNameTagForPlayer(i, playerid, false);
    /*
        i           all players online
        playerid    a specific player that uses /mask
        false       hide name tag
    */

}

EDIT: http://wiki.sa-mp.com/wiki/ShowPlayerNameTagForPlayer - OnPlayerStreamIn is important public.
Toreno is offline   Reply With Quote
Old 30/06/2012, 09:20 PM   #3
Garc1a
Big Clucker
 
Join Date: Jul 2010
Posts: 118
Reputation: 0
Default Re: Disable nametag

Quote:
Originally Posted by Toreno View Post
This is all you need.
pawn Code:
for(new i; i < MAX_PLAYERS; i++)
{
    if(!IsPlayerConnected(playerid))
    {
        continue;
    }

    ShowPlayerNameTagForPlayer(i, playerid, false);
    /*
        i           all players online
        playerid    a specific player that uses /mask
        false       hide name tag
    */

}

EDIT: http://wiki.sa-mp.com/wiki/ShowPlayerNameTagForPlayer - OnPlayerStreamIn is important public.
Doesn't that disable everybodies nametags? I want it so that the individual player's nametag is switched off for everyone else.
Garc1a is offline   Reply With Quote
Old 30/06/2012, 09:30 PM   #4
Toreno
Gangsta
 
Join Date: Nov 2010
Posts: 725
Reputation: 41
Default Re: Disable nametag

If you switch between "i" and "playerid", it will hide everyone's for this playerid. Use what I posted, it should work properly.
Toreno is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nametag ikbenremco Scripting Help 2 29/04/2012 07:12 PM
[Include] [INC] NameTag Fro1sha Релизы/Releases 2 06/05/2010 06:51 AM
NameTag FreeSoul Help Archive 1 28/05/2009 06:42 AM


All times are GMT. The time now is 03:33 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.