public OnGameModeInit()
{
CreateObject(5749,2527.8999000,-1631.8000500,15.6000000,0.0000000,0.0000000,0.0000 000); //object(road_lawn10) (1)
CreateObject(6964,2088.6001000,-2394.8999000,29.0000000,0.0000000,0.0000000,0.0000 000); //object(venefountwat02) (1)
CreateObject(7206,1895.0999800,-2373.1999500,52.8000000,0.0000000,0.0000000,0.0000 000); //object(vgsnnitlit02) (1)
CreateObject(3607,836.9000200,-2050.6999500,18.0000000,0.0000000,0.0000000,0.0000 000); //object(bevman2_law2) (1)
CreateObject(16008,836.5999800,-1973.3000500,19.4000000,0.0000000,0.0000000,0.0000 000); //object(des_nbrstruct) (1)
CreateObject(1640,824.5605500,-1820.3877000,11.2089900,0.0000000,0.0000000,0.0000 000); //object(beachtowel04) (1)
CreateObject(8483,409.6000100,-1855.1999500,9.1000000,0.0000000,0.0000000,0.00000 00); //object(pirateland02_lvs) (1)
CreateObject(7264,833.0999800,-2093.5000000,0.0000000,0.0000000,0.0000000,0.00000 00); //object(casinoblock3_nt) (1)
CreateObject(3749,1497.4000200,-698.7999900,99.6000000,0.0000000,0.0000000,0.00000 00); //object(clubgate01_lax) (1)
CreateObject(3524,1507.5000000,-698.9000200,96.6000000,0.0000000,0.0000000,0.00000 00); //object(skullpillar01_lvs) (1)
CreateObject(3524,1486.9000200,-699.9000200,96.6000000,0.0000000,0.0000000,0.00000 00); //object(skullpillar01_lvs) (2)
CreateObject(3528,1499.8000500,-701.2999900,99.5000000,3.0000000,10.0000000,230.00 00000); //object(vgsedragon) (1)
CreateObject(3528,1493.5999800,-701.7999900,99.5000000,3.0000000,10.0000000,318.00 00000); //object(vgsedragon) (2)
CreateObject(9833,1504.9000200,-703.0999800,97.0000000,0.0000000,0.0000000,0.00000 00); //object(fountain_sfw) (1)
CreateObject(9833,1489.5999800,-703.2000100,97.0000000,0.0000000,0.0000000,0.00000 00); //object(fountain_sfw) (2)
CreateObject(3472,1502.8000500,-687.9000200,93.8000000,0.0000000,0.0000000,0.00000 00); //object(circuslampost03) (1)
CreateObject(3472,1491.8000500,-687.5999800,93.8000000,0.0000000,0.0000000,0.00000 00); //object(circuslampost03) (2)
CreateObject(3524,1494.5999800,-687.5999800,96.7000000,0.0000000,0.0000000,0.00000 00); //object(skullpillar01_lvs) (4)
CreateObject(3524,1499.3000500,-687.5000000,96.7000000,0.0000000,0.0000000,0.00000 00); //object(skullpillar01_lvs) (5)
CreateObject(3528,1497.0000000,-689.4000200,99.9000000,0.0000000,0.0000000,274.500 0000); //object(vgsedragon) (3)
CreateObject(355,1493.0078100,-697.7734400,93.8558000,0.0000000,0.0000000,0.00000 00); //object(1)
CreateObject(323,1491.5999800,-698.9000200,94.6000000,0.0000000,0.0000000,0.00000 00); //object(2)
CreateObject(14637,1480.9824200,-688.7812500,95.9340400,0.0000000,0.0000000,0.00000 00); //object(triad_dragon) (1)
return 1;
Add it under this OnGameModeInit
Like this, PHP код:
|
Where do i find the OnGameModeInit if i get answer you get rep.
|
/* Your Map (its fs, include in your server,cfg) */ #include <a_samp> public OnFilterScriptInit() { CreateObject(5749,2527.8999000,-1631.8000500,15.6000000,0.0000000,0.0000000,0.0000); //object(road_lawn10) (1) CreateObject(6964,2088.6001000,-2394.8999000,29.0000000,0.0000000,0.0000000,0.0000); //object(venefountwat02) (1) CreateObject(7206,1895.0999800,-2373.1999500,52.8000000,0.0000000,0.0000000,0.0000); //object(vgsnnitlit02) (1) CreateObject(3607,836.9000200,-2050.6999500,18.0000000,0.0000000,0.0000000,0.0000); //object(bevman2_law2) (1) CreateObject(16008,836.5999800,-1973.3000500,19.4000000,0.0000000,0.0000000,0.0000); //object(des_nbrstruct) (1) CreateObject(1640,824.5605500,-1820.3877000,11.2089900,0.0000000,0.0000000,0.0000); //object(beachtowel04) (1) CreateObject(8483,409.6000100,-1855.1999500,9.1000000,0.0000000,0.0000000,0.00000); //object(pirateland02_lvs) (1) CreateObject(7264,833.0999800,-2093.5000000,0.0000000,0.0000000,0.0000000,0.00000); //object(casinoblock3_nt) (1) CreateObject(3749,1497.4000200,-698.7999900,99.6000000,0.0000000,0.0000000,0.00000); //object(clubgate01_lax) (1) CreateObject(3524,1507.5000000,-698.9000200,96.6000000,0.0000000,0.0000000,0.00000); //object(skullpillar01_lvs) (1) CreateObject(3524,1486.9000200,-699.9000200,96.6000000,0.0000000,0.0000000,0.00000); //object(skullpillar01_lvs) (2) CreateObject(3528,1499.8000500,-701.2999900,99.5000000,3.0000000,10.0000000,230.00); //object(vgsedragon) (1) CreateObject(3528,1493.5999800,-701.7999900,99.5000000,3.0000000,10.0000000,318.00); //object(vgsedragon) (2) CreateObject(9833,1504.9000200,-703.0999800,97.0000000,0.0000000,0.0000000,0.00000); //object(fountain_sfw) (1) CreateObject(9833,1489.5999800,-703.2000100,97.0000000,0.0000000,0.0000000,0.00000); //object(fountain_sfw) (2) CreateObject(3472,1502.8000500,-687.9000200,93.8000000,0.0000000,0.0000000,0.00000); //object(circuslampost03) (1) CreateObject(3472,1491.8000500,-687.5999800,93.8000000,0.0000000,0.0000000,0.00000); //object(circuslampost03) (2) CreateObject(3524,1494.5999800,-687.5999800,96.7000000,0.0000000,0.0000000,0.00000); //object(skullpillar01_lvs) (4) CreateObject(3524,1499.3000500,-687.5000000,96.7000000,0.0000000,0.0000000,0.00000); //object(skullpillar01_lvs) (5) CreateObject(3528,1497.0000000,-689.4000200,99.9000000,0.0000000,0.0000000,274.500); //object(vgsedragon) (3) CreateObject(355,1493.0078100,-697.7734400,93.8558000,0.0000000,0.0000000,0.00000); //object(1) CreateObject(323,1491.5999800,-698.9000200,94.6000000,0.0000000,0.0000000,0.00000); //object(2) CreateObject(14637,1480.9824200,-688.7812500,95.9340400,0.0000000,0.0000000,0.00000); //object(triad_dragon) (1) return 1; } public OnFilterScriptExit() { for(new i; i<MAX_OBJECTS; i++) { if(IsValidObject(i)) DestroyObject(i); } return 1; }
Since you are beginner you may find difficulties,
Therefore compile this and add in your filterscript folder. Код:
/* Your Map (its fs, include in your server,cfg) */ #include <a_samp> public OnFilterScriptInit() { CreateObject(5749,2527.8999000,-1631.8000500,15.6000000,0.0000000,0.0000000,0.0000); //object(road_lawn10) (1) CreateObject(6964,2088.6001000,-2394.8999000,29.0000000,0.0000000,0.0000000,0.0000); //object(venefountwat02) (1) CreateObject(7206,1895.0999800,-2373.1999500,52.8000000,0.0000000,0.0000000,0.0000); //object(vgsnnitlit02) (1) CreateObject(3607,836.9000200,-2050.6999500,18.0000000,0.0000000,0.0000000,0.0000); //object(bevman2_law2) (1) CreateObject(16008,836.5999800,-1973.3000500,19.4000000,0.0000000,0.0000000,0.0000); //object(des_nbrstruct) (1) CreateObject(1640,824.5605500,-1820.3877000,11.2089900,0.0000000,0.0000000,0.0000); //object(beachtowel04) (1) CreateObject(8483,409.6000100,-1855.1999500,9.1000000,0.0000000,0.0000000,0.00000); //object(pirateland02_lvs) (1) CreateObject(7264,833.0999800,-2093.5000000,0.0000000,0.0000000,0.0000000,0.00000); //object(casinoblock3_nt) (1) CreateObject(3749,1497.4000200,-698.7999900,99.6000000,0.0000000,0.0000000,0.00000); //object(clubgate01_lax) (1) CreateObject(3524,1507.5000000,-698.9000200,96.6000000,0.0000000,0.0000000,0.00000); //object(skullpillar01_lvs) (1) CreateObject(3524,1486.9000200,-699.9000200,96.6000000,0.0000000,0.0000000,0.00000); //object(skullpillar01_lvs) (2) CreateObject(3528,1499.8000500,-701.2999900,99.5000000,3.0000000,10.0000000,230.00); //object(vgsedragon) (1) CreateObject(3528,1493.5999800,-701.7999900,99.5000000,3.0000000,10.0000000,318.00); //object(vgsedragon) (2) CreateObject(9833,1504.9000200,-703.0999800,97.0000000,0.0000000,0.0000000,0.00000); //object(fountain_sfw) (1) CreateObject(9833,1489.5999800,-703.2000100,97.0000000,0.0000000,0.0000000,0.00000); //object(fountain_sfw) (2) CreateObject(3472,1502.8000500,-687.9000200,93.8000000,0.0000000,0.0000000,0.00000); //object(circuslampost03) (1) CreateObject(3472,1491.8000500,-687.5999800,93.8000000,0.0000000,0.0000000,0.00000); //object(circuslampost03) (2) CreateObject(3524,1494.5999800,-687.5999800,96.7000000,0.0000000,0.0000000,0.00000); //object(skullpillar01_lvs) (4) CreateObject(3524,1499.3000500,-687.5000000,96.7000000,0.0000000,0.0000000,0.00000); //object(skullpillar01_lvs) (5) CreateObject(3528,1497.0000000,-689.4000200,99.9000000,0.0000000,0.0000000,274.500); //object(vgsedragon) (3) CreateObject(355,1493.0078100,-697.7734400,93.8558000,0.0000000,0.0000000,0.00000); //object(1) CreateObject(323,1491.5999800,-698.9000200,94.6000000,0.0000000,0.0000000,0.00000); //object(2) CreateObject(14637,1480.9824200,-688.7812500,95.9340400,0.0000000,0.0000000,0.00000); //object(triad_dragon) (1) return 1; } public OnFilterScriptExit() { for(new i; i<MAX_OBJECTS; i++) { if(IsValidObject(i)) DestroyObject(i); } return 1; } |