Jump to content

Matt

VIP
  • Posts

    555
  • Joined

  • Last visited

  • Days Won

    13

Everything posted by Matt

  1. Nu. E imposibil sa restartezi server-ul fara sa dai afara jucatorii de pe el.
  2. Trebuie sa trimiti un query in baza de date (cum ti s-a explicat mai sus): UPDATE `users` SET `VariabilaDeBaniDinBaza`=%d WHERE `Name`='NumeleJucatorului' Poti folosi acel cod si sa adaugi deasupra: new var[256]; @@Leonard ti-a facut un intreg sistem de bani, dar presupun ca deja aveai unul in GM.
  3. for (new i = 0; i != 5; ++i) SendDeathMessageToPlayer(playerid, 1001, 1001, 1001);
  4. new PlayerText:ServerBar[MAX_PLAYERS]; ServerBar[playerid] = CreatePlayerTextDraw(playerid, 326.266326, 435.185211, "~w~FPS:_%d_/_REPORTS:_~r~%d_~w~/_QUESTIONS:_~g~%d_~w~/_PING:_~y~%d_~w~/_TICK:_~b~%d_~w~/_HEALTH:_~r~%.1f_~w~/_ARMOR:_~p~%.1f"); PlayerTextDrawLetterSize(playerid, ServerBar[playerid], 0.18000, 1.275111); PlayerTextDrawAlignment(playerid, ServerBar[playerid], 2); PlayerTextDrawColor(playerid, ServerBar[playerid], -1); PlayerTextDrawSetShadow(playerid, ServerBar[playerid], 0); PlayerTextDrawSetOutline(playerid, ServerBar[playerid], 1); PlayerTextDrawBackgroundColor(playerid, ServerBar[playerid], 255); PlayerTextDrawFont(playerid, ServerBar[playerid], 2); PlayerTextDrawSetProportional(playerid, ServerBar[playerid], 1); PlayerTextDrawSetShadow(playerid, ServerBar[playerid], 0); In momentul in care un jucator s-a logat, verifica daca are admin > 0. Daca are, ii afisezi acest playertext (si modifici tu string-ul conform variabilelor tale), si il actualizezi din secunda in secunda.
  5. Fara viitor deocamdata este, deoarece toti scripterii nostrii nu vor sa treaca de gm ul asta gen bugged si de sistemele invechite...
  6. @@Leonard doar ti-a dat un exemplu, tu ti-l adaptezi singur pentru gm-ul tau.
  7. foreach(new x : Player) { if(PlayerInfo[x][pAdmin] > 0) { // cod } } Asa loop-ul ii va lua doar pe administratori.
  8. Destul de simplu, dar se vede ca ai evoluat, felicitari!
  9. Doar paysafe, ti-am spus.
×
×
  • Create New...