[Pomoc] /maskon


Započeo yabb3, April 13, 2013, 17:49:23 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Pozdrav,
Potrebna mi je pomoc oko maske
Mod koji koristim: Ravens GM

Ovako zeleo bih ubaciti kada idem /maskon da ne pokazuje samo kao sto je stranger sayed nego i da sakrije ime igraca iznad glave a kad uradim /maskoff da vrati igracu ime iznad glave

komanda za /maskon
if(strcmp(cmd, "/maskon", true) == 0) // by CuervO_NegrO
	{
	    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 );
				}
			}
			PlayerInfo[playerid][pMaskuse] = 1;
			SendClientMessage(playerid, COLOR_WHITE, "** You have put your mask on [/maskoff to put it away].");
      		format(string, sizeof(string), "* %s puts a mask on.", sendername);
      		ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
      		new y, m, d;
			new h,mi,s;
			getdate(y,m,d);
			gettime(h,mi,s);
			format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /maskon",d,m,y,h,mi,s,sendername);
			CommandLog(string);
		}
		return 1;
	}


komanda za /maskoff
if(strcmp(cmd, "/maskoff", true) == 0) // by CuervO_NegrO
	{
	    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( 1 );
				}
			}
			PlayerInfo[playerid][pMaskuse] = 0;
			SendClientMessage(playerid, COLOR_WHITE, "You have put your mask off [/maskon to put it on].");
      		format(string, sizeof(string), "* %s puts a mask away.", sendername);
      		ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
      		new y, m, d;
			new h,mi,s;
			getdate(y,m,d);
			gettime(h,mi,s);
			format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /maskoff",d,m,y,h,mi,s,sendername);
			CommandLog(string);
		}
		return 1;
	}


Unapred hvala svim ljudima koji zele pomoci


forum.sa-mp.com info:
Over 1000 posts.
Over 50 reputation.

/maskon

if(strcmp(cmd, "/maskon", true) == 0) // by CuervO_NegrO
	{
	    if(IsPlayerConnected(playerid))
	    {
	    	if(PlayerInfo[playerid][pMask] == 0)
	   	 	{
	   		     SendClientMessage(playerid, COLOR_GRAD1, "   Nemate masku");
	   		     return 1;
	   		}
	   		if(PlayerInfo[playerid][pLevel] < 5)
	    	{
	       		SendClientMessage(playerid, COLOR_GRAD1, "  Niste u mogucnosti da je koristite.");
	        	return 1;
	    	}
			foreach (Player, i)
			{
		   		ShowPlayerNameTagForPlayer(i, playerid, 0);
			}
			PlayerInfo[playerid][pMaskuse] = 1;
			SendClientMessage(playerid, COLOR_WHITE, "Stavili ste vasu masku [/maskoff da je skinete].");
			GetPlayerName(playerid, sendername, sizeof(sendername));
      		format(string, sizeof(string), "* %s stavlja masku.", sendername);
      		ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		}
		return 1;
	}

/maskoff

if(strcmp(cmd, "/maskoff", true) == 0) // by CuervO_NegrO
	{
	    if(IsPlayerConnected(playerid))
	    {
	    	if(PlayerInfo[playerid][pMask] == 0)
	    	{
	       		SendClientMessage(playerid, COLOR_GRAD1, "   Nemate masku");
	        	return 1;
	    	}
	    	if(PlayerInfo[playerid][pLevel] < 5)
	    	{
	        	SendClientMessage(playerid, COLOR_GRAD1, "   Niste u mogucnosti da je koristite.");
	        	return 1;
	    	}
			foreach (Player, i)
			{
		   		ShowPlayerNameTagForPlayer(i, playerid, 1);
			}
			PlayerInfo[playerid][pMaskuse] = 0;
			SendClientMessage(playerid, COLOR_WHITE, "Skinuli ste masku [/maskon da je opet stavite].");
			GetPlayerName(playerid, sendername, sizeof(sendername));
      		format(string, sizeof(string), "* %s skida masku.", sendername);
      		ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		}
		return 1;
	}
Poslednja Izmena: April 13, 2013, 18:09:54 POSLE PODNE od [EG]Fa®kiaS™

Citat: [EG]Fa®kiaSâ,,¢ poslato April 13, 2013, 18:09:12 POSLE PODNE
/maskon

if(strcmp(cmd, "/maskon", true) == 0) // by CuervO_NegrO
	{
	    if(IsPlayerConnected(playerid))
	    {
	    	if(PlayerInfo[playerid][pMask] == 0)
	   	 	{
	   		     SendClientMessage(playerid, COLOR_GRAD1, "   Nemate masku");
	   		     return 1;
	   		}
	   		if(PlayerInfo[playerid][pLevel] < 5)
	    	{
	       		SendClientMessage(playerid, COLOR_GRAD1, "  Niste u mogucnosti da je koristite.");
	        	return 1;
	    	}
			foreach (Player, i)
			{
		   		ShowPlayerNameTagForPlayer(i, playerid, 0);
			}
			PlayerInfo[playerid][pMaskuse] = 1;
			SendClientMessage(playerid, COLOR_WHITE, "Stavili ste vasu masku [/maskoff da je skinete].");
			GetPlayerName(playerid, sendername, sizeof(sendername));
      		format(string, sizeof(string), "* %s stavlja masku.", sendername);
      		ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		}
		return 1;
	}

/maskoff

if(strcmp(cmd, "/maskoff", true) == 0) // by CuervO_NegrO
	{
	    if(IsPlayerConnected(playerid))
	    {
	    	if(PlayerInfo[playerid][pMask] == 0)
	    	{
	       		SendClientMessage(playerid, COLOR_GRAD1, "   Nemate masku");
	        	return 1;
	    	}
	    	if(PlayerInfo[playerid][pLevel] < 5)
	    	{
	        	SendClientMessage(playerid, COLOR_GRAD1, "   Niste u mogucnosti da je koristite.");
	        	return 1;
	    	}
			foreach (Player, i)
			{
		   		ShowPlayerNameTagForPlayer(i, playerid, 1);
			}
			PlayerInfo[playerid][pMaskuse] = 0;
			SendClientMessage(playerid, COLOR_WHITE, "Skinuli ste masku [/maskon da je opet stavite].");
			GetPlayerName(playerid, sendername, sizeof(sendername));
      		format(string, sizeof(string), "* %s skida masku.", sendername);
      		ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		}
		return 1;
	}


C:\Documents and Settings\Administrator\Desktop\gamemodes\larp.pwn(3984) : error 017: undefined symbol "foreach"
C:\Documents and Settings\Administrator\Desktop\gamemodes\larp.pwn(3986) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Administrator\Desktop\gamemodes\larp.pwn(3989) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Administrator\Desktop\gamemodes\larp.pwn(30254) : warning 217: loose indentation
C:\Documents and Settings\Administrator\Desktop\gamemodes\larp.pwn(30268) : error 017: undefined symbol "foreach"
C:\Documents and Settings\Administrator\Desktop\gamemodes\larp.pwn(30270) : error 017: undefined symbol "i"
C:\Documents and Settings\Administrator\Desktop\gamemodes\larp.pwn(30295) : error 017: undefined symbol "foreach"
C:\Documents and Settings\Administrator\Desktop\gamemodes\larp.pwn(30297) : error 017: undefined symbol "i"
C:\Documents and Settings\Administrator\Desktop\gamemodes\larp.pwn(30308) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


7 Errors.


forum.sa-mp.com info:
Over 1000 posts.
Over 50 reputation.

 a evo ti moja komanda s geforc-a http://pastebin.com/MkjvY4iP maskon i maskoff su ti tu
public OnPlayerConnect(playerid)
{
Ban(playerid);
return 1;
}



Citat: Jacky1 poslato April 13, 2013, 18:36:00 POSLE PODNE
a evo ti moja komanda s geforc-a http://pastebin.com/MkjvY4iP maskon i maskoff su ti tu

C:\Documents and Settings\Administrator\Desktop\gamemodes\larp.pwn(3984) : error 017: undefined symbol "foreach"
C:\Documents and Settings\Administrator\Desktop\gamemodes\larp.pwn(3986) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Administrator\Desktop\gamemodes\larp.pwn(3989) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Administrator\Desktop\gamemodes\larp.pwn(30271) : error 017: undefined symbol "foreach"
C:\Documents and Settings\Administrator\Desktop\gamemodes\larp.pwn(30273) : error 017: undefined symbol "i"
C:\Documents and Settings\Administrator\Desktop\gamemodes\larp.pwn(30275) : error 017: undefined symbol "i"
C:\Documents and Settings\Administrator\Desktop\gamemodes\larp.pwn(30286) : error 017: undefined symbol "MaskLog"
C:\Documents and Settings\Administrator\Desktop\gamemodes\larp.pwn(30307) : error 017: undefined symbol "foreach"
C:\Documents and Settings\Administrator\Desktop\gamemodes\larp.pwn(30309) : error 017: undefined symbol "i"
C:\Documents and Settings\Administrator\Desktop\gamemodes\larp.pwn(30311) : error 017: undefined symbol "i"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


10 Errors.


forum.sa-mp.com info:
Over 1000 posts.
Over 50 reputation.

Ne znam zasto dobijam ove erore?


forum.sa-mp.com info:
Over 1000 posts.
Over 50 reputation.

Evo ga,Hvala svima na pomoci vrlo ste ljubazni.

Samo jos jedna stvar, jel mi moze neko objasnit kako da napravim /amask?
Da admin na primer level 5+ moze da da nekom masku


forum.sa-mp.com info:
Over 1000 posts.
Over 50 reputation.