pawn Код:
public OnPlayerUpdate(playerid)
{
if GetPlayerScore(playerid) >= NEWBIESCORE && GetPlayerScore(playerid) <=NEWBIESCORETO*then
{
TextDrawUseBox(Textdraw3, 1);
TextDrawBoxColor(Textdraw3, 0x00000000);
TextDrawSetShadow(Textdraw3,0);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawHideForPlayer(playerid, Textdraw4);
TextDrawHideForPlayer(playerid, Textdraw5);
TextDrawHideForPlayer(playerid, Textdraw6);
TextDrawHideForPlayer(playerid, Textdraw7);
TextDrawHideForPlayer(playerid,Textdraw8);
}
if GetPlayerScore(playerid) >= KILLASCORE && GetPlayerScore(playerid) <=KILLASCORETO*then
{
TextDrawUseBox(Textdraw4,1);
TextDrawBoxColor(Textdraw4, 0x00000000);
TextDrawSetShadow(Textdraw4,0);
TextDrawShowForPlayer(playerid, Textdraw4);
TextDrawHideForPlayer(playerid, Textdraw3);
TextDrawHideForPlayer(playerid, Textdraw5);
TextDrawHideForPlayer(playerid, Textdraw6);
TextDrawHideForPlayer(playerid, Textdraw7);
TextDrawHideForPlayer(playerid,Textdraw8);
}
if GetPlayerScore(playerid) >= YOUNGGSCORE && GetPlayerScore(playerid) <=YOUNGGSCORETO*then
{
TextDrawUseBox(Textdraw5, 1);
TextDrawBoxColor(Textdraw5, 0x00000000);
TextDrawSetShadow(Textdraw5,0);
TextDrawShowForPlayer(playerid, Textdraw5);
TextDrawHideForPlayer(playerid, Textdraw3);
TextDrawHideForPlayer(playerid, Textdraw4);
TextDrawHideForPlayer(playerid, Textdraw6);
TextDrawHideForPlayer(playerid, Textdraw7);
TextDrawHideForPlayer(playerid,Textdraw8);
}
if GetPlayerScore(playerid) >= MOBSTASCORE && GetPlayerScore(playerid) <=MOBSTASCORETO*then
{
TextDrawUseBox(Textdraw6, 1);
TextDrawBoxColor(Textdraw6, 0x00000000);
TextDrawSetShadow(Textdraw6,0);
TextDrawShowForPlayer(playerid, Textdraw6);
TextDrawHideForPlayer(playerid, Textdraw3);
TextDrawHideForPlayer(playerid, Textdraw5);
TextDrawHideForPlayer(playerid, Textdraw4);
TextDrawHideForPlayer(playerid, Textdraw7);
TextDrawHideForPlayer(playerid,Textdraw8);
}
if GetPlayerScore(playerid) >=GANGSTASCORE && GetPlayerScore(playerid) <=GANGSTASCORETO*then
{
TextDrawUseBox(Textdraw7, 1);
TextDrawBoxColor(Textdraw7, 0x00000000);
TextDrawSetShadow(Textdraw7,0);
TextDrawShowForPlayer(playerid, Textdraw7);
TextDrawHideForPlayer(playerid, Textdraw3);
TextDrawHideForPlayer(playerid, Textdraw5);
TextDrawHideForPlayer(playerid, Textdraw6);
TextDrawHideForPlayer(playerid, Textdraw4);
TextDrawHideForPlayer(playerid,Textdraw8);
}
if GetPlayerScore(playerid) >=BOSSSCORE*then
{
TextDrawUseBox(Textdraw8, 1);
TextDrawBoxColor(Textdraw7, 0x00000000);
TextDrawSetShadow(Textdraw7,0);
TextDrawShowForPlayer(playerid, Textdraw7);
TextDrawHideForPlayer(playerid, Textdraw3);
TextDrawHideForPlayer(playerid, Textdraw5);
TextDrawHideForPlayer(playerid, Textdraw6);
TextDrawHideForPlayer(playerid, Textdraw4);
}
return 1;
}