man olha essas textdraw so mostra pra 1 player n para todos :S
e tipo eu tentei tirar o PlayerTextDraw e por apenas TextDraw em todos mais deu mais de 24 warnings e 11 erros , n consigo colocar o codigo dos erros aqui porque tem mais de 11 mil caracters
poderia me ajudar ?
onplayerdeath
e tipo eu tentei tirar o PlayerTextDraw e por apenas TextDraw em todos mais deu mais de 24 warnings e 11 erros , n consigo colocar o codigo dos erros aqui porque tem mais de 11 mil caracters
poderia me ajudar ?
PHP Code:
new PlayerText:HUD7[MAX_PLAYERS];
new PlayerText:HUD8[MAX_PLAYERS];
new PlayerText:HUD9[MAX_PLAYERS];
PHP Code:
//========================================
// Criar PlayerTextDraw
HUD7[playerid] = CreatePlayerTextDraw(playerid, 511.485900, 61.176670, "_");
PlayerTextDrawLetterSize(playerid, HUD7[playerid], 0.235199, 1.144533);
PlayerTextDrawAlignment(playerid, HUD7[playerid], 1);
PlayerTextDrawColor(playerid, HUD7[playerid], -1);
PlayerTextDrawSetShadow(playerid, HUD7[playerid], 0);
PlayerTextDrawSetOutline(playerid, HUD7[playerid], 0);
PlayerTextDrawBackgroundColor(playerid, HUD7[playerid], 255);
PlayerTextDrawFont(playerid, HUD7[playerid], 2);
PlayerTextDrawSetProportional(playerid, HUD7[playerid], 1);
PlayerTextDrawSetShadow(playerid, HUD7[playerid], 0);
HUD8[playerid] = CreatePlayerTextDraw(playerid, 527.853027, 73.310012, "_");
PlayerTextDrawLetterSize(playerid, HUD8[playerid], 0.235199, 1.144533);
PlayerTextDrawAlignment(playerid, HUD8[playerid], 1);
PlayerTextDrawColor(playerid, HUD8[playerid], -1);
PlayerTextDrawSetShadow(playerid, HUD8[playerid], 0);
PlayerTextDrawSetOutline(playerid, HUD8[playerid], 0);
PlayerTextDrawBackgroundColor(playerid, HUD8[playerid], 255);
PlayerTextDrawFont(playerid, HUD8[playerid], 2);
PlayerTextDrawSetProportional(playerid, HUD8[playerid], 1);
PlayerTextDrawSetShadow(playerid, HUD8[playerid], 0);
HUD9[playerid] = CreatePlayerTextDraw(playerid, 508.126434, 85.256683, "_");
PlayerTextDrawLetterSize(playerid, HUD9[playerid], 0.235199, 1.144533);
PlayerTextDrawAlignment(playerid, HUD9[playerid], 1);
PlayerTextDrawColor(playerid, HUD9[playerid], -1);
PlayerTextDrawSetShadow(playerid, HUD9[playerid], 0);
PlayerTextDrawSetOutline(playerid, HUD9[playerid], 0);
PlayerTextDrawBackgroundColor(playerid, HUD9[playerid], 255);
PlayerTextDrawFont(playerid, HUD9[playerid], 2);
PlayerTextDrawSetProportional(playerid, HUD9[playerid], 1);
PlayerTextDrawSetShadow(playerid, HUD9[playerid], 0);
//========================================
PHP Code:
PlayerTextDrawHide(playerid, HUD7[playerid]); // esconder os HUDS quando morrer
PlayerTextDrawHide(playerid, HUD8[playerid]); // esconder os HUDS quando morrer
PlayerTextDrawHide(playerid, HUD9[playerid]); // esconder os HUDS quando morrer
KillTimer(Status(playerid)); // Parar de chamar a public "Status"
Tempo[playerid] = 0; // setar o tempo para 0 novamente
PHP Code:
forward Status(playerid);
public Status(playerid)
{
new String[128], Float:Health;
GetPlayerHealth(playerid, Health);
//
/*
format(String, sizeof(String), "alive_time: ~w~%d", Tempo[playerid]);
PlayerTextDrawSetString(playerid, HUD7[playerid], String);
*/
format(String, sizeof(String), "alive_time: ~w~%d:%d.",Tempo[playerid]);
PlayerTextDrawSetString(playerid, HUD7[playerid], String);
//
format(String, sizeof(String), "blood: ~w~%0.0f",Health);
PlayerTextDrawSetString(playerid, HUD8[playerid], String);
//
format(String, sizeof(String), "name:_~w~%s",Nome(playerid));
PlayerTextDrawSetString(playerid, HUD9[playerid], String);
//
Tempo[playerid]++;
return 1;
}
Aucun commentaire:
Enregistrer un commentaire