Results 1 to 1 of 1

Thread: [Scripting] Pickup Teleportacija

  1. #1
    Retired ::ZeN::'s Avatar
    Join Date
    May 2011
    Location
    Београд
    Posts
    3,828
    Karma
    80

    [Scripting] Pickup Teleportacija

    Sada cu vam pokazati kako da napravite da kada pokupite Pickup da vas teleportira.
    Pratite sve korak po korak!
    1. Udjite u igru ( Debug ili Obicno ), otidjite do mjesta gdje zelite da vam stoji Pickup, i ukucajte

    Code:
    /save TelePickup
    Nakon toga otidjite do mjesta gdje zelite da vas teleportira i ukucajte

    Code:
    /save TeleportP
    2. Izadjite iz igre i otidjite u

    Code:
    My Documents\GTA San Andreas User Files\SAMP
    Tu se nalaze pozicije ( savedpositions.txt ), nakon sto to otvorite trebate dobiti nesto ovako:

    Code:
    AddPlayerClass(61,1716.3490,-1880.2452,13.5662,88.3086,0,0,0,0,0,0); // TelePickup
    AddPlayerClass(61,1716.3490,-1880.2452,13.2131,21.2013,0,0,0,0,0,0); // TeleportP
    3. Otvorite Svoju skriptu ( ako je nemate onda pritisnite new )
    Na vrh dodajte

    Code:
    new telepickup1;
    4. Pritisnite CTRL+F i nadjite

    Code:
    public OnGameModeInit
    Ispod "{" Dodajte

    Code:
    telepickup1 = CreatePickup(1239, 19, 1716.3490,-1880.2452,13.5662);
    5.Nadjite

    Code:
    OnPlayerPickUpPickup(playerid, pickupid)
    Ispod "{" dodajte

    Code:
    if(pickupid == telepickup1) //  ID Pickupa
        {
           SetPlayerPos(playerid, 1716.3490,-1880.2452,13.2131); // Tu je funkcija za teleportaciju 
           SendClientMessage(playerid, 0xFFFF00FF, "Teleportirani ste do ...");
         return 1;
        }
    Last edited by Cyber Shark; 29.12.12 at 03:09. Reason: Update baze
    Nemanja Velickovic

    EX CyberShark.RS Administrator
    Studentski predstavnik u Studentskom parlamentu Ekonomskog fakulteta, Univerziteta u Beogradu
    Clan organizacije ''Grupa za SPEKOF''
    Clan ''Saveza studenata Beograda''
    Trenutno se bavim web designom i social-media marketingom.
    Za vise informacija na [email protected]

Similar Threads

  1. .Lua scripting
    By Slash in forum Web Development ~ Programiranje
    Replies: 1
    Last Post: 24.02.13, 13:48
  2. AMX Scripting tutorial
    By <<< DAX >>> in forum Game Programiranje
    Replies: 27
    Last Post: 09.02.13, 01:39
  3. [SA:MP] [Scripting] Pljacka Banke
    By ::ZeN:: in forum Uputstva
    Replies: 0
    Last Post: 13.02.12, 14:31
  4. [SA:MP] [Scripting] Odbrojavanje
    By ::ZeN:: in forum Uputstva
    Replies: 0
    Last Post: 13.02.12, 14:28
  5. [SA:MP] Organizacija Scripting
    By ::ZeN:: in forum Uputstva
    Replies: 0
    Last Post: 12.02.12, 19:34

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •