explosions script

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • ich habe 3 fragen :


    1.Also ich möchte das es in meinem Server 3 Minuten lang an der gleichen stelle explosionen gibt.
    Bis dahin ist die Feuerwehr da und löscht den brand.
    2.Gibt es ein script das dafür sorgt dass die Explosionen an von mir gewählten orten hintereinander starten ?
    zb:
    feuerwehr kommt,löscht,dann eine min. pause oder so und dann nächster brand.


    3.Wie bekomme ich es hin das der ort des feuers auf der karte angezeigt wird ?


    //Edit: Welche skin nummer hatt der feuerwehrmann ?

  • ich verstehe es nicht .
    wieso wird nur 1 feuer ausgelöst ?
    hier mein code :


    #include <a_samp>


    #if defined FILTERSCRIPT


    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print(" Firemans");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else



    main()
    {
    print("\n----------------------------------");
    print(" Fire in the Hand");
    print("----------------------------------\n");
    }


    #endif


    public OnGameModeInit()
    {

    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    SetTimer("feuer", 20000, 0);
    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    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,"/fire",true)==0)
    {
    SetTimer("feuer", 20000, 0);
    CreateExplosion(1228.5939,-917.2361,42.4308,1,179.5417);
    SendClientMessage(playerid,0x006A00FF,"Ein feuer ist ausgebrochen");

    }


    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;
    }

  • Ja wie viele Feuer wilst du denn haben?
    Kannst ja auch mehere machen
    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if(strcmp(cmdtext,"/fire",true)==0)
    {
    SetTimer("feuer", 20000, 0);
    CreateExplosion(1228.5939,-917.2361,42.4308,1,179.5417);
    CreateExplosion(1228.5939,-917.2361,42.4308,1,179.5417);
    CreateExplosion(1228.5939,-917.2361,42.4308,1,179.5417);
    CreateExplosion(1228.5939,-917.2361,42.4308,1,179.5417);
    CreateExplosion(1228.5939,-917.2361,42.4308,1,179.5417);
    CreateExplosion(1228.5939,-917.2361,42.4308,1,179.5417);
    SendClientMessage(playerid,0x006A00FF,"Ein feuer ist ausgebrochen");

    }


    return 1;
    }

    halt immer andere Coordinaten oder vertshe ich dich falsch?

  • ich möchte das auf der selben stelle immerwieder zb alle 0,5 sec eine explosion entsteht damit wenn die feuerwehr kommt es noch expldiert.
    und das für 4 min. oder so

  • Ja dann mach einfach denn timer auf 4 MINS und mach halt öffters
    CreateExplosion(1228.5939,-917.2361,42.4308,1,179.5417);


    CreateExplosion(1228.5939,-917.2361,42.4308,1,179.5417);
    CreateExplosion(1228.5939,-917.2361,42.4308,1,179.5417);
    CreateExplosion(1228.5939,-917.2361,42.4308,1,179.5417);
    CreateExplosion(1228.5939,-917.2361,42.4308,1,179.5417);
    CreateExplosion(1228.5939,-917.2361,42.4308,1,179.5417);
    CreateExplosion(1228.5939,-917.2361,42.4308,1,179.5417);
    CreateExplosion(1228.5939,-917.2361,42.4308,1,179.5417);


    ein paar mal halt auf die selben coords

  • das geht eben nicht .
    es macht einen knall und aus ist´s
    mach ich was falsch ?


    #include <a_samp>


    #if defined FILTERSCRIPT


    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print(" Firemans");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else



    main()
    {
    print("\n----------------------------------");
    print(" Fire in the Hand");
    print("----------------------------------\n");
    }


    #endif


    public OnGameModeInit()
    {

    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    SetTimer("feuer", 20000, 0);
    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerPos(playerid, 1228.8367,-918.9136,42.4397);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    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");
    SetTimer("feuer",400000, 0);
    CreateExplosion(1228.5939,-917.2361,42.4308,1,179.5417);
    CreateExplosion(1228.5939,-917.2361,42.4308,1,179.5417);
    CreateExplosion(1228.5939,-917.2361,42.4308,1,179.5417);
    CreateExplosion(1228.5939,-917.2361,42.4308,1,179.5417);
    CreateExplosion(1228.5939,-917.2361,42.4308,1,179.5417);
    CreateExplosion(1228.5939,-917.2361,42.4308,1,179.5417);
    CreateExplosion(1228.5939,-917.2361,42.4308,1,179.5417);
    CreateExplosion(1228.5939,-917.2361,42.4308,1,179.5417);
    CreateExplosion(1228.5939,-917.2361,42.4308,1,179.5417);
    CreateExplosion(1228.5939,-917.2361,42.4308,1,179.5417);
    CreateExplosion(1228.5939,-917.2361,42.4308,1,179.5417);
    CreateExplosion(1228.5939,-917.2361,42.4308,1,179.5417);
    CreateExplosion(1228.5939,-917.2361,42.4308,1,179.5417);
    CreateExplosion(1228.5939,-917.2361,42.4308,1,179.5417);
    CreateExplosion(1228.5939,-917.2361,42.4308,1,179.5417);
    CreateExplosion(1228.5939,-917.2361,42.4308,1,179.5417);
    CreateExplosion(1228.5939,-917.2361,42.4308,1,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;
    }

  • ich will nicht 1ne große sondern viele normale hintereinander 4 min. lang
    //edit
    es ist sehr wichtig ,bitte beeilt euch !

    Einmal editiert, zuletzt von stief ()

  • ah du woltest feuer habs gerade Gelesen hier haste feuer
    #include <a_samp>


    #if defined FILTERSCRIPT


    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print(" Firemans");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else



    main()
    {
    print("\n----------------------------------");
    print(" Fire in the Hand");
    print("----------------------------------\n");
    }


    #endif


    public OnGameModeInit()
    {


    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    SetTimer("feuer", 20000, 0);
    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerPos(playerid, 1228.8367,-918.9136,42.4397);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    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");
    SetTimer("feuer",400000, 0);
    CreateExplosion(1228.5939,-917.2361,42.4308,9,179.5417);
    CreateExplosion(1214.0469,-908.5978,48.0557,9,179.5417);
    CreateExplosion(1215.1349,-921.1403,42.9241,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;
    }
    Mach nen paar mal /fire ist dan Kraser Und immer mit der Ruhe

  • ich möchte doch das es oft hintereinander pasiert bei 1 mal eingeben.
    //edit
    gibt es explosion ohne sound?

    Einmal editiert, zuletzt von stief ()

  • #include <a_samp>


    #if defined FILTERSCRIPT


    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print(" Firemans");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else



    main()
    {
    print("\n----------------------------------");
    print(" Fire in the Hand");
    print("----------------------------------\n");
    }


    #endif


    public OnGameModeInit()
    {


    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    SetTimer("feuer", 20000, 0);
    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerPos(playerid, 1228.8367,-918.9136,42.4397);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    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");
    SetTimer("feuer",400000, 0);
    CreateExplosion(1228.5939,-917.2361,42.4308,9,179.5417);
    CreateExplosion(1214.0469,-908.5978,48.0557,9,179.5417);
    CreateExplosion(1215.1349,-921.1403,42.9241,9,179.5417);
    CreateExplosion(1228.5939,-917.2361,42.4308,9,179.5417);
    CreateExplosion(1214.0469,-908.5978,48.0557,9,179.5417);
    CreateExplosion(1215.1349,-921.1403,42.9241,9,179.5417);
    CreateExplosion(1228.5939,-917.2361,42.4308,9,179.5417);
    CreateExplosion(1214.0469,-908.5978,48.0557,9,179.5417);
    CreateExplosion(1215.1349,-921.1403,42.9241,9,179.5417);
    CreateExplosion(1228.5939,-917.2361,42.4308,9,179.5417);
    CreateExplosion(1214.0469,-908.5978,48.0557,9,179.5417);
    CreateExplosion(1215.1349,-921.1403,42.9241,9,179.5417);
    CreateExplosion(1228.5939,-917.2361,42.4308,9,179.5417);
    CreateExplosion(1214.0469,-908.5978,48.0557,9,179.5417);
    CreateExplosion(1215.1349,-921.1403,42.9241,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;
    }
    Die sache mit checkpoint ist so
    SetPlayerCheckpoint(playerid, 1982.6150, -220.6680, -0.2432, 3.0);

    Einmal editiert, zuletzt von PrOOnOOb ()

  • Also eins verstehg ich net wieso
    SetTimer("feuer",400000, 0);
    das iss net ma definiert...



    forward feuer
    new feuertimer;
    new feuertt;


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if(strcmp(cmdtext,"/fire",true)==0)
    {
    SendClientMessage(playerid,0x006A00FF,"Ein feuer ist ausgebrochen");
    feuertt = SetTimer("feuer",100, 0);
    feuertimer +=1;
    }
    return 1;
    }


    public feuer()
    {
    if(feuertimer >=1)
    {
    if(feuertimer ==2)
    {
    CreateExplosion(1228.5939,-917.2361,42.4308,9,179.5417);
    }
    else if(feuertimer ==3)
    {
    CreateExplosion(1228.5939,-917.2361,42.4308,9,179.5417);
    }
    else if(feuertimer ==4)
    {
    CreateExplosion(1228.5939,-917.2361,42.4308,9,179.5417);
    }
    else if(feuertimer ==5)
    {
    CreateExplosion(1228.5939,-917.2361,42.4308,9,179.5417);
    KillTimer(feuertt);
    }
    }

    timer musste selbst einstelln wie du ihn haben willst jedoch zur info feuer ist net synchron auch net mit 0.3


    /edit
    else if vergessen ^^

    Zitat

    naja aufm homeserver mit kumpel getestet und nix laggt von daher sollte nen richtiger server mit sowas keine probs haben

    *an Kopf schlag
    sowas kommt Raus wenn man erst absendet ohne nachzudenken. Bitte Leute Hirn einschalten beim Posten...

  • wenn ich den code von PaddyBoy einbaue bekomme ich diese fehlermeldungen


    C:\Program Files (x86)\Rockstar Games\gamemodes\firescript.pwn(22) : error 001: expected token: "(", but found "new"
    C:\Program Files (x86)\Rockstar Games\gamemodes\firescript.pwn(22) : error 001: expected token: ";", but found "-identifier-"
    C:\Program Files (x86)\Rockstar Games\gamemodes\firescript.pwn(22) : error 010: invalid function or declaration
    C:\Program Files (x86)\Rockstar Games\gamemodes\firescript.pwn(22) : fatal error 107: too many error messages on one line


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    4 Errors.


    hab ich ihn falsch eingebaut ?


    #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(" Blank Gamemode by your name here");
    print("----------------------------------\n");
    }


    #endif



    forward feuer
    new feuertimer;
    new feuertt;


    public OnGameModeInit()
    {


    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    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");
    feuertt = SetTimer("feuer",100, 0);
    feuertimer +=1;
    }
    return 1;
    }


    public feuer()
    {
    if(feuertimer >=1)
    {
    if(feuertimer ==2)
    {
    CreateExplosion(1228.5939,-917.2361,42.4308,9,179.5417);
    }
    else if(feuertimer ==3)
    {
    CreateExplosion(1228.5939,-917.2361,42.4308,9,179.5417);
    }
    else if(feuertimer ==4)
    {
    CreateExplosion(1228.5939,-917.2361,42.4308,9,179.5417);
    }
    else if(feuertimer ==5)
    {
    CreateExplosion(1228.5939,-917.2361,42.4308,9,179.5417);
    KillTimer(feuertt);
    }
    }



    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;
    }

  • sry muss hier etwas richtig stellen^^


    forward feuer();


    jetzt stimmts

    Zitat

    naja aufm homeserver mit kumpel getestet und nix laggt von daher sollte nen richtiger server mit sowas keine probs haben

    *an Kopf schlag
    sowas kommt Raus wenn man erst absendet ohne nachzudenken. Bitte Leute Hirn einschalten beim Posten...