Szerző Téma: CarPark with SuperLift  (Megtekintve 1491 alkalommal)

Nem elérhető Adams

CarPark with SuperLift
« Dátum: 2011. szeptember 16. - 17:22:35 »
+1 Show voters
Hi mindenki.Nagyon unatkoztam.Gondoltam csinalok egy scriptet.
A script leirasa:
 
Csinaltam hozza egy kicsi emeletes parkolot.
Ha a parkolo kozeleben vagy akkor NumPad en emelheted illetve eresztheted a liftet a 4es es a 6os gombbal.Ha nyomva tartod a 4 es gombot, a lift elindul fel fele.Ha el engeded abban a masodpercben meg is all.Viszont ha a 6 os gombot nyomod akkor a lift ereszkedik le fele.Ha elengeded megall.

 
FIGYELEM!!! A map csak 5 perces amator cucc xD
Koszonom elore is.
Jah igen.
A parkolo haz Las Venturas Airport azaz Las Venturas Repuloteren talalhato bennt.
Photo sajnos nincs mert nem volt sok idom nah de teszek fotot is.
Itt van egy Koordinata hozza:
1307.0680,1454.6567,22.8455

 
Letoltes:(A soldfiles most meg nem engedte hogy tegyem fel de ha fogja engedni az lessz az elso dolgom
[pawn]#include <a_samp>
new lift;
forward Timer(playerid);
new isinrange[MAX_PLAYERS];
public OnFilterScriptInit()
{
print(\"\\n--------------------------------------\");
print(\" Blank Filterscript by your name here\");
print(\"--------------------------------------\\n\");
SetTimer(\"Timer\",5000,1);
    CreateObject(8947, 1283.623169, 1469.557739, 12.873093, 0.0000, 0.0000, 90.0000);
    CreateObject(8947, 1283.624023, 1454.828369, 12.873093, 0.0000, 0.0000, 90.0000);
    CreateObject(8947, 1283.630127, 1440.103149, 12.873093, 0.0000, 0.0000, 90.0000);
    CreateObject(8947, 1283.612183, 1425.417603, 12.873093, 0.0000, 0.0000, 90.0000);
    CreateObject(8947, 1283.623413, 1469.552979, 18.979418, 0.0000, 0.0000, 90.0000);
    CreateObject(8947, 1283.663696, 1454.848022, 18.979418, 0.0000, 0.0000, 90.0000);
    CreateObject(8947, 1283.651367, 1440.107910, 18.979418, 0.0000, 0.0000, 90.0000);
    CreateObject(8947, 1283.628662, 1425.405396, 18.979418, 0.0000, 0.0000, 90.0000);
    CreateObject(8947, 1283.655151, 1425.401855, 25.085743, 0.0000, 0.0000, 90.0000);
    CreateObject(8947, 1283.663574, 1440.104858, 25.085743, 0.0000, 0.0000, 90.0000);
    CreateObject(8947, 1283.661499, 1454.782715, 25.085743, 0.0000, 0.0000, 90.0000);
    CreateObject(8947, 1283.620117, 1469.513062, 25.085743, 0.0000, 0.0000, 90.0000);
    CreateObject(8947, 1283.657593, 1469.528442, 31.192066, 0.0000, 0.0000, 90.0000);
    CreateObject(8947, 1283.682617, 1454.818115, 31.192066, 0.0000, 0.0000, 90.0000);
    CreateObject(8947, 1283.667725, 1440.151978, 31.192066, 0.0000, 0.0000, 90.0000);
    CreateObject(8947, 1283.663330, 1425.457031, 31.192066, 0.0000, 0.0000, 90.0000);
    CreateObject(8947, 1283.692139, 1425.444946, 37.298389, 0.0000, 0.0000, 90.0000);
    CreateObject(8947, 1283.706421, 1440.185913, 37.298389, 0.0000, 0.0000, 90.0000);
    CreateObject(8947, 1283.744629, 1454.914307, 37.298389, 0.0000, 0.0000, 90.0000);
    CreateObject(8947, 1283.786987, 1469.626465, 37.298389, 0.0000, 0.0000, 90.0000);
    CreateObject(5442, 1305.908081, 1447.375244, 9.935812, 0.0000, 0.0000, 270.0000);
    CreateObject(5442, 1305.915283, 1447.368408, 15.900417, 0.0000, 0.0000, 270.0000);
    CreateObject(5442, 1305.894897, 1447.284180, 21.939293, 0.0000, 0.0000, 270.0000);
    CreateObject(5442, 1305.890137, 1447.294800, 28.054071, 0.0000, 0.0000, 270.0000);
    CreateObject(5442, 1305.872803, 1447.284790, 34.169144, 0.0000, 0.0000, 270.0000);
    CreateObject(973, 1311.249390, 1472.406982, 10.846345, 0.0000, 0.0000, 90.0000);
    CreateObject(973, 1311.246826, 1463.047974, 10.846345, 0.0000, 0.0000, 90.0000);
    CreateObject(973, 1311.243652, 1453.680908, 10.832280, 0.0000, 0.0000, 90.0000);
    CreateObject(973, 1311.260620, 1444.309814, 10.846345, 0.0000, 0.0000, 90.0000);
    CreateObject(973, 1311.273438, 1434.957642, 10.846345, 0.0000, 0.0000, 90.0000);
    CreateObject(973, 1311.278198, 1425.585449, 10.843234, 0.0000, 0.0000, 90.0000);
    CreateObject(973, 1306.484009, 1421.099243, 10.687288, 0.0000, 0.0000, 0.0000);
    CreateObject(973, 1300.539917, 1421.080811, 10.683033, 0.0000, 0.0000, 0.0000);
    CreateObject(973, 1310.889038, 1472.742310, 16.810949, 0.0000, 0.0000, 90.0000);
    CreateObject(973, 1310.865601, 1463.388306, 16.796885, 0.0000, 0.0000, 90.0000);
    CreateObject(973, 1310.960571, 1454.020752, 16.721886, 0.0000, 0.0000, 90.0000);
    CreateObject(973, 1311.048706, 1444.589111, 16.646887, 0.0000, 0.0000, 90.0000);
    CreateObject(973, 1311.062622, 1435.215454, 16.651999, 0.0000, 0.0000, 90.0000);
    CreateObject(973, 1311.062134, 1425.828857, 16.649748, 0.0000, 0.0000, 90.0000);
    CreateObject(973, 1306.418701, 1421.040161, 16.652439, 0.0000, 0.0000, 0.0000);
    CreateObject(973, 1300.599365, 1421.084351, 16.697794, 0.0000, 0.0000, 359.9999);
    CreateObject(973, 1310.616455, 1472.614380, 22.685762, 0.0000, 0.0000, 90.0000);
    CreateObject(973, 1310.616699, 1463.235840, 22.685762, 0.0000, 0.0000, 90.0000);
    CreateObject(973, 1310.608643, 1453.859863, 22.685762, 0.0000, 0.0000, 90.0000);
    CreateObject(973, 1310.601440, 1444.500000, 22.685762, 0.0000, 0.0000, 90.0000);
    CreateObject(973, 1310.600220, 1435.127686, 22.691000, 0.0000, 0.0000, 90.0000);
    CreateObject(973, 1310.616577, 1425.758301, 22.688633, 0.0000, 0.0000, 90.0000);
    CreateObject(973, 1305.922119, 1421.045410, 22.691170, 0.0000, 0.0000, 0.0000);
    CreateObject(973, 1300.735718, 1421.013062, 22.711166, 0.0000, 0.0000, 0.0000);
    CreateObject(973, 1310.663940, 1472.903442, 28.800541, 0.0000, 0.0000, 90.0000);
    CreateObject(973, 1310.663208, 1463.546753, 28.800541, 0.0000, 0.0000, 90.0000);
    CreateObject(973, 1310.686279, 1454.158569, 28.800541, 0.0000, 0.0000, 90.0000);
    CreateObject(973, 1310.866699, 1444.777466, 28.964603, 0.0000, 0.0000, 90.0000);
    CreateObject(973, 1310.697144, 1435.507690, 28.800541, 0.0000, 0.0000, 90.0000);
    CreateObject(973, 1310.710083, 1426.149536, 28.803419, 0.0000, 0.0000, 90.0000);
    CreateObject(973, 1306.014160, 1421.464966, 28.805441, 0.0000, 0.0000, 0.0000);
    CreateObject(973, 1300.585327, 1421.265259, 28.975893, 0.0000, 0.0000, 0.0000);
    CreateObject(973, 1310.593750, 1472.539307, 34.915615, 0.0000, 0.0000, 90.0000);
    CreateObject(973, 1310.580322, 1463.201660, 34.915615, 0.0000, 0.0000, 90.0000);
    CreateObject(973, 1310.582764, 1453.861938, 34.915615, 0.0000, 0.0000, 90.0000);
    CreateObject(973, 1310.587402, 1444.517090, 34.915615, 0.0000, 0.0000, 90.0000);
    CreateObject(973, 1310.595703, 1435.157959, 34.920872, 0.0000, 0.0000, 90.0000);
    CreateObject(973, 1310.683105, 1425.909912, 35.077164, 0.0000, 0.0000, 90.0000);
    CreateObject(973, 1305.792603, 1421.265869, 34.924625, 0.0000, 0.0000, 0.0001);
    CreateObject(973, 1300.611084, 1421.255737, 34.929615, 0.0000, 0.0000, 0.0001);
    lift = CreateObject(971, 1306.320313, 1480.955933, 9.840219, 90.2409, 0.0000, 0.0000);
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerConnect(playerid)
{
isinrange[playerid] = 0;
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
isinrange[playerid] = 0;
return 1;
}
public Timer(playerid)
{
    if(IsPlayerInRangeOfPoint(playerid,50.0,01307.0680,1454.6567,22.8455)) {
    isinrange[playerid] = 1;
} else {
isinrange[playerid] = 0;
}
return 1;
}
// PRESSED(keys)
#define PRESSED(%0) \\
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
// RELEASED(keys)
#define RELEASED(%0) \\
(((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0)))
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(isinrange[playerid])
    {
if (PRESSED(8192))
{
   MoveObject(lift,1306.313477, 1480.963379, 34.108700,3.0);
}
else if (RELEASED(8192))
{
   StopObject(lift);
}
if (PRESSED(16384))
{
   MoveObject(lift,1306.320313, 1480.955933, 9.840219,3.0);
}
else if (RELEASED(16384))
{
   StopObject(lift);
}
}
return 1;
}
[/pawn]
« Utoljára szerkesztve: 2011. november 12. - 18:18:18 írta APC »

CarPark with SuperLift
« Válasz #1 Dátum: 2011. szeptember 16. - 17:40:08 »
0 Show voters
??? Egyszerû de nagyszerû!

Nem elérhető JackBronson

  • 1499
  • ??
    • Profil megtekintése
CarPark with SuperLift
« Válasz #2 Dátum: 2011. szeptember 16. - 17:42:49 »
0 Show voters
Jó ötlet lett grat !  ::|

CarPark with SuperLift
« Válasz #3 Dátum: 2011. szeptember 16. - 23:02:43 »
0 Show voters
[pawn]
#include a_samp
#include ScriptCreator
new válasz;
public OnPlayerConnect(playerid)
{
        válasz = SendClientMessageToScriptCreator(0xFF0000FF,\"Szép parkoló,Grat!\");
return 1;
}[/pawn]
Tesztelve mûködik! :)
:D

Rammstein

  • Vendég
CarPark with SuperLift
« Válasz #4 Dátum: 2011. szeptember 17. - 08:21:28 »
0 Show voters
Nagyon jó grt, szerintem felhasználom belõle a numpados dolgot, köszi szépen :)

Nem elérhető Adams

CarPark with SuperLift
« Válasz #5 Dátum: 2011. szeptember 17. - 19:27:38 »
0 Show voters
xD.Nekem az volt a lenyeg.Hogy a numpad os dolgot mutassam be.A garazs csak hozza lett.
Kossz szepen
Adams aka (ElectroX,Light)

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal