Jump to content
  • 0

Ajutor


JilavaXXL

Question

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]

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

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..

Link to comment
Share on other sites

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]

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.