Jump to content

Classic TogglePlayerControllable - Bring back the invincibility !


RaZVaN ^ xD

Recommended Posts

Classic TogglePlayerControllable

BRING BACK THE INVINCIBILITY !


  • Informatii generale:

    • Libraria CTPC readuce posibilitatea de a face un jucator invincibil prin functia TogglePlayerControllable, posibilitate inlaturata din 0.3x . Libraria adauga un nou parametru functiei TogglePlayerControllable, invincibilitatea .

    • In mod implicit, parametrul de invincibilitate este setat pe 1, deci daca includeti libraria CTPC intr-un script care script foloseste TogglePlayerControllable, nu va trebui sa modificati nimic pentru a readuce posibilitatea de a face un jucator invincibil, aceasta fiind activata automat .
    • Cand parametrul de invincibilitate este setat pe 1, jucatorul este invincibil, cand este setat pe 0, TogglePlayerControllable functioneaza normal .



  • Noua sintaxa:


[pawn]TogglePlayerControllable ( playerid, toggle, invincibility = 1 );[/pawn]




  • Exemple de folosire:

[pawn]TogglePlayerControllable ( playerid, 0, 0 ); // Jucatorul va fi blocat .

TogglePlayerControllable ( playerid, 0, 1 ); // Jucatorul va fi blocat si invincibil .

TogglePlayerControllable ( playerid, 0 ); // Jucatorul va fi blocat si invincibi ( motivul este scris mai sus ) .

TogglePlayerControllable ( playerid, 1 ); // Jucatorul va fi deblocat .[/pawn]



  • Credite:

    • SA-MP Team
    • Persoana ce a conceput metoda ALS de HOOKING
    • RaZVaN ^ xD




  • Descarcare:

    • [download]http://pastebin.com/fLXB7c5K[/download]
      • [download]http://www.solidfiles.com/d/611fa3b598/[/download]


Y!M: [email protected] ( nu este ID pt. help-center )

Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...

Felicitari 4.5/5

<a href="http://www.game-state.eu/93.119.30.66:7777/"><img src="http://www.game-state.eu/93.119.30.66:7777/560x95_FFFFFF_FF9900_000000_000000.png" alt="www.Game-State.eu" style="border-style: none;" /></a>          Nume:Fizzy

Link to comment
Share on other sites

Toti cei care ati raspuns mai sus nu dati nici macar un ban pe chestia asta, +1 la post e la putere la voi!

Imi place ca ai folosit switch-uri si este bine aranjat scriptul.

Totusi nu as numi-o o librarie si nu imi mai place ca ai folosit PVars, sunt metode mult mai eficient pentru variabile per-player.

Oricum, bravo.

Persoana ce a conceput metoda ALS de HOOKING

Y_Less.

Just Rock

Link to comment
Share on other sites

  • 4 weeks later...

Totusi nu as numi-o o librarie si nu imi mai place ca ai folosit PVars, sunt metode mult mai eficient pentru variabile per-player.

Daca nu este librarie, ce este, filterscript ? Nu pentru ca tot trebuia folosita o librarie care sa transmita FS-ului momentul cand este apelata functia 'TogglePlayerControllable'

Avand in vedere ca functiile legate de variabilele per jucator nu sunt chemate de 100.000 pe secunda ( chiar si asa, nu ar fi foarte mare diferenta dintre cele doua tipuri de variabile ( ~10ms ) ), nu se va simti nicio diferenta intre variabilele per jucator si cele normale.

Y!M: [email protected] ( nu este ID pt. help-center )

Link to comment
Share on other sites

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.