Jump to content
  • 0

VIP/Admin


Deejaybwg

Question

9 answers to this question

Recommended Posts

cautati:

if (realchat)
si sub
GetPlayerName(playerid, sendername, sizeof(sendername));
puneti:

			if (PlayerInfo[playerid][pDonateRank] >= 1 && PlayerInfo[playerid][pHelper] == 0 && PlayerInfo[playerid][pAdmin] == 0)
			{
				format(string, sizeof(string), "[V.I.P]%s Says: %s", sendername, text);
				ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
				printf("%s", string);
			}
						else if (PlayerInfo[playerid][pHelper] >= 1 && PlayerInfo[playerid][pAdmin] == 0)
			{
				format(string, sizeof(string), "[Helper]%s Says: %s", sendername, text);
				ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
				printf("%s", string);
			}
			else if (PlayerInfo[playerid][pAdmin] >= 1)
			{
				format(string, sizeof(string), "[Admin]%s Says: %s", sendername, text);
				ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
				printf("%s", string);
			}
			else if (PlayerInfo[playerid][pAdmin] == 0 && PlayerInfo[playerid][pDonateRank] == 0 && PlayerInfo[playerid][pHelper] == 0)
			{
				format(string, sizeof(string), "%s Says: %s", sendername, text);
				ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
				printf("%s", string);
			}

Link to comment
Share on other sites

Am facut cum este aici dar daca sunt si user si admin apare de 2 ori in chat ce scriu si ca admin si ca user !

am facut asa

	if (realchat)
	{
	    if(gPlayerLogged[playerid] == 0)
	    {
	        return 0;
      	}
		GetPlayerName(playerid, sendername, sizeof(sendername));
		format(string, sizeof(string), "{00C0FF}[%s {00C0FF}Spune]:{FFFFFF} %s", sendername, text);
		ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
		if (PlayerInfo[playerid][pDonateRank] >= 1 && PlayerInfo[playerid][pHelper] == 0 && PlayerInfo[playerid][pAdmin] == 0)
		{
		format(string, sizeof(string), "[V.I.P]%s Says: %s", sendername, text);
		ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
		printf("%s", string);
		}
		else if (PlayerInfo[playerid][pHelper] >= 1 && PlayerInfo[playerid][pAdmin] == 0)
		{
		format(string, sizeof(string), "[Helper]%s Says: %s", sendername, text);
		ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
		printf("%s", string);
		}
		else if (PlayerInfo[playerid][pAdmin] >= 1)
		{
		format(string, sizeof(string), "[Admin]%s Says: %s", sendername, text);
		ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
		printf("%s", string);
		}
		return 0;
	}
	return 1;
}

Link to comment
Share on other sites

Foloseste 0Admin

fa asa:

la OnPlayerText:

if(GetPlayerLevel(playerid)  == 1)
{
new msgadmin[30];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(msgadmin,sizeof(msgadmin),"[Admin]:%s say:%s",name,text);
SendClientMessageToAll(COLOR_RED,msgadmin);
}
else if(GetPlayerVip(playerid) ==1)
{
new msgvip[29];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(msgvip,sizeof(msgvip),"[V.I.P]%s say:%s",name,text);
SendClientMessageToAll(COLOR_RED,msgvip);
}

o Bagi la public OnPLayerText(...)

intre

{

}

sper sa-ti mearga

si iti sugere sa iei Colors de aici includele

http://www.xerom-zone.ro/index.php?action=include

New GameMode In Development!-Romania Team Gang War-100%!...Datimi doua Motive afrimative de ce sa-l postez si-l postez...

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.