SA-MP Forums

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

 
 
Thread Tools Display Modes
Old 30/12/2010, 10:16 AM   #1
!Pumpkin
Big Clucker
 
!Pumpkin's Avatar
 
Join Date: Jul 2010
Location: Estonia
Posts: 90
Reputation: 6
Default WTF 0.3c new defination ?

Code:
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
	   	if(IsPlayerConnected(i))
	   	{
	       	if(PlayerInfo[i][pMaskuse] == 1)
	       	{
          	ShowPlayerNameTagForPlayer(playerid, i, false);
       	 	//SetPDistance(0);
	       	}
	   	}
	}
	//}
	return 1;
}


	if(strcmp(cmd, "/maskpeale", true) == 0) // by Ellis
	{
	    if(IsPlayerConnected(playerid))
	    {
	    	if(PlayerInfo[playerid][pMask] == 0)
	   	 	{
	   		     SendClientMessage(playerid, COLOR_GRAD1, "   Sul ei ole maski");
	   		     return 1;
	   		}
			for(new i = 0; i < MAX_PLAYERS; i++)
   			{
   		    	if(IsPlayerConnected(i))
   		    	{
  				ShowPlayerNameTagForPlayer(playerid, i, false);
  				//SetPDistance(2);
				}
			}
			PlayerInfo[playerid][pMaskuse] = 1;
			SetPlayerAttachedObject(playerid, 2, 19037, 2, MaskPos[skin][0], MaskPos[skin][1], MaskPos[skin][2], MaskPos[skin][3], MaskPos[skin][4], MaskPos[skin][5]);
			SendClientMessage(playerid, COLOR_WHITE, "   sa panid maski pähe [/maskmaha ,et seda ära panna].");
			GetPlayerName(playerid, sendername, sizeof(sendername));
      		format(string, sizeof(string), "* %s paneb maski pähe.", sendername);
      		ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		}
		return 1;
	}

	if(strcmp(cmd, "/maskmaha", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	    	if(PlayerInfo[playerid][pMask] == 0)
	    	{
	       		SendClientMessage(playerid, COLOR_GRAD1, "   Sul ei ole prille");
	        	return 1;
	    	}
	    	for(new i = 0; i < MAX_PLAYERS; i++)
   			{
   		    	if(IsPlayerConnected(i))
   		    	{
				ShowPlayerNameTagForPlayer(playerid, i, true);
				}
			}
			PlayerInfo[playerid][pMaskuse] = 0;
			RemovePlayerAttachedObject(playerid, 2);
			SendClientMessage(playerid, COLOR_WHITE, "Sa v6tsid maski maha [/maskpeale ,et tagasi panna].");
			GetPlayerName(playerid, sendername, sizeof(sendername));
      		format(string, sizeof(string), "* %s paneb maski ära.", sendername);
      		ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		}
		return 1;
	}
So when i put mask on i still see player names.......
!Pumpkin is offline  
Old 03/01/2011, 11:15 AM   #2
Flyfishes
Huge Clucker
 
Flyfishes's Avatar
 
Join Date: Jul 2010
Location: Stockholm, Sweden
Posts: 352
Reputation: 4
Default Re: WTF 0.3c new defination ?

But players can't see your name!
__________________
Flyfishes is offline  
Old 03/01/2011, 12:20 PM   #3
Jochemd
High-roller
 
Jochemd's Avatar
 
Join Date: Jul 2009
Location: The Netherlands
Posts: 2,504
Reputation: 844
Default Re: WTF 0.3c new defination ?

Lol yeah, YOU put the mask on, other don't.
__________________
Jochemd is offline  
Old 03/01/2011, 01:01 PM   #4
!Pumpkin
Big Clucker
 
!Pumpkin's Avatar
 
Join Date: Jul 2010
Location: Estonia
Posts: 90
Reputation: 6
Default Re: WTF 0.3c new defination ?

So , when i put mask on , players can see my name but i cant see they're name.It should be like this : i put mask on , i can see they're name but they shouldn't see mine.
!Pumpkin is offline  
Old 03/01/2011, 01:04 PM   #5
Edski
Little Clucker
 
Join Date: Aug 2010
Location: Angel Pine
Posts: 21
Reputation: 0
Default Re: WTF 0.3c new defination ?

I think the idea of a mask is that it disguises you from other people.
__________________
Edski is offline  
Old 03/01/2011, 02:07 PM   #6
HyperZ
High-roller
 
HyperZ's Avatar
 
Join Date: Aug 2009
Posts: 1,387
Reputation: 66
Default Re: WTF 0.3c new defination ?

You're code is wrong, i guess
Try this code:
Code:
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
	   	if(IsPlayerConnected(i))
	   	{
	       	if(PlayerInfo[i][pMaskuse] == 1)
	       	{
          	ShowPlayerNameTagForPlayer(playerid, i, false);
       	 	//SetPDistance(0);
	       	}
	   	}
	}
	//}
	return 1;
}


	if(strcmp(cmd, "/maskpeale", true) == 0) // by Ellis
	{
	    if(IsPlayerConnected(playerid))
	    {
	    	if(PlayerInfo[playerid][pMask] == 0)
	   	 	{
	   		     SendClientMessage(playerid, COLOR_GRAD1, "   Sul ei ole maski");
	   		     return 1;
	   		}
			for(new i = 0; i < MAX_PLAYERS; i++)
   			{
   		    	if(IsPlayerConnected(i))
   		    	{
  				ShowPlayerNameTagForPlayer(i, i, false);
  				//SetPDistance(2);
				}
			}
			PlayerInfo[playerid][pMaskuse] = 1;
			SetPlayerAttachedObject(playerid, 2, 19037, 2, MaskPos[skin][0], MaskPos[skin][1], MaskPos[skin][2], MaskPos[skin][3], MaskPos[skin][4], MaskPos[skin][5]);
			SendClientMessage(playerid, COLOR_WHITE, "   sa panid maski pähe [/maskmaha ,et seda ära panna].");
			GetPlayerName(playerid, sendername, sizeof(sendername));
      		format(string, sizeof(string), "* %s paneb maski pähe.", sendername);
      		ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		}
		return 1;
	}

	if(strcmp(cmd, "/maskmaha", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	    	if(PlayerInfo[playerid][pMask] == 0)
	    	{
	       		SendClientMessage(playerid, COLOR_GRAD1, "   Sul ei ole prille");
	        	return 1;
	    	}
	    	for(new i = 0; i < MAX_PLAYERS; i++)
   			{
   		    	if(IsPlayerConnected(i))
   		    	{
				ShowPlayerNameTagForPlayer(i, i, true);
				}
			}
			PlayerInfo[playerid][pMaskuse] = 0;
			RemovePlayerAttachedObject(playerid, 2);
			SendClientMessage(playerid, COLOR_WHITE, "Sa v6tsid maski maha [/maskpeale ,et tagasi panna].");
			GetPlayerName(playerid, sendername, sizeof(sendername));
      		format(string, sizeof(string), "* %s paneb maski ära.", sendername);
      		ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		}
		return 1;
	}
__________________
HyperZ is offline  
 

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



All times are GMT. The time now is 10:56 PM.


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