Jump to content
  • 0

Help


.shadoW

Question

Nick: [sG]MefX

Problema: Am facut ca in chat la admini si vip sa apara [A] [V] dar nu reusesc sa fac daca playerul are si admin si vip [A+V]

Erori / warnings: ----

Lini/script:[pawn]SetPlayerChatBubble(playerid, text, 0xFF9900AA, 200.0, 10000);

    if(AccInfo[playerid][Level] && AccInfo[playerid][Hide] == 0)

{

switch(AccInfo[playerid][Level])

{

case 11:

{

format(PText, 256, "[%d][{FF0000}Founder{FFFFFF}]: %s",playerid, text);

SendPlayerMessageToAll(playerid, PText);

return 0;

}

case 10:

{

format(PText, 256, "[%d][{FF0000}Owner{FFFFFF}]: %s",playerid, text);

SendPlayerMessageToAll(playerid, PText);

return 0;

}

case 1..9:

{

format(PText, 256, "[%d][{FF0000}A{FFFFFF}]: %s", playerid, text);

SendPlayerMessageToAll(playerid, PText);

return 0;

}

}

}

else if(AccInfo[playerid][pVip] >= 1)

{

format(PText, 256, "[%d][{FF0000}V{FFFFFF}]: %s", playerid, text);

SendPlayerMessageToAll(playerid, PText);

        return 0;

}

else

{

format(PText, 256, "[%d]:%s", playerid, text);

SendPlayerMessageToAll(playerid, PText);

return 0;

}

if( AccInfo[playerid][Level] >= 1  && AccInfo[playerid][pVip] >= 1 )

{

format(PText, 256, "{FFFFFF}[{FF0000}A{FFFFFF}+{FF0000}V{FFFFFF}][%d]: %s", playerid, text);

SendPlayerMessageToAll(playerid, PText);

        return 0;

}

return 1;

}[/pawn]

Ai incercat sa rezolvi singur ?: Da

 

logo.png

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

else if(AccInfo[playerid][pVip] >= 1)
	{
		format(PText, 256, "[%d][{FF0000}V{FFFFFF}]: %s", playerid, text);
		SendPlayerMessageToAll(playerid, PText);
        return 0;
	}
	else if( AccInfo[playerid][Level] >= 1  && AccInfo[playerid][pVip] >= 1 )
 	{
		format(PText, 256, "{FFFFFF}[{FF0000}A{FFFFFF}+{FF0000}V{FFFFFF}][%d]: %s", playerid, text);
		SendPlayerMessageToAll(playerid, PText);
        return 0;
	else
	{
		format(PText, 256, "[%d]:%s", playerid, text);
		SendPlayerMessageToAll(playerid, PText);
		return 0;
	}
	}
	return 1;
	}

EDIT: Topic inchis , 48h+ fara reply.

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.