Hey, Leute. Also, ich habe heute morgen sozusagen angefangen Scripten zu lernen, und kann es auch ein wenig, aber ich bekomme meinen Server nicht gestartet, kann mir jemand helfen? Also, Ich wollte eine Message machen, die der Server alle 60000 Millisekunden schreibt, und für die Cop Skins, die ich ausgewählt habe sollten alle im LSPD gespawnt werden. (Nicht das richtige LSPD, sondern normal LVPD, habe interior geändert unso) Hier das Script:
#include <a_samp>
forward SendMSG();
new RandomMSG[][] =
{
"---------------------------",
"Hier wird nicht gecheatet",
"Wer dabei erwischt wird"
"Erhält einen Permanenten"
"Bann auf diesem Server"
"Bitte keine Beleidigungen oder"
"was noch verletzen könnte!"
"Ihr [FSDM]Team."
};
new bsnenter;
new bsnexit;
new lspdenter;
new lspdexit;
new garageenter;
new garageexit;
new shenter;
main()
{
print("\n----------------------------------");
print("Freeroam/Stunt/DM by Mirko97");
print("----------------------------------\n");
}
public OnGameModeInit()
{
SetTimer("SendMSG", 60000, true);
bsnexit=CreatePickup(1559,1,362.9519,-75.2427,1001.5078);
bsnenter=CreatePickup(1559,1,1199.3112,-918.2027,43.1224);
lspdenter=CreatePickup(1559,1,1555.4905,-1675.7430,16.1953);
lspdexit=CreatePickup(1559,1,288.7438,167.1258,1007.1719);
garageenter=CreatePickup(1559,1,238.6155,138.7292,1003.0234);
garageexit=CreatePickup(1559,1,1568.6686,-1689.9810,6.2188);
shenter=CreatePickup(1559,1,1481.0239,-1771.8114,18.7958);
DisableInteriorEnterExits();
SetGameModeText("TestMode");
AddPlayerClass(280,245.1802,186.3855,1008.1719,358.6383,24,999,31,999,41,999); // CopSpawn
AddPlayerClass(281,245.1802,186.3855,1008.1719,358.6383,24,999,31,999,41,999); // CopSpawn
AddPlayerClass(282,245.1802,186.3855,1008.1719,358.6383,24,999,31,999,41,999); // CopSpawn
AddPlayerClass(283,245.1802,186.3855,1008.1719,358.6383,24,999,31,999,41,999); // CopSpawn
AddPlayerClass(284,245.1802,186.3855,1008.1719,358.6383,24,999,31,999,41,999); // CopSpawn
AddPlayerClass(288,245.1802,186.3855,1008.1719,358.6383,24,999,31,999,41,999); // CopSpawn
AddStaticVehicle(415,1227.1014,-917.5969,42.6745,100.6954,36,1); // cheetahbsn1
AddStaticVehicle(522,1227.6232,-913.8860,42.4630,98.3938,159,159); // nrgbsn1test
AddStaticVehicle(522,1227.1106,-911.5973,42.4716,100.1807,8,82); // nrgbsn2
AddStaticVehicle(429,1098.5162,-1772.5712,12.9082,89.5648,9,5); // spawnparkplatzcar1
AddStaticVehicle(445,1099.2778,-1775.6354,12.9205,91.0238,8,2); // spawnparkplatzcar2
AddStaticVehicle(451,1077.6536,-1761.0353,12.9489,87.5613,1,9); // spawnparkplatzcar3
AddStaticVehicle(470,1062.4409,-1763.7982,12.9597,90.6982,67,2); // spawnparkplatzcar4
AddStaticVehicle(562,1062.1646,-1737.3107,13.0512,271.0725,56,24); // spawnparkplatzcar5
AddStaticVehicle(489,1098.5812,-1754.9452,12.9237,267.6982,54,52); // spawnparkplatzcar6
AddStaticVehicle(596,1570.38574219,-1709.83422852,5.71062469,0.00000000,116,1); //Police Car (LSPD)
AddStaticVehicle(596,1574.43750000,-1709.97546387,5.71062469,0.00000000,116,1); //Police Car (LSPD)
AddStaticVehicle(596,1578.68847656,-1710.03942871,5.71062469,0.00000000,116,1); //Police Car (LSPD)
AddStaticVehicle(596,1583.41467285,-1710.09960938,5.71062469,0.00000000,116,1); //Police Car (LSPD)
AddStaticVehicle(596,1587.66406250,-1710.06433105,5.71062469,0.00000000,116,1); //Police Car (LSPD)
AddStaticVehicle(596,1591.16479492,-1710.10949707,5.71062469,0.00000000,116,1); //Police Car (LSPD)
AddStaticVehicle(596,1595.09020996,-1710.17663574,5.71062469,0.00000000,116,1); //Police Car (LSPD)
AddStaticVehicle(596,1565.08129883,-1709.58532715,5.71062469,0.00000000,116,1); //Police Car (LSPD)
AddStaticVehicle(596,1559.29260254,-1709.40734863,5.71062469,0.00000000,116,1); //Police Car (LSPD)
AddStaticVehicle(599,1543.87683105,-1651.25280762,6.27575159,90.00000000,116,1); //Police Ranger
AddStaticVehicle(599,1543.93725586,-1654.83544922,6.27575159,90.00000000,116,1); //Police Ranger
AddStaticVehicle(599,1543.94287109,-1658.91650391,6.27575159,90.00000000,116,1); //Police Ranger
AddStaticVehicle(599,1543.90649414,-1662.86962891,6.27575159,90.00000000,116,1); //Police Ranger
AddStaticVehicle(599,1544.01586914,-1667.73291016,6.27575159,90.00000000,116,1); //Police Ranger
AddStaticVehicle(599,1544.15747070,-1671.66992188,6.27575159,90.00000000,116,1); //Police Ranger
AddStaticVehicle(601,1526.73120117,-1646.50268555,5.82083368,180.00000000,116,116); //S.W.A.T. Van
AddStaticVehicle(601,1530.57653809,-1646.33068848,5.82083368,180.00000000,116,116); //S.W.A.T. Van
AddStaticVehicle(601,1534.22570801,-1646.22143555,5.82083368,180.00000000,116,116); //S.W.A.T. Van
AddStaticVehicle(601,1538.21582031,-1645.96533203,5.82083368,180.00000000,116,116); //S.W.A.T. Van
AddStaticVehicle(523,1584.24279785,-1681.15197754,5.55376720,269.25000000,-1,-1); //HPV1000
AddStaticVehicle(523,1584.45849609,-1680.12988281,5.55376720,269.24743652,-1,-1); //HPV1000
AddStaticVehicle(523,1584.37548828,-1679.13330078,5.55376720,269.24743652,-1,-1); //HPV1000
AddStaticVehicle(523,1584.29248047,-1678.13623047,5.55376720,269.24743652,-1,-1); //HPV1000
AddStaticVehicle(523,1584.20947266,-1677.13916016,5.55376720,269.24743652,-1,-1); //HPV1000
AddStaticVehicle(523,1584.12646484,-1676.14208984,5.55376720,269.24743652,-1,-1); //HPV1000
AddStaticVehicle(523,1584.12597656,-1676.14160156,5.55376720,269.24743652,-1,-1); //HPV1000
AddStaticVehicle(522,1510.37658691,-1745.10461426,13.20725250,0.00000000,-1,-1); //NRG-500
AddStaticVehicle(522,1509.50317383,-1744.97912598,13.20725250,0.00000000,-1,-1); //NRG-500
AddStaticVehicle(522,1508.66247559,-1744.90112305,13.20725250,0.00000000,8,113); //NRG-500
AddStaticVehicle(522,1507.85278320,-1744.86877441,13.20725250,0.00000000,8,86); //NRG-500
AddStaticVehicle(522,1507.01232910,-1744.79040527,13.20725250,0.00000000,8,6); //NRG-500
AddStaticVehicle(522,1506.31542969,-1744.87084961,13.20725250,0.00000000,8,79); //NRG-500
AddStaticVehicle(522,1510.45971680,-1750.17407227,13.20725250,0.00000000,8,88); //NRG-500
AddStaticVehicle(522,1509.46582031,-1750.29003906,13.20725250,0.00000000,8,32); //NRG-500
AddStaticVehicle(522,1508.53283691,-1750.27380371,13.20725250,0.00000000,8,126); //NRG-500
AddStaticVehicle(522,1507.58532715,-1750.13183594,13.20725250,0.00000000,8,36); //NRG-500
AddStaticVehicle(522,1506.67382812,-1750.08789062,13.20725250,0.00000000,8,95); //NRG-500
AddStaticVehicle(522,1505.68066406,-1750.20410156,13.20725250,0.00000000,8,1); //NRG-500
AddStaticVehicle(536,1157.61267090,-1107.20336914,25.37228203,179.49981689,101,1); //Blade
AddStaticVehicle(536,1157.48999023,-1088.87353516,26.27226830,179.49694824,101,1); //Blade
AddStaticVehicle(536,1167.66418457,-1094.44201660,25.57227898,0.49414062,101,1); //Blade
AddStaticVehicle(536,1157.64550781,-1073.24816895,27.29726028,180.24414062,101,1); //Blade
AddStaticVehicle(536,1167.83752441,-1079.63317871,26.39727402,359.74414062,101,1); //Blade
AddStaticVehicle(487,1220.23535156,-1098.60827637,25.50554657,0.00000000,116,116); //Maverick
AddStaticVehicle(487,1208.23291016,-1098.45886230,25.50554657,0.00000000,116,116); //Maverick
AddStaticVehicle(521,1150.38464355,-1098.48583984,25.24985886,270.00000000,116,1); //FCR-900
AddStaticVehicle(521,1150.36523438,-1097.48535156,25.24985886,270.00000000,116,1); //FCR-900
AddStaticVehicle(521,1150.34204102,-1096.23535156,25.24985886,270.00000000,116,1); //FCR-900
AddStaticVehicle(521,1150.32788086,-1095.48535156,25.24985886,270.00000000,116,1); //FCR-900
AddStaticVehicle(521,1150.30859375,-1094.48535156,25.24985886,270.00000000,116,1); //FCR-900
AddStaticVehicle(521,1150.29003906,-1093.48535156,25.24985886,270.00000000,116,1); //FCR-900
AddStaticVehicle(521,1150.27148438,-1092.48535156,25.24985886,270.00000000,116,1); //FCR-900
AddStaticVehicle(416,1180.16406250,-1339.12524414,13.87553883,270.00000000,17,1); //Ambulance
AddStaticVehicle(416,1180.35253906,-1308.77465820,13.87553883,270.00000000,17,1); //Ambulance
AddStaticVehicle(416,1190.56152344,-1329.98535156,13.87553883,180.00000000,17,1); //Ambulance
AddStaticVehicle(416,1190.64587402,-1316.97937012,13.87553883,180.00000000,17,1); //Ambulance
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,2022.9774,1322.8805,10.8203);
SetPlayerFacingAngle(playerid,87.8891);
SetPlayerCameraPos(playerid,2020.2500,1322.8466,10.8203);
SetPlayerCameraLookAt(playerid,2020.2500,1322.8466,10.8203);
return 1;
}
public OnPlayerConnect(playerid)
{
new pName[MAX_PLAYER_NAME];
new string[48];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s hat den Server betreten.", pName);
SendClientMessageToAll(0xFF1E00FF, string);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new pName[MAX_PLAYER_NAME];
new string[56];
GetPlayerName(playerid, pName, sizeof(pName));
switch(reason)
{
case 0: format(string, sizeof(string), "%s hat einen Crash!", pName);
case 1: format(string, sizeof(string), "%s hat das Spiel beendet.", pName);
case 2: format(string, sizeof(string), "%s wurde gebannt / gekickt.", pName);
}
SendClientMessageToAll(0xCD0000FF, string);
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/bsn",true)==0)
{
SetPlayerPos(playerid,1207.6945,-923.7347,42.9371);
SendClientMessage(playerid,0x5F0000FF,"Du wurdest zum Burger Shot North teleportiert.");
return 1;
}
if(strcmp(cmdtext,"/lspd",true)==0)
{
SetPlayerPos(playerid,1541.2350,-1675.0767,13.5522);
SendClientMessage(playerid,0x5F0000FF,"Du wurdest zum LSPD teleportiert.");
return 1;
}
if(strcmp(cmdtext,"/sh",true)==0)
{
SetPlayerPos(playerid,1481.3364,-1764.7733,18.7958);
SendClientMessage(playerid,0xFF5A00FF,"Du wurdest zur Stadthalle teleportiert.");
return 1;
}
if(strcmp(cmdtext,"/beach",true)==0)
{
SetPlayerPos(playerid,397.7111,-1796.4469,7.8281);
SendClientMessage(playerid,0xC3FF00FF,"Du wurdest zum Santa Maria Beach teleportiert.");
return 1;
}
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid==bsnenter)
{
SetPlayerPos(playerid,364.9191,-73.7587,1001.5078);
SetPlayerInterior(playerid,10);
}
if(pickupid==bsnexit)
{
SetPlayerPos(playerid,1199.5187,-921.8276,43.0248);
SetPlayerFacingAngle(playerid,87.8891);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
}
if(pickupid==lspdenter)
{
SetPlayerPos(playerid,288.5846,170.7414,1007.1794);
SetPlayerInterior(playerid,3);
}
if(pickupid==lspdexit)
{
SetPlayerPos(playerid,1550.9054,-1675.4788,15.6134);
SetPlayerFacingAngle(playerid,92.6391);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
}
if(pickupid==garageenter)
{
SetPlayerPos(playerid,1567.5837,-1693.9847,5.8906);
SetPlayerFacingAngle(playerid,177.2165);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
}
if(pickupid==garageexit)
{
SetPlayerPos(playerid,238.5677,142.3438,1003.0234);
SetPlayerInterior(playerid,3);
}
if(pickupid==shenter)
{
SetPlayerPos(playerid,1710.433715,-1669.379272,20.225049);
SetPlayerInterior(playerid,18);
}
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
public SendMSG()
{
new randMSG = random(sizeof(RandomMSG));
SendClientMessageToAll(0xC3FF00FF, RandomMSG[randMSG]);
}
Bitte helfen ... <.<