hallo also ich möchte jetz vollgende objecte in mein gammode einfügen:
CreateObject(1676, 1546.032227, -1612.764404, 13.963679, 0.0000, 0.0000, 359.1406);
CreateObject(1676, 1546.223022, -1607.987061, 13.963679, 0.0000, 0.0000, 0.0000);
CreateObject(1238, 1547.280884, -1612.859497, 12.700993, 0.0000, 0.0000, 0.0000);
CreateObject(1238, 1547.948853, -1612.887939, 12.700993, 0.0000, 0.0000, 0.0000);
CreateObject(1238, 1548.654541, -1612.905640, 12.700993, 0.0000, 0.0000, 0.0000);
CreateObject(1238, 1549.305176, -1613.030762, 12.700993, 0.0000, 0.0000, 0.0000);
CreateObject(1238, 1547.428345, -1607.975830, 12.700993, 0.0000, 0.0000, 0.0000);
CreateObject(1238, 1548.104004, -1607.900757, 12.700993, 0.0000, 0.0000, 0.0000);
CreateObject(1238, 1548.729614, -1607.950806, 12.700993, 0.0000, 0.0000, 0.0000);
CreateObject(1238, 1549.305176, -1607.950806, 12.700993, 0.0000, 0.0000, 0.0000);
CreateObject(1238, 1545.000977, -1608.176025, 12.700993, 0.0000, 0.0000, 0.0000);
CreateObject(1238, 1544.325317, -1608.176025, 12.700993, 0.0000, 0.0000, 0.0000);
CreateObject(1238, 1543.538452, -1608.129883, 12.700993, 0.0000, 0.0000, 0.0000);
CreateObject(1238, 1542.912842, -1608.004761, 12.700993, 0.0000, 0.0000, 0.0000);
CreateObject(1238, 1544.739624, -1612.709351, 12.700993, 0.0000, 0.0000, 0.0000);
CreateObject(1238, 1544.108032, -1612.717163, 12.700993, 0.0000, 0.0000, 0.0000);
CreateObject(1238, 1543.482422, -1612.692139, 12.700993, 0.0000, 0.0000, 0.0000);
CreateObject(1238, 1542.856812, -1612.667114, 12.700993, 0.0000, 0.0000, 0.0000);
CreateObject(978, 1544.787842, -1617.101440, 13.223033, 0.0000, 0.0000, 0.0000);
CreateObject(978, 1544.956055, -1603.340332, 13.314918, 0.0000, 0.0000, 180.0000);
CreateObject(978, 1540.723267, -1612.538452, 13.223033, 0.0000, 0.0000, 270.0000);
CreateObject(978, 1540.729370, -1607.507324, 13.223033, 0.0000, 0.0000, 270.0000);
CreateObject(1411, 1546.551880, -1617.559937, 17.455828, 0.0000, 0.0000, 0.0000);
CreateObject(1411, 1542.220337, -1617.459839, 17.515907, 0.0000, 0.0000, 0.0000);
CreateObject(1411, 1539.895996, -1614.992676, 17.533722, 0.0000, 0.0000, 270.0000);
CreateObject(1411, 1539.881714, -1609.822754, 17.532625, 0.0000, 0.0000, 270.0000);
CreateObject(1411, 1539.865112, -1604.942139, 17.532625, 0.0000, 0.0000, 270.0000);
CreateObject(1411, 1542.161133, -1602.642334, 17.512222, 0.0000, 0.0000, 180.0000);
CreateObject(1411, 1547.150146, -1602.531128, 17.520538, 0.0000, 0.0000, 180.0000);
CreateObject(1411, 1552.137085, -1602.467896, 17.520538, 0.0000, 0.0000, 180.0000);
CreateObject(1411, 1557.408936, -1602.577393, 17.520538, 0.0000, 0.0000, 180.0000);
CreateObject(1411, 1562.664063, -1602.652466, 17.520538, 0.0000, 0.0000, 180.0000);
CreateObject(1411, 1567.668945, -1602.627441, 17.520538, 0.0000, 0.0000, 180.0000);
CreateObject(1411, 1572.854248, -1602.633301, 17.520538, 0.0000, 0.0000, 180.0000);
CreateObject(1411, 1578.205078, -1602.662598, 17.520538, 0.0000, 0.0000, 180.0000);
CreateObject(1411, 1582.756714, -1602.639893, 17.520538, 0.0000, 0.0000, 180.0000);
CreateObject(1411, 1587.336182, -1602.639893, 17.520538, 0.0000, 0.0000, 180.0000);
CreateObject(1411, 1592.366089, -1602.639893, 17.520538, 0.0000, 0.0000, 180.0000);
CreateObject(1411, 1597.373413, -1602.792969, 17.520538, 0.0000, 0.0000, 180.0000);
CreateObject(1411, 1602.528442, -1602.817993, 17.520538, 0.0000, 0.0000, 180.0000);
CreateObject(1411, 1605.467163, -1602.792847, 17.520538, 0.0000, 0.0000, 180.0000);
CreateObject(1411, 1608.003418, -1605.225098, 17.531136, 0.0000, 0.0000, 90.0000);
CreateObject(1411, 1607.992798, -1610.411133, 17.531136, 0.0000, 0.0000, 90.0000);
CreateObject(1411, 1608.092896, -1615.441040, 17.531136, 0.0000, 0.0000, 90.0000);
CreateObject(1411, 1608.092896, -1620.420898, 17.531136, 0.0000, 0.0000, 90.0000);
CreateObject(1411, 1608.021729, -1625.573975, 17.531136, 0.0000, 0.0000, 90.0000);
CreateObject(1411, 1608.021729, -1630.528809, 17.531136, 0.0000, 0.0000, 90.0000);
CreateObject(1411, 1608.021729, -1635.433594, 17.531136, 0.0000, 0.0000, 90.0000);
CreateObject(1411, 1605.656860, -1637.768311, 17.524218, 0.0000, 0.0000, 0.0000);
CreateObject(986, 1548.832520, -1624.447632, 14.093480, 0.0000, 0.0000, 270.0000);
CreateObject(986, 1548.804443, -1632.485352, 14.093480, 0.0000, 0.0000, 90.0000);
CreateObject(974, 1548.824707, -1620.305542, 15.324615, 0.0000, 0.0000, 90.0000);
CreateObject(974, 1548.704346, -1636.004395, 15.332811, 0.0000, 0.0000, 90.0000);
Alles anzeigen
wie soll ich die in diesen gamemod einfügen
//---------------------------------------------------------
//
// MONSTER! A freeroam script centered around the desert.
// by Mike
//---------------------------------------------------------
#include <a_samp>
#define COLOR_RED 0xAA3333AA
forward GameModeExitFunc();
// This is how long the round lasts before exiting
// Set to 0 to disable the timer
//new gRoundTime = 1200000;
new gRoundTime = 0;
//---------------------------------------------------------
main()
{
print("\n----------------------------------");
print(" Monster freeroam by Mike (2006)\n");
print("----------------------------------\n");
}
//---------------------------------------------------------
public OnGameModeInit()
{
new Float:monsterX = 414.9143;
new Float:boatX = 260.0439;
new Float:bikeX = 393.8199;
new id;
new count;
SetGameModeText("Monster freeroam");
// Players
for (id = 254; id <= 288; id++) {
if (id == 265) id = 274; // Skip over the bad ones
AddPlayerClass(id,389.8672,2543.0046,16.5391,173.7645,0,0,0,0,0,0);
}
// Mike's special monster truck
AddStaticVehicle(556,423.9143,2482.2766,16.8594,0.0,1,1);
for(count = 0; count <= 50; count++) {
AddStaticVehicle(557,monsterX,2482.4856,16.8594,0.0,1,1);
monsterX -= 9.0;
}
// Boats
for(count = 0; count <= 15; count++) {
AddStaticVehicle(446,boatX,2970.7834,-1.0287,7.0391,-1,-1);
boatX += 6.0;
}
// Mountain bikes/BMXes
for(count = 0; count <= 10; count++) {
AddStaticVehicle(481,bikeX,2547.0911,16.0545,356.9482,-1,-1);
AddStaticVehicle(510,bikeX,2538.3503,16.1516,356.1028,-1,-1);
bikeX -= 2.5;
}
AddStaticVehicle(513,324.7664,2546.0984,16.4876,178.8663,-1,-1); // stuntplane
AddStaticVehicle(513,290.2709,2544.7771,16.5000,178.0178,-1,-1); // stuntplane
AddStaticVehicle(487,261.9073,2522.6987,16.4046,175.9395,-1,-1); // heli
AddStaticVehicle(487,244.0523,2524.3516,16.4171,180.8316,-1,-1); // heli
AddStaticVehicle(592,-73.1792,2502.1990,16.1641,270.0,-1,-1); //adromeda
AddStaticVehicle(532,101.5550,2584.0725,17.4540,178.0316,-1,-1); // combine
if (gRoundTime > 0) {
SetTimer("GameModeExitFunc", gRoundTime, 0);
}
return 1;
}
//---------------------------------------------------------
public OnPlayerConnect(playerid)
{
GameTextForPlayer(playerid,"~w~Monster freeroam!",1000,5);
return 1;
}
//---------------------------------------------------------
SetupPlayerForClassSelection(playerid)
{
SetPlayerPos(playerid,398.4077,2540.5049,19.6311);
SetPlayerCameraPos(playerid,398.4077,2530.5049,19.6311);
SetPlayerCameraLookAt(playerid,398.4077,2540.5049,19.6311);
SetPlayerFacingAngle(playerid, 180.0);
}
//---------------------------------------------------------
public OnPlayerRequestClass(playerid, classid)
{
SetupPlayerForClassSelection(playerid);
return 1;
}
//---------------------------------------------------------
public OnPlayerDeath(playerid, killerid, reason)
{
new name[256];
new string[256];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "*** %s died.", name);
SendClientMessageToAll(COLOR_RED, string);
return 1;
}
//---------------------------------------------------------
public GameModeExitFunc() {
GameModeExit();
}