Jump to content

Question

Posted

Deci am inceput sa fac ceva mape prin map editor...am facut inceputul ,am copiat codurile din map editor exact asa cum au fost,le-am bagat intr-un FS la public OnFilterScriptInit() si cand intru pe server imi apar toate bine da nu imi apar masinile...codul pawno de la masini [pawn]CreateVehicle(425, 421.0405, 2535.9509, 20.1784, -182.3401, -1, -1, 100);

CreateVehicle(520, 388.4636, 2534.9656, 20.0853, -180.2401, -1, -1, 100);

CreateVehicle(432, 355.7495, 2535.1707, 19.8132, -179.1600, -1, -1, 100);

CreateVehicle(451, 323.2588, 2535.5208, 19.1207, -179.1003, -1, -1, 100);

CreateVehicle(452, 291.0547, 2534.8899, 18.8326, -176.2800, -1, -1, 100);[/pawn]

6 answers to this question

Recommended Posts

Posted

sub ongamemodin

<a href="http://www.game-state.eu/188.212.105.161:7777/"><img src="http://www.game-state.eu/188.212.105.161:7777/430x73_FFFFFF_FF9900_000000_000000.png" alt="www.Game-State.eu" style="border-style: none;" /></a>

Posted

deci am intr-un FS asa:

[pawn]public OnGameModeInit()

{

AddStaticVehicleEx (425, 421.0405, 2535.9509, 20.1784, -182.3401, -1, -1, 100);

AddStaticVehicleEx (520, 388.4636, 2534.9656, 20.0853, -180.2401, -1, -1, 100);

AddStaticVehicleEx (432, 355.7495, 2535.1707, 19.8132, -179.1600, -1, -1, 100);

AddStaticVehicleEx (451, 323.2588, 2535.5208, 19.1207, -179.1003, -1, -1, 100);

AddStaticVehicleEx (452, 291.0547, 2534.8899, 18.8326, -176.2800, -1, -1, 100);

return 1;

}[/pawn]

da am intrat mainainte in map editor am dat import scriptu asta si masinile tot nu imi apar..

Posted

Cum sa adaugi publicul OnGameModeInit intr-un filterscript ? 78.gif

Adaugi codurile urmatoare in gamemode sub OnGameModeInit:

[pawn]AddStaticVehicleEx(425, 421.0405, 2535.9509, 20.1784, -182.3401, -1, -1, 100);

AddStaticVehicleEx(520, 388.4636, 2534.9656, 20.0853, -180.2401, -1, -1, 100);

AddStaticVehicleEx(432, 355.7495, 2535.1707, 19.8132, -179.1600, -1, -1, 100);

AddStaticVehicleEx(451, 323.2588, 2535.5208, 19.1207, -179.1003, -1, -1, 100);

AddStaticVehicleEx(452, 291.0547, 2534.8899, 18.8326, -176.2800, -1, -1, 100);[/pawn]

Posted

Incearca sa le pui asa in FS.

public OnFilterScriptInit()
{
 CreateVehicle(425, 421.0405, 2535.9509, 20.1784, -182.3401, -1, -1, 100);
 CreateVehicle(520, 388.4636, 2534.9656, 20.0853, -180.2401, -1, -1, 100);
 CreateVehicle(432, 355.7495, 2535.1707, 19.8132, -179.1600, -1, -1, 100);
 CreateVehicle(451, 323.2588, 2535.5208, 19.1207, -179.1003, -1, -1, 100);
 CreateVehicle(452, 291.0547, 2534.8899, 18.8326, -176.2800, -1, -1, 100);
 return 1;
}

Acesta este un fel OnGameModeInit din GM.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.