Interiors?
#8

If you want to understand this scripts, i'll give you some informations (not in the pawn code) so I hope, you will learn more with our famous, helpfull wiki-samp.
pawn Код:
#include <a_samp>

new SFPD; // San Fiero : Police Department.
new ESFPD; // Exit San Fiero : Police Department.

public OnFilterScriptInit()
{
    print("\n------------------------------------------------");
    print(" San Fiero : Police Departement Enter/Exit Pickup.");
    print("------------------------------------------------\n");
    //----------------------------------------------------------------------
    SFPD = CreatePickup(2894, 1, X, Y, Z, -1);
    // Remplace the X, Y, Z, by your coordinates (where we will see the pickup,
    // if you don't know to do, use the famous samp_debug.)
    ESFP = CreatePickup(2894, 1, X, Y, Z, -1);
    // Remplace the X, Y, Z, by your coordinates (where we will see the pickup,
    // in the SFPD interriors, use the famous samp_debug.)
    return 1;
}
pawn Код:
public OnFilterScriptExit()
{
    print("\n------------------------------------------------");
    print(" San Fiero : Police Departement.. Shutdown........");
    print("------------------------------------------------\n");
    return 1;
}
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == SFPD)
    {
    SetPlayerInterior(playerid, 10); // Info by kamzaf
    SetPlayerPos(playerid, 246.375991,109.245994,1003.218750); // Info by kamzaf
    }
    if(pickupid == ESFP)
    {
    SetPlayerInterior(playerid, 0); // The normal worlds.
    SetPlayerPos(playerid, X, Y, Z);
    // Remplace the X, Y, Z, by your coordinates (when we will leave the SFPD,
    // if you don't know, use our famous samp_debug.)
    }
    return 1;
}
Correct me if I am wrong .
Reply


Messages In This Thread
Interiors? - by Hussain - 19.03.2013, 20:08
Re: Interiors? - by kamzaf - 19.03.2013, 20:10
Re: Interiors? - by Hussain - 19.03.2013, 20:13
Re: Interiors? - by freddy smyth - 19.03.2013, 20:26
Re: Interiors? - by Hussain - 19.03.2013, 20:28
Re: Interiors? - by davve95 - 19.03.2013, 20:31
Re: Interiors? - by freddy smyth - 19.03.2013, 20:34
Re : Interiors? - by thegreathom - 19.03.2013, 21:20

Forum Jump:


Users browsing this thread: 1 Guest(s)