Giter Club home page Giter Club logo

tatm's Introduction

TAtm

SA-MP include helps scripters made atm easier

Tips

  • OnPlayerOnATM callback base of KEY_YES to execute click Y.
  • Must have streamer plugin to work this include.

Functions

ATM:CreateATM(Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz);
SetATMPos(ATM:atmID, Float:x, Float:y, Float:z);
SetATMRotation(ATM:atmID, Float:rx, Float:ry, Float:rz);

GetATMPos(ATM:atmID, Float:x, Float:y, Float:z);
GetATMRotaion(ATM:atmID, Float:rx, Float:ry, Float:rz);

DestroyATM(ATM:atmID);
ShowATMProfile(ATM:atmID);

Callback

public OnPlayerOnATM(playerid)

Example

#include <a_samp>
#include <streamer>
#include <TAtm>

#define DIALOG_ATM (1)

new ATM:g_ATM;

public OnGameModeInit()
{
    g_ATM = CreateATM(100.0, 100.0, 9.0, 1.0, 1.0, 1.0);
    ShowATMProfile(g_ATM);
    return 1;
}

public OnPlayerOnATM(playerid)
{
    ShowPlayerDialog(playerid, DIALOG_ATM, DIALOG_STYLE_LIST, "ATM", "Withdraw\nDeposit\nTransfer", "Select", "Cancel");     
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIALOG_ATM) {
        if(!response) return 1;
        
        SendClientMessage(playerid, -1, "Hi!");
    }
    return 1;
}

Credits

  • SA-MP Team - SA-MP include
  • samp-incogito - Streamer Plugin
  • Me - TAtm include

tatm's People

Contributors

tiyonotfound avatar zaxx4582 avatar

Watchers

 avatar

Forkers

zaxx4582

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.