Szerző Téma: segitsen valaki kérem köszönömmm  (Megtekintve 622 alkalommal)

segitsen valaki kérem köszönömmm
« Dátum: 2010. február 28. - 07:30:24 »
0 Show voters
na az lenne hogy ezt a 3 mat nem tudom össze rakni valaki segitsen kérem
#include <a_samp>
new kkapu;
public OnFilterScriptInit()
{
   kkapu = CreateObject(980, -1531.327515, 482.156799, 8.960892, 0.0000, 0.0000, 0.0000);
   return 1;
}
public OnFilterScriptExit()
{
     DestroyObject(kkapu);
     return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(\"/knyit\", cmdtext, true)) return MoveObject(kkapu, 1531.327515, 482.156799, 25.960892, 2.5);
    if(!strcmp(\"/kzar\", cmdtext, true)) return MoveObject(kkapu, 1531.327515, 482.156799, 8.960892, 2.5);
    return 0;
   
   
AddStaticVehicle(497,-1268.4934,492.8272,18.4111,347.8683,86,86); // heli
AddStaticVehicle(425,-1280.0862,498.5939,18.8064,358.6398,43,0); // hellii
AddStaticVehicle(425,-1292.6395,498.1191,18.8052,3.6505,43,0); //
AddStaticVehicle(425,-1303.2482,498.3152,18.8266,356.6240,43,0); //
AddStaticVehicle(520,-1416.5446,494.1827,18.9570,0.0033,0,0); //
AddStaticVehicle(520,-1406.0507,494.4790,18.9527,357.2022,0,0); //
AddStaticVehicle(520,-1426.8593,494.0264,18.9563,358.2536,0,0); //
AddStaticVehicle(520,-1454.0977,505.1497,18.9840,269.4477,0,0); //
AddStaticVehicle(520,-1426.4619,507.0724,18.9541,270.2092,0,0); //
AddStaticVehicle(430,-1439.4644,504.8963,-0.1364,89.6472,46,26); //
AddStaticVehicle(430,-1439.8579,509.4485,-0.3047,94.7628,46,26); //
AddStaticVehicle(598,-1344.8218,456.1264,6.9342,3.1545,86,86); //
AddStaticVehicle(432,-1331.3126,445.3595,7.2006,272.8329,43,0); //
AddStaticVehicle(432,-1319.3195,445.8637,7.1998,271.0329,43,0); //
AddStaticVehicle(433,-1378.7838,458.9085,7.6241,358.9113,43,0); //
CreateObject(980, -1531.327515, 482.156799, 8.960892, 0.0000, 0.0000, 0.0000);
CreateObject(8378, -1336.869019, 488.142120, 7.408867, 0.0000, 0.0000, 0.0000);
CreateObject(982, -1494.431030, 481.568787, 6.871054, 0.0000, 0.0000, 270.0000);
CreateObject(982, -1468.743164, 481.648407, 6.871054, 0.0000, 0.0000, 90.0000);
CreateObject(983, -1454.325562, 481.629211, 6.871055, 0.0000, 0.0000, 90.0000);
CreateObject(982, -1432.288818, 481.579865, 6.871055, 0.0000, 0.0000, 90.0000);
CreateObject(982, -1406.667725, 481.541107, 6.871055, 0.0000, 0.0000, 270.0000);
CreateObject(982, -1381.116455, 481.558289, 6.871055, 0.0000, 0.0000, 270.0000);
CreateObject(982, -1355.499512, 481.554443, 6.871055, 0.0000, 0.0000, 270.0000);
return 1
new pickup;
public OnFilterScriptInit(  )
{
pickup = CreatePickup(1238, 1, 1234.567, 7891.234, 40.05); // pickup helye
return 1;
}
public OnFilterScriptExit(  )
{
DestroyPickup( pickup );
return 1;
}
public OnPlayerPickUpPickup( playerid, pickupid )
{
if( pickupid == pickup )
{
SetPlayerPos(playerid, 3400,485.5044,11.1875,354.1060);
}
return 1;
}

Nem elérhető dnsdj

  • 211
    • Profil megtekintése
segitsen valaki kérem köszönömmm
« Válasz #1 Dátum: 2010. február 28. - 09:10:54 »
0 Show voters
Tessék.. :)
 

#include <a_samp>
new pickup;
new kkapu;
public OnFilterScriptInit()
{
   pickup = CreatePickup(1238, 1, 1234.567, 7891.234, 40.05); // pickup helye
AddStaticVehicle(497,-1268.4934,492.8272,18.4111,347.8683,86,86); // heli
AddStaticVehicle(425,-1280.0862,498.5939,18.8064,358.6398,43,0); // hellii
AddStaticVehicle(425,-1292.6395,498.1191,18.8052,3.6505,43,0); //
AddStaticVehicle(425,-1303.2482,498.3152,18.8266,356.6240,43,0); //
AddStaticVehicle(520,-1416.5446,494.1827,18.9570,0.0033,0,0); //
AddStaticVehicle(520,-1406.0507,494.4790,18.9527,357.2022,0,0); //
AddStaticVehicle(520,-1426.8593,494.0264,18.9563,358.2536,0,0); //
AddStaticVehicle(520,-1454.0977,505.1497,18.9840,269.4477,0,0); //
AddStaticVehicle(520,-1426.4619,507.0724,18.9541,270.2092,0,0); //
AddStaticVehicle(430,-1439.4644,504.8963,-0.1364,89.6472,46,26); //
AddStaticVehicle(430,-1439.8579,509.4485,-0.3047,94.7628,46,26); //
AddStaticVehicle(598,-1344.8218,456.1264,6.9342,3.1545,86,86); //
AddStaticVehicle(432,-1331.3126,445.3595,7.2006,272.8329,43,0); //
AddStaticVehicle(432,-1319.3195,445.8637,7.1998,271.0329,43,0); //
AddStaticVehicle(433,-1378.7838,458.9085,7.6241,358.9113,43,0); // 
   kkapu = CreateObject(980, -1531.327515, 482.156799, 8.960892, 0.0000, 0.0000, 0.0000);
CreateObject(980, -1531.327515, 482.156799, 8.960892, 0.0000, 0.0000, 0.0000);
CreateObject(8378, -1336.869019, 488.142120, 7.408867, 0.0000, 0.0000, 0.0000);
CreateObject(982, -1494.431030, 481.568787, 6.871054, 0.0000, 0.0000, 270.0000);
CreateObject(982, -1468.743164, 481.648407, 6.871054, 0.0000, 0.0000, 90.0000);
CreateObject(983, -1454.325562, 481.629211, 6.871055, 0.0000, 0.0000, 90.0000);
CreateObject(982, -1432.288818, 481.579865, 6.871055, 0.0000, 0.0000, 90.0000);
CreateObject(982, -1406.667725, 481.541107, 6.871055, 0.0000, 0.0000, 270.0000);
CreateObject(982, -1381.116455, 481.558289, 6.871055, 0.0000, 0.0000, 270.0000);
CreateObject(982, -1355.499512, 481.554443, 6.871055, 0.0000, 0.0000, 270.0000);
   return 1;
}
public OnFilterScriptExit()
{
     DestroyPickup( pickup );
     DestroyObject(kkapu);
     return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(\"/knyit\", cmdtext, true)) return MoveObject(kkapu, 1531.327515, 482.156799, 25.960892, 2.5);
    if(!strcmp(\"/kzar\", cmdtext, true)) return MoveObject(kkapu, 1531.327515, 482.156799, 8.960892, 2.5);
    return 0;
}
 
 
public OnPlayerPickUpPickup( playerid, pickupid )
{
   if( pickupid == pickup )
   {
         SetPlayerPos(playerid, 3400,485.5044,11.1875,354.1060);
   }
   return 1;
}

 
indentációt majd javítod..

segitsen valaki kérem köszönömmm
« Válasz #2 Dátum: 2010. február 28. - 09:48:46 »
0 Show voters
kösz király vagy

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal