Originally Posted by IgorLuiz
Acho que nгo й necessбrio uma filterscript, pode colocar em seu GM... vamos lб
Defina a text draw no topo do seu GM.
PHP код:
new PlayerText:TextPatente[MAX_PLAYERS];
Coloque na " public OnPlayerConnect"
PHP код:
TextPatente[playerid] = CreatePlayerTextDraw(playerid, 40.000000,322.000000, "_");
PlayerTextDrawAlignment(playerid, TextPatente[playerid],0);
PlayerTextDrawBackgroundColor(playerid, TextPatente[playerid],0x000000ff);
PlayerTextDrawFont(playerid, TextPatente[playerid],2);
PlayerTextDrawLetterSize(playerid, TextPatente[playerid],0.199999,1.500000);
PlayerTextDrawColor(playerid, TextPatente[playerid],0x00ff00ff);
PlayerTextDrawSetProportional(playerid, TextPatente[playerid],1);
PlayerTextDrawSetShadow(playerid, TextPatente[playerid],1);
PlayerTextDrawSetOutline(playerid, TextPatente[playerid], 1);
Agora adicione na " public OnPlayerSpawn(playerid)"
PHP код:
new str[50];
if(GetPlayerScore(playerid) >= 10)
{
format(str, sizeof(str), "~g~Patente: ~w~Novato");
PlayerTextDrawSetString(playerid, TextPatente[playerid], str);
}
if(GetPlayerScore(playerid) >= 300)
{
format(str, sizeof(str), "~g~Patente: ~w~mediano");
PlayerTextDrawSetString(playerid, TextPatente[playerid], str);
}
if(GetPlayerScore(playerid) >= 600)
{
format(str, sizeof(str), "~g~Patente: ~w~amador");
PlayerTextDrawSetString(playerid, TextPatente[playerid], str);
}
if(GetPlayerScore(playerid) >= 1000)
{
format(str, sizeof(str), "~g~Patente: ~w~master");
PlayerTextDrawSetString(playerid, TextPatente[playerid], str);
}
PlayerTextDrawShow(playerid, PlayerText:TextPatente[playerid]);
|