hi Leute,
ich entwickle gerade ein script das ein feuer am bsn verursacht.
weil ich einen feuerwehr server mache ud feuer nicht synkron ist soll es 3 minuten lang am stück an der selben stelle explodieren.
ich habe auch eine lösung gefunden ,doch das problem ist das mein entwickeltes script die explosion so schnell hintereinander wiederholt das mein server programm sich notbeendet.
leider kenne ich mich mit timern nicht aus also wenns um timer geht bitte ein komplettes script posten .
es würde auch reichen wenn es alle 4 sec. oder so explodiert.
ein großes ths im vorraus.
ach ja und hier mein script :
#include <a_samp>
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Fire in the hand");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
SetGameModeText("Fire Mode");
AddPlayerClass(277,1067.4998,-1775.4083,13.3411,213.8504, 42, 999999, 45, 1, 0, 0);
AddPlayerClass(274,1067.4998,-1775.4083,13.3411,213.8504,0,0,0,0,0,0); // position 1;
AddStaticVehicle(407,1082.1128,-1772.6693,13.5953,90.4029,3,1); // feuer 1
AddStaticVehicle(407,1081.9065,-1766.9294,13.6056,90.7794,3,1); // feuer 2
AddStaticVehicle(407,1081.7681,-1760.8680,13.6144,90.0919,3,1); // feuer 3
AddStaticVehicle(407,1081.4153,-1755.0056,13.6299,89.1087,3,1); // feuer 4
AddStaticVehicle(407,1061.9462,-1737.2511,13.7168,269.2231,3,1); // feuer 5
AddStaticVehicle(407,1062.2273,-1743.1107,13.7030,270.6420,3,1); // feuer 6
AddStaticVehicle(407,1061.9279,-1749.1504,13.6851,269.8146,3,1); // feuer 7
AddStaticVehicle(407,1061.6870,-1754.9567,13.6715,270.4079,3,1); // feuer 8
AddStaticVehicle(407,1061.9441,-1760.8724,13.6416,270.3437,3,1); // feuer 9
AddStaticVehicle(407,1061.8253,-1766.7687,13.6187,269.6853,3,1); // feuer 10
AddStaticVehicle(416,1098.6810,-1754.8152,13.5131,91.0028,1,3); // krank 1
AddStaticVehicle(416,1099.0592,-1760.9871,13.4989,89.1322,1,3); // krank 2
AddStaticVehicle(416,1099.2253,-1766.9064,13.4958,90.8285,1,3); // krank 3
AddStaticVehicle(416,1099.2522,-1772.6993,13.4934,90.5948,1,3); // krank 4
AddStaticVehicle(407,1062.0745,-1772.6953,13.5951,270.5820,3,1); // feuer 11
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,1067.4998,-1775.4083,13.3411);
SetPlayerFacingAngle(playerid,213.8504);
SetPlayerCameraPos(playerid,1069.2366,-1777.7145,13.5315);
SetPlayerCameraLookAt(playerid,1067.4998,-1775.4083,13.3411);
return 1;
}
public OnPlayerConnect(playerid)
{
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
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,1228.8367,-918.9136,42.4397);
SendClientMessage(playerid,0x006A00FF,"Du wurdest Teleportiert");
}
if(strcmp(cmdtext,"/fire",true)==0)
{
SendClientMessage(playerid,0x006A00FF,"Ein feuer ist ausgebrochen");
new wVar;
while(wVar == 0)
{
CreateExplosion(1228.5939,-917.2361,42.0000,9,179.5417);
}
}
return 1;
}
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)
{
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;
}