samp.directory
← Skrypty i biblioteki

ScavengeSurvive/button

Simple buttons for players to interact with, more minimal than a pickup and more elegant than a command.

Biblioteka★ 5zaktualizowano sie 2026MITPawnsampctl
Otwórz na GitHubie

Zainstaluj za pomocą sampctl

sampctl package install ScavengeSurvive/button

Uruchom to w folderze swojego projektu. sampctl pobiera pakiet i to, od czego zależy.

Wypróbuj w kompilatorze Pawn →

Dodaje jej pliki include, razem z bibliotekami, od których zależy, do kompilatora Pawn w twojej przeglądarce, gotowe do dołączenia w skrypcie.

README.md

Button

Simple buttons for players to interact with, more minimal than a pickup and more elegant than a command.

A simple framework using streamer areas and key checks to give the in-game effect of physical buttons that players must press instead of using a command. It was created as an alternative to the default GTA:SA spinning pickups for a few reasons:

  • A player might want to stand where a pickup is but not use it (if the pickup is a building entrance or interior warp, he might want to stand in the doorway without being teleported.)
  • Making hidden doors or secrets that can only be found by walking near the button area and seeing the textdraw. (or spamming F!)
  • Spinning objects don't really add immersion to a role-play environment!

Installation

Simply install to your project:

sampctl package install ScavengeSurvive/button

Include in your code and begin using the library:

#include <button>

Testing

To test, simply run the package:

sampctl package run

And observe the y_testing output.

Ta strona jest zbudowana z tego, co GitHub publikuje o repozytorium. samp.directory nie hostuje kodu. Zgłoś problem z tym wpisem

ScavengeSurvive/button: Biblioteka SA-MP | samp.directory