21.12.2010, 01:08
I did something wrong in this but i dont know what, if someone could fix the problems they see and paste the whole code back as a reply that would be greate.
pawn Код:
#include <a_samp>
new rocket1;
new rocket2;
new rocket3;
new rocket4;
new rocket5;
new rocket6;
new rocket7;
new rocket8;
new rocket9;
new rocket10;
new rocket11;
new rocket12;
new rocket13;
new rocket14;
new rocket15;
new rocket16;
new rocket17;
new rocket18
new rocket19;
new rocket20;
public OnGameModeInit()
{
rocket1 = CreateObject(17049,361.51278687,1943.74755859,23.94000053,179.99450684,0.00000000,0.00000000);
rocket2 = CreateObject(17049,364.73217773,1945.26000977,23.94000053,179.99450684,0.00000000,0.00000000);
rocket3 = CreateObject(17049,361.27264404,1947.04602051,23.94000053,179.99450684,0.00000000,0.00000000);
rocket4 = CreateObject(18987,362.66940308,1945.44836426,36.07276154,0.00000000,0.00000000,0.00000000);
rocket5 = CreateObject(17049,362.85900879,1948.72985840,23.77276039,0.00000000,0.00000000,113.99996948);
rocket6 = CreateObject(1649,362.48815918,1941.83312988,50.31145477,0.00000000,0.00000000,179.49755859);//19o
rocket7 = CreateObject(1649,362.48815918,1948.93676758,50.31145477,0.00000000,0.00000000,0.00000000);//20
rocket8 = CreateObject(17951,362.77139282,1947.48535156,48.55171967,0.00000000,90.00000000,0.00000000);
rocket9 = CreateObject(17951,363.94308472,1946.98107910,48.55171967,0.00000000,90.00000000,322.00000000);
rocket10 = CreateObject(17951,361.46932983,1947.00854492,48.55171967,0.00000000,90.00000000,38.00000000);
rocket11 = CreateObject(17951,360.78305054,1945.93151855,48.55171967,0.00000000,90.00000000,71.99829102);
rocket12 = CreateObject(17951,360.92773438,1944.57910156,48.55171967,0.00000000,90.00000000,110.00000000);
rocket13 = CreateObject(17951,361.80957031,1943.50354004,48.55171967,0.00000000,90.00000000,147.99514771);
rocket14 = CreateObject(17951,362.85958862,1943.39575195,48.55171967,0.00000000,90.00000000,185.99133301);
rocket15 = CreateObject(17951,364.04949951,1944.04248047,48.55171967,0.00000000,90.00000000,221.98754883);
rocket16 = CreateObject(17951,364.65100098,1945.16735840,48.55171967,0.00000000,90.00000000,257.98425293);
rocket17 = CreateObject(17951,364.45504761,1946.34912109,48.55171967,0.00000000,90.00000000,287.98095703);
rocket18 = CreateObject(16501,364.02490234,1945.36242676,48.55171967,0.00000000,90.00000000,0.00000000);
rocket19 = CreateObject(16501,361.04910278,1945.38000488,48.55171967,0.00000000,90.00000000,0.00000000);
rocket20 = CreateObject(1649,358.85977173,1945.37377930,50.31145477,0.00000000,0.00000000,90.25000000);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/land", true) == 0){
MoveObject(rocket1, 361.51278687,1943.74755859,23.94000053,179.99450684,0.00000000,0.00000000);
MoveObject(rocket2, 364.73217773,1945.26000977,23.94000053,179.99450684,0.00000000,0.00000000);
MoveObject(rocket3, 361.27264404,1947.04602051,23.94000053,179.99450684,0.00000000,0.00000000);
MoveObject(rocket4, 362.66940308,1945.44836426,36.07276154,0.00000000,0.00000000,0.00000000);
MoveObject(rocket5, 362.85900879,1948.72985840,23.77276039,0.00000000,0.00000000,113.99996948);
MoveObject(rocket6, 362.48815918,1941.83312988,50.31145477,0.00000000,0.00000000,179.49755859);
MoveObject(rocket7, 362.48815918,1948.93676758,50.31145477,0.00000000,0.00000000,0.00000000);
MoveObject(rocket8, 362.77139282,1947.48535156,48.55171967,0.00000000,90.00000000,0.00000000);
MoveObject(rocket9, 363.94308472,1946.98107910,48.55171967,0.00000000,90.00000000,322.00000000);
MoveObject(rocket10, 361.46932983,1947.00854492,48.55171967,0.00000000,90.00000000,38.00000000);
MoveObject(rocket11, 360.78305054,1945.93151855,48.55171967,0.00000000,90.00000000,71.99829102);
MoveObject(rocket12, 360.92773438,1944.57910156,48.55171967,0.00000000,90.00000000,110.00000000);
MoveObject(rocket13, 361.80957031,1943.50354004,48.55171967,0.00000000,90.00000000,147.99514771);
MoveObject(rocket14, 362.85958862,1943.39575195,48.55171967,0.00000000,90.00000000,185.99133301);
MoveObject(rocket15, 364.04949951,1944.04248047,48.55171967,0.00000000,90.00000000,221.98754883);
MoveObject(rocket16, 364.65100098,1945.16735840,48.55171967,0.00000000,90.00000000,257.98425293);
MoveObject(rocket17, 364.45504761,1946.34912109,48.55171967,0.00000000,90.00000000,287.98095703);
MoveObject(rocket18, 364.02490234,1945.36242676,48.55171967,0.00000000,90.00000000,0.00000000);
MoveObject(rocket19, 361.04910278,1945.38000488,48.55171967,0.00000000,90.00000000,0.00000000);
MoveObject(rocket20,358.85977173,1945.37377930,50.31145477,0.00000000,0.00000000,90.25000000);
return 1;
}
if (strcmp(cmdtext, "/launch", true) == 0){
MoveObject(rocket1, 361.51278687,1943.74755859,63.94000053,179.99450684,0.00000000,0.00000000);
MoveObject(rocket2, 364.73217773,1945.26000977,63.94000053,179.99450684,0.00000000,0.00000000);
MoveObject(rocket3, 361.27264404,1947.04602051,63.94000053,179.99450684,0.00000000,0.00000000);
MoveObject(rocket4, 362.66940308,1945.44836426,76.07276154,0.00000000,0.00000000,0.00000000);
MoveObject(rocket5, 362.85900879,1948.72985840,63.77276039,0.00000000,0.00000000,113.99996948);
MoveObject(rocket6, 362.48815918,1941.83312988,90.31145477,0.00000000,0.00000000,179.49755859);
MoveObject(rocket7, 362.48815918,1948.93676758,90.31145477,0.00000000,0.00000000,0.00000000);
MoveObject(rocket8, 362.77139282,1947.48535156,88.55171967,0.00000000,90.00000000,0.00000000);
MoveObject(rocket9, 363.94308472,1946.98107910,88.55171967,0.00000000,90.00000000,322.00000000);
MoveObject(rocket10, 361.46932983,1947.00854492,88.55171967,0.00000000,90.00000000,38.00000000);
MoveObject(rocket11, 360.78305054,1945.93151855,88.55171967,0.00000000,90.00000000,71.99829102);
MoveObject(rocket12, 360.92773438,1944.57910156,88.55171967,0.00000000,90.00000000,110.00000000);
MoveObject(rocket13, 361.80957031,1943.50354004,88.55171967,0.00000000,90.00000000,147.99514771);
MoveObject(rocket14, 362.85958862,1943.39575195,88.55171967,0.00000000,90.00000000,185.99133301);
MoveObject(rocket15, 364.04949951,1944.04248047,88.55171967,0.00000000,90.00000000,221.98754883);
MoveObject(rocket16, 364.65100098,1945.16735840,88.55171967,0.00000000,90.00000000,257.98425293);
MoveObject(rocket17, 364.45504761,1946.34912109,88.55171967,0.00000000,90.00000000,287.98095703);
MoveObject(rocket18, 364.02490234,1945.36242676,88.55171967,0.00000000,90.00000000,0.00000000);
MoveObject(rocket19, 361.04910278,1945.38000488,88.55171967,0.00000000,90.00000000,0.00000000);
MoveObject(rocket20,358.85977173,1945.37377930,90.31145477,0.00000000,0.00000000,90.25000000);
return 1;
}
return 0;
}