Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- new boothulle;
- new bootladung;
- new bootcontrol;
- new launchbla;
- new andockstega;
- new andockstegb;
- new andockschild;
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print("SanAnWerft V2 - Betaversion");
- print("--------------------------------------\n");
- CreateObject(1272,-1376.08032227,145.48844910,14.25726223,0.00000000,0.00000000,0.00000000); //object(property_locked) (1)
- CreateObject(9361,-1376.63989258,149.44848633,15.93780136,0.00000000,0.00000000,92.00000000); //object(boatoffice_sfn) (2)
- andockstega = CreateObject(3886,-1378.40258789,163.22082520,9.76000023,0.00000000,0.00000000,46.00000000); //object(ws_jettynol_sfx) (1)
- andockstegb = CreateObject(3886,-1371.42236328,156.44801331,7.80000019,22.50000000,0.00000000,45.99975586); //object(ws_jettynol_sfx) (2)
- andockschild = CreateObject(3264,-1370.72155762,155.68817139,10.95000076,0.00000000,0.00000000,46.25000000); //object(privatesign3) (1)
- launchbla = AddStaticVehicleEx(453,-1360.7883300781, 213.18420410156, 1, 1, 1, 1, 15);
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/start", cmdtext, true, 10) == 0)
- if(IsPlayerInVehicle(playerid, launchbla))
- {
- AttachObjectToPlayer(boothulle, playerid, 0, 0, 0, 0, 0, 90 );
- AttachObjectToPlayer(bootladung, playerid, 0, -1.5, 10, 0, 0, 90 );
- AttachObjectToPlayer(bootcontrol, playerid, 0, -74.5, 28, 0, 0, 90 );
- return 1;
- }
- //andocken
- if(strcmp(cmdtext, "/andocken", true) == 0)
- if(IsPlayerInRangeOfPoint(playerid, 15.0, -1383, 168, 16.3))
- {
- MoveObject(andockschild, -1370.72155762,155.68817139,10, 2.00);
- MoveObject(andockstega, -1378.40258789,163.22082520,9.76, 18.00);
- MoveObject(andockstegb, -1371.42236328,156.44801331,7.80000019, 18.00);
- return 0;
- }
- //abdocken
- if(strcmp(cmdtext, "/abdocken", true) == 0)
- if(IsPlayerInRangeOfPoint(playerid, 15.0, -1383, 168, 16.3))
- {
- MoveObject(andockschild, -1370.72155762,155.68817139,13.3, 2.00);
- MoveObject(andockstega, -1378.40258789,163.22082520,-20, 9.00);
- MoveObject(andockstegb, -1371.42236328,156.44801331,-20, 9.00);
- return 0;
- }
- if (strcmp("/go", cmdtext, true, 10) == 0)
- {
- new Float:xw, Float:yw, Float:zw;
- GetObjectPos(boothulle, xw, yw, zw);
- SetPlayerPos(playerid,xw,yw,zw);
- return 1;
- }
- if (strcmp("/rein", cmdtext, true, 10) == 0)
- {
- new Float:xh, Float:yh, Float:zh;
- GetPlayerPos(playerid,xh,yh,zh);
- SetPlayerPos(playerid,xh,yh,zh-10);
- return 1;
- }
- if (strcmp("/raus", cmdtext, true, 10) == 0)
- {
- new Float:xd, Float:yd, Float:zd;
- GetPlayerPos(playerid,xd,yd,zd);
- SetPlayerPos(playerid,xd,yd,zd+16);
- return 1;
- }
- if (strcmp("/vorbereiten", cmdtext, true, 10) == 0)
- {
- boothulle = CreateObject(10794,-1372.92028809,200.94018555,0.69999838,0.00000000,0.00000000,45.00000000); //object(car_ship_04_sfse) (2)
- bootladung = CreateObject(10795,-1374.52209473,199.36412048,10.72677612,0.00000000,0.00000000,45.00000000); //object(car_ship_05_sfse) (2)
- bootcontrol = CreateObject(10793,-1426.15966797,147.82740784,29.00863647,0.00000000,0.00000000,45.00000000); //object(car_ship_03_sfse) (2)
- }
- return 0;
- }
- public OnFilterScriptExit()
- {
- DestroyObject(boothulle);
- DestroyObject(bootladung);
- DestroyObject(bootcontrol);
- DestroyVehicle(launchbla);
- return 1;
- }
- public OnPlayerExitVehicle()
- {
- DestroyObject(boothulle);
- DestroyObject(bootladung);
- DestroyObject(bootcontrol);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement