Help Again xD
#1

Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
	if(_:clickedid == INVALID_TEXT_DRAW)
	{
	    for(new i; i<13; i++) TextDrawHideForPlayer(playerid, Undercover_TD[i]);
	    return 1;
	}
	
	if(clickedid == Undercover_TD[2])
	{
		SetPlayerColor(playerid, 0x00000000);
		SetPlayerSkin(playerid, 29);
		CancelSelectTextDraw(playerid);
		
		for(new i; i<13; i++) TextDrawHideForPlayer(playerid, Undercover_TD[i]);
	}
	if(clickedid == Undercover_TD[3])
	{
	    SetPlayerColor(playerid, 0xFFFFFF00);
		SetPlayerSkin(playerid, 28);
		CancelSelectTextDraw(playerid);
		
		for(new i; i<13; i++) TextDrawHideForPlayer(playerid, Undercover_TD[i]);
	}
	if(clickedid == Undercover_TD[4])
	{
	    SetPlayerColor(playerid, 0xFFFFFF00);
		SetPlayerSkin(playerid, 23);
		CancelSelectTextDraw(playerid);
		
		for(new i; i<13; i++) TextDrawHideForPlayer(playerid, Undercover_TD[i]);
	}
	if(clickedid == Undercover_TD[5])
	{
	    SetPlayerColor(playerid, 0xFFFFFF00);
		SetPlayerSkin(playerid, 6);
		CancelSelectTextDraw(playerid);
		
		for(new i; i<13; i++) TextDrawHideForPlayer(playerid, Undercover_TD[i]);
	}
	if(clickedid == Undercover_TD[6])
	{
	    SetPlayerColor(playerid, 0xFFFFFF00);
		SetPlayerSkin(playerid, 170);
		CancelSelectTextDraw(playerid);
		
		for(new i; i<13; i++) TextDrawHideForPlayer(playerid, Undercover_TD[i]);
	}
	if(clickedid == Undercover_TD[8])
	{
	    SetPlayerColor(playerid, 0xFFFFFF00);
		SetPlayerSkin(playerid, 5);
		CancelSelectTextDraw(playerid);
		
		for(new i; i<13; i++) TextDrawHideForPlayer(playerid, Undercover_TD[i]);
	}
	if(clickedid == Undercover_TD[9])
	{
	    SetPlayerColor(playerid, 0xFFFFFF00);
		SetPlayerSkin(playerid, 4);
		CancelSelectTextDraw(playerid);
		
		for(new i; i<13; i++) TextDrawHideForPlayer(playerid, Undercover_TD[i]);
	}
	if(clickedid == Undercover_TD[10])
	{
	    SetPlayerColor(playerid, 0xFFFFFF00);
		SetPlayerSkin(playerid, 169);
		CancelSelectTextDraw(playerid);
		
		for(new i; i<13; i++) TextDrawHideForPlayer(playerid, Undercover_TD[i]);
	}
	if(clickedid == Undercover_TD[11])
	{
	    SetPlayerColor(playerid, 0xFFFFFF00);
		SetPlayerSkin(playerid, 79);
		CancelSelectTextDraw(playerid);
		
		for(new i; i<13; i++) TextDrawHideForPlayer(playerid, Undercover_TD[i]);
	}
	if(clickedid == Undercover_TD[12])
	{
	    SetPlayerColor(playerid, 0xFFFFFF00);
		SetPlayerSkin(playerid, 33);
		CancelSelectTextDraw(playerid);
		
		for(new i; i<13; i++) TextDrawHideForPlayer(playerid, Undercover_TD[i]);
	}
	
	return 1;
}
Why that it's not working The textdraws are shown...
Reply


Messages In This Thread
Help Again xD - by Mariciuc223 - 19.08.2015, 12:50
Re: Help Again xD - by LazyB0y - 19.08.2015, 15:22
Re: Help Again xD - by Mariciuc223 - 19.08.2015, 17:15
Re: Help Again xD - by Variable™ - 19.08.2015, 17:22
Re: Help Again xD - by Mariciuc223 - 19.08.2015, 18:30
Re: Help Again xD - by Mariciuc223 - 19.08.2015, 19:05
Re: Help Again xD - by Mariciuc223 - 20.08.2015, 06:59
Re: Help Again xD - by Toxik - 20.08.2015, 07:19
Re: Help Again xD - by Evocator - 20.08.2015, 07:59
Re: Help Again xD - by Mariciuc223 - 20.08.2015, 08:39

Forum Jump:


Users browsing this thread: