PHP код:
new PlayerText:Dinhero[playerid]; // new
// OnPlayerConnect(playerid)
Dinhero[playerid] = CreatePlayerTextDraw(playerid, 553.000000, 74.000000, "$00000000");
PlayerTextDrawAlignment(playerid, Dinhero[playerid], 2);
PlayerTextDrawBackgroundColor(playerid, Dinhero[playerid], 16843263);
PlayerTextDrawFont(playerid, Dinhero[playerid], 2);
PlayerTextDrawLetterSize(playerid, Dinhero[playerid], 0.440000, 2.799999);
PlayerTextDrawColor(playerid, Dinhero[playerid], 8521215);
PlayerTextDrawSetOutline(playerid, Dinhero[playerid], 1);
PlayerTextDrawSetProportional(playerid, Dinhero[playerid], 1);
// OnPlayerSpawn(playerid)
PlayerTextDrawShow(playerid, Dinhero[playerid]);
// EXMPLOS
Dinhero[playerid] += 1; // vai dar mais 1
Dinhero[playerid] -= 1; // vai dar menos 1
Dinhero[playerid] += 20000; // vai dar mais 20000
// OnPlayerUpdate(playerid), OU alguma stock,
new Dinherocash[MAX_PLAYERS];
format(Dinherocash, sizeof(Dinherocash), "$ %d", Dinhero[playerid]);
PlayerTextDrawSetString(playerid, Dinhero[playerid], Dinherocash);
// SALVAMENTO, (bom vou usar DOF2 pq e facin)
DOF2_SetInt(pArquivos, "Dinhero", Dinhero[playerid]); // salvar
Dinhero[playerid] = DOF2_GetInt(pArquivos, "Dinhero"); // carregar