[HELP]For OnplayerText -
donhu789 - 11.10.2013
pawn Код:
if(PlayerInfo[playerid][Level] >= 0) {
new string[128];
format(string,sizeof(string),"»%s »[%i]: {FFFFFF}%s",PlayerName2(playerid),playerid,text);
SetPlayerChatBubble(playerid, text, 0xFFFFFFFF, 100.0, 10000);
printf("»%s »[%i]: %s", PlayerName2(playerid),playerid,text);
SendClientMessageToAll(GetPlayerColor(playerid),string);
return 0;
}
How i Can make 1 more For Level 1 ? but It else To make if player admin talking too :\
like Regular player Say John: oh hi
And Admin Say John[ADMIN]: Hi
Can anyone Show my how ?
Re: [HELP]For OnplayerText -
EiresJason - 11.10.2013
Is this what you want?
pawn Код:
if(PlayerInfo[playerid][Level] == 0)
{
new string[128];
format(string,sizeof(string),"»%s »[%i]: {FFFFFF}%s",PlayerName2(playerid),playerid,text);
SetPlayerChatBubble(playerid, text, 0xFFFFFFFF, 100.0, 10000);
printf("»%s »[%i]: %s", PlayerName2(playerid),playerid,text);
SendClientMessageToAll(GetPlayerColor(playerid),string);
return 0;
}
else if(PlayerInfo[playerid][Level] >= 1)
{
new string[128];
format(string,sizeof(string),"»%s[ADMIN] »[%i]: {FFFFFF}%s",PlayerName2(playerid),playerid,text);
SetPlayerChatBubble(playerid, text, 0xFFFFFFFF, 100.0, 10000);
printf("»%s »[%i]: %s", PlayerName2(playerid),playerid,text);
SendClientMessageToAll(GetPlayerColor(playerid),string);
return 0;
}
Re: [HELP]For OnplayerText -
donhu789 - 11.10.2013
hmmm Let My Try it
Re: [HELP]For OnplayerText -
donhu789 - 11.10.2013
ok It Works But How i add more For more level ?
Re: [HELP]For OnplayerText -
EiresJason - 11.10.2013
Follow this format. It will allow you to add/remove to/from it as you wish. Read the comments.
pawn Код:
if(PlayerInfo[playerid][Level] == 0)
{
new string[128];
format(string,sizeof(string),"»%s »[%i]: {FFFFFF}%s",PlayerName2(playerid),playerid,text);
SetPlayerChatBubble(playerid, text, 0xFFFFFFFF, 100.0, 10000);
printf("»%s »[%i]: %s", PlayerName2(playerid),playerid,text);
SendClientMessageToAll(GetPlayerColor(playerid),string);
return 0;
}
else if(PlayerInfo[playerid][Level] >= 1)
{
new string[128];
format(string,sizeof(string),"»%s[ADMIN] »[%i]: {FFFFFF}%s",PlayerName2(playerid),playerid,text);
SetPlayerChatBubble(playerid, text, 0xFFFFFFFF, 100.0, 10000);
printf("»%s »[%i]: %s", PlayerName2(playerid),playerid,text);
SendClientMessageToAll(GetPlayerColor(playerid),string);
return 0;
}
else if(PlayerInfo[playerid][Level] >= 2 && PlayerInfo[playerid][Level] < 4) //if the player's level is greater or equal to 2 AND less than 4. Basically: Is the player's level 2 or 3.
{
new string[128];
format(string,sizeof(string),"»%s[Senior Admin] »[%i]: {FFFFFF}%s",PlayerName2(playerid),playerid,text);
SetPlayerChatBubble(playerid, text, 0xFFFFFFFF, 100.0, 10000);
printf("»%s »[%i]: %s", PlayerName2(playerid),playerid,text);
SendClientMessageToAll(GetPlayerColor(playerid),string);
return 0;
}
Re: [HELP]For OnplayerText -
donhu789 - 11.10.2013
OK realy Thank You I Reped you
Re: [HELP]For OnplayerText -
EiresJason - 11.10.2013
Np