Jump to content

[MAP]Vagos Base


Recommended Posts

Guest D3zaster
Posted

Salut am invatat sa fac teleporturi si comenzi asa ca am testat pe o harta asa am facut Vagos Base.

[glow=red,2,300]Comenzi:

/Vagos (Te duce in interioru casei vagos)

/Vgate (Deschide Poarta de la baza)

/GotoVagos (Inca nu e pusa va avea obiectivul de a te duce la baza)[/glow]

Scuze dar trebuie sa le puneti voi ca eu nu prea stiu cum si da erori. :'(

Obiecte:

CreateObject(991, 2829.7746582031, -1165.3712158203, 25.183990478516, 0, 0, 276);
CreateObject(991, 2830.4172363281, -1171.9497070313, 25.183990478516, 0, 0, 276);
CreateObject(969, 2831.3625488281, -1181.6888427734, 23.856086730957, 0, 0, 274);
CreateObject(991, 2831.0793457031, -1178.5634765625, 25.138311386108, 0, 0, 273.99853515625);
CreateObject(991, 2831.6655273438, -1192.5748291016, 24.873109817505, 0, 0, 275.99755859375);
Comanda poarta
include <a_samp>

new obiect;

forward Actiunea(playerid);
public Actiunea(playerid)
{
    MoveObject(obiect,2831.3625488281,-1181.6888427734,23.856086730957, 5);
    return 1;
}

public OnGameModeInit()
{
    obiect = CreateObject(969, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if( strcmp(cmdtext, "/VGate", true)==0)
    {
        MoveObject(obiect, 0.0, 0.0, 2.0, 5);
        SetTimerEx("Actiunea", 5 * 1000, 0, "i", playerid); //5 secunde , nu se repeta, valoarea este integer pt playerid
        return 1;
    }
    return 0;
}
Comanda Teleport:
if(strcmp(cmdtext,"/vagos",true)==0)
{
new vehicleid = GetPlayerVehicleID(playerid);
new State = GetPlayerState(playerid);
if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
{
GameTextForPlayer(playerid,"Bun Venit la casa Vagos !",4000,6);
LinkVehicleToInterior(vehicleid,8);
SetPlayerInterior(playerid,8);
return SetVehiclePos(vehicleid,2807.63, -1170.15, 1025.57);
}
SetPlayerPos(playerid,2807.63, -1170.15, 1025.57);
SetPlayerInterior(playerid,8);
GameTextForPlayer(playerid,"Bun Venit la casa Vagos !",4000,6);
return 1;
}

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.