SA-MP Forums Archive
Help /Maskon - 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: Help /Maskon (/showthread.php?tid=288843)



Help /Maskon - [Headless] - 09.10.2011

Is there something wrong with this?
When I /maskon the name above the player is on and not hidden
Код:
	if(strcmp(cmd, "/maskon", true) == 0) 
	{
	    if(IsPlayerConnected(playerid))
	    {
	    	if(PlayerInfo[playerid][pMask] == 0)
	   	 	{
	   		     SendClientMessage(playerid, COLOR_GRAD1, "** You don't have a mask");
	   		     return 1;
	   		}
	   		if(PlayerInfo[playerid][pLevel] < 5)
	    	{
	       		SendClientMessage(playerid, COLOR_GRAD1, "** You are not able to use it.");
	        	return 1;
	    	}
   for(new i = 0; i < MAX_PLAYERS; i++)
   			{
   		    	if(IsPlayerConnected(i))
   		    	{
        ShowNameTags( 0 );
				}
			}



Re: Help /Maskon - =WoR=G4M3Ov3r - 09.10.2011

PHP код:
ShowPlayerNameTagForPlayer(playeridifalse); 
instead of

PHP код:
ShowNameTags); 



Re: Help /Maskon - [Headless] - 09.10.2011

Quote:
Originally Posted by =WoR=G4M3Ov3r
Посмотреть сообщение
PHP код:
ShowPlayerNameTagForPlayer(playeridifalse); 
instead of

PHP код:
ShowNameTags); 
Thank-you very much +1 rep