27.08.2010, 13:08
Em public OnGameModeInit()
No Topo Do GM
no final do GM
Agora em On Player Update
OnPlayerConnect
pawn Код:
new string[256];
format(string, 256, " ~w~Kills:~r~ %d ~w~Deaths:~r~ %d ~w~Level:~r~ %d ~w~Exp:~r~ %d ~w~Estudos:~r~ %d", pap_CarregarInt(playerid, "Matou"), pap_CarregarInt(playerid, "Morreu"), pap_CarregarInt(playerid, "Level"), pap_CarregarInt(playerid, "Experiencia"), pap_CarregarInt(playerid, "Estudos"));
Infos = TextDrawCreate(0,421.5,string);
TextDrawUseBox(Infos,1);
TextDrawBoxColor(Infos,0x00000066);
TextDrawTextSize(barra,800,400);
TextDrawAlignment(Infos,0);
TextDrawBoxColor(barra, 126); //Cor do fundo
TextDrawBackgroundColor(Infos,0x000000ff);
TextDrawFont(Infos,1);
TextDrawColor(Infos,0xffffffff);
TextDrawSetOutline(Infos,1);
TextDrawSetProportional(Infos,1);
TextDrawSetShadow(Infos,1);
pawn Код:
forward ATT();
pawn Код:
public ATT()
{
TextDrawHideForPlayer(playerid, Infos);
new string[256];
format(string, 256, " ~w~Kills:~r~ %d ~w~Deaths:~r~ %d ~w~Level:~r~ %d ~w~Exp:~r~ %d ~w~Estudos:~r~ %d", pap_CarregarInt(playerid, "Matou"), pap_CarregarInt(playerid, "Morreu"), pap_CarregarInt(playerid, "Level"), pap_CarregarInt(playerid, "Experiencia"), pap_CarregarInt(playerid, "Estudos"));
TextDrawSetString(Infos, string);
TextDrawShowForPlayer(playerid, Infos);
pawn Код:
public OnPlayerUpdate(playerid)
{
ATT();
return 1;
}
pawn Код:
ATT();