01.01.2010, 04:17
I don't know what is wrong I made this and when ever player writes something it
All the textmessage shows at the same time
All the textmessage shows at the same time
pawn Код:
if(GetPlayerScore(playerid) >=0)
{
new str[128], Pname[24];
GetPlayerName(playerid, Pname, 24);
format(str, sizeof(str), "[Private]%s: %s", Pname, text);
SendClientMessageToAll(COLOR_ORANGE, str);
}
if(GetPlayerScore(playerid) >=10)
{
new str[128], Pname[24];
GetPlayerName(playerid, Pname, 24);
format(str, sizeof(str), "[Corporal]%s: %s", Pname, text);
SendClientMessageToAll(COLOR_ORANGE, str);
}
if(GetPlayerScore(playerid) >=20)
{
new str[128], Pname[24];
GetPlayerName(playerid, Pname, 24);
format(str, sizeof(str), "[Sergeant]%s: %s", Pname, text);
SendClientMessageToAll(COLOR_ORANGE, str);
}
if(GetPlayerScore(playerid) >=30)
{
new str[128], Pname[24];
GetPlayerName(playerid, Pname, 24);
format(str, sizeof(str), "[Lieutenant]%s: %s", Pname, text);
SendClientMessageToAll(COLOR_ORANGE, str);
}
if(GetPlayerScore(playerid) >=40)
{
new str[128], Pname[24];
GetPlayerName(playerid, Pname, 24);
format(str, sizeof(str), "[Major]%s: %s", Pname, text);
SendClientMessageToAll(COLOR_ORANGE, str);
}
if(GetPlayerScore(playerid) >=50)
{
new str[128], Pname[24];
GetPlayerName(playerid, Pname, 24);
format(str, sizeof(str), "[Colonel]%s: %s", Pname, text);
SendClientMessageToAll(COLOR_ORANGE, str);
}
if(GetPlayerScore(playerid) >=70)
{
new str[128], Pname[24];
GetPlayerName(playerid, Pname, 24);
format(str, sizeof(str), "[LieutenantColonel]%s: %s", Pname, text);
SendClientMessageToAll(COLOR_ORANGE, str);
}
if(GetPlayerScore(playerid) >=90)
{
new str[128], Pname[24];
GetPlayerName(playerid, Pname, 24);
format(str, sizeof(str), "[MajorGeneral]%s: %s", Pname, text);
SendClientMessageToAll(COLOR_DARKRED, str);
}
if(GetPlayerScore(playerid) >=110)
{
new str[128], Pname[24];
GetPlayerName(playerid, Pname, 24);
format(str, sizeof(str), "[General]%s: %s", Pname, text);
SendClientMessageToAll(COLOR_DARKRED, str);
}
if(GetPlayerScore(playerid) >=210)
{
new str[128], Pname[24];
GetPlayerName(playerid, Pname, 24);
format(str, sizeof(str), "[GeneralOfTheArmy]%s: %s", Pname, text);
SendClientMessageToAll(COLOR_RED, str);
}
return 0;