SA-MP Forums Archive
[FS/MAP]Cave - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FS/MAP]Cave (/showthread.php?tid=98171)



[FS/MAP]Cave - dioptrie - 19.09.2009

hi I made this long time ago. It is Cave with present inside!!!
you must find a bomb , plant it, and detonate. so big stone is destroyed now
you can take lost money in cave but there is some Info pickup!!! take the
Info pickup and....... you must see it!



screens

http://imgup.irrlicht3d.cz/soubor/bbf3d35a/gallery1.jpg
http://imgup.irrlicht3d.cz/soubor/b544ea67/gallery2.jpg
http://imgup.irrlicht3d.cz/soubor/6e54b408/gallery3.jpg
http://imgup.irrlicht3d.cz/soubor/0063a769/gallery4.jpg
map
http://imgup.screenmaker.org/vip/sou...mapa-cista.jpg

Код:
#include <a_samp>
new info;
new penize;
new penize2;
new penize3;
new penize1;
new brana;
new bomba;
new plant[MAX_PLAYERS];
new otvor;
new kaminek;
#define COLOR_YELLOW 0xFFFF00AA // ћlutб barva
public OnGameModeInit()
{
CreateObject(897, 2100.469727, -2455.027832, 14.402079, 0.0000, 0.0000, 0.0000);
CreateObject(897, 2109.021240, -2454.574219, 14.352079, 0.0000, 0.0000, 326.2500);
CreateObject(897, 2115.465088, -2454.816650, 14.552084, 0.0000, 0.0000, 337.5000);
CreateObject(897, 2120.535645, -2454.292725, 13.727081, 0.0000, 0.0000, 0.0000);
CreateObject(897, 2103.035156, -2455.133545, 18.932467, 0.0000, 0.0000, 0.0000);
CreateObject(897, 2111.422363, -2454.673584, 19.491745, 0.0000, 0.0000, 0.0000);
CreateObject(897, 2118.158447, -2454.699951, 19.201765, 0.0000, 0.0000, 0.0000);
CreateObject(897, 2098.149414, -2474.195557, 11.677078, 0.0000, 0.0000, 0.0000);
CreateObject(897, 2105.913818, -2473.751953, 13.427078, 0.0000, 0.0000, 0.0000);
CreateObject(897, 2111.783203, -2475.510986, 13.154308, 0.0000, 0.0000, 0.0000);
CreateObject(897, 2119.228027, -2476.062256, 13.127079, 0.0000, 0.0000, 0.0000);
CreateObject(897, 2126.826172, -2475.238281, 12.602079, 0.0000, 0.0000, 0.0000);
CreateObject(897, 2125.088135, -2476.252441, 15.817390, 0.0000, 0.0000, 0.0000);
CreateObject(897, 2117.612305, -2475.909180, 16.645493, 0.0000, 0.0000, 0.0000);
CreateObject(897, 2109.941650, -2475.726074, 16.474281, 0.0000, 0.0000, 0.0000);
CreateObject(897, 2102.288574, -2475.221924, 16.944824, 0.0000, 0.0000, 0.0000);
CreateObject(897, 2104.779053, -2472.723633, 23.767315, 0.0000, 0.0000, 0.0000);
CreateObject(897, 2105.043945, -2458.232910, 23.963547, 0.0000, 0.0000, 0.0000);
CreateObject(897, 2105.751465, -2465.809814, 25.225822, 0.0000, 0.0000, 0.0000);
CreateObject(897, 2112.455566, -2472.656250, 23.939589, 0.0000, 0.0000, 0.0000);
CreateObject(897, 2113.359375, -2459.528564, 25.535616, 0.0000, 0.0000, 0.0000);
CreateObject(897, 2110.140625, -2465.099365, 27.304649, 0.0000, 0.0000, 0.0000);
CreateObject(897, 2126.729248, -2470.624023, 13.402079, 0.0000, 0.0000, 0.0000);
CreateObject(897, 2127.969727, -2462.194092, 12.427080, 0.0000, 0.0000, 0.0000);
CreateObject(897, 2127.204590, -2459.549561, 18.676264, 0.0000, 0.0000, 0.0000);
CreateObject(897, 2128.952148, -2466.271973, 18.146572, 0.0000, 0.0000, 0.0000);
CreateObject(897, 2124.712891, -2475.346191, 20.978161, 0.0000, 0.0000, 0.0000);
CreateObject(897, 2120.217773, -2475.253418, 24.501375, 0.0000, 0.0000, 0.0000);
CreateObject(897, 2121.419678, -2458.223145, 24.647896, 0.0000, 0.0000, 0.0000);
CreateObject(897, 2127.341797, -2466.638916, 25.687428, 0.0000, 0.0000, 0.0000);
CreateObject(897, 2119.677246, -2466.133301, 27.804333, 0.0000, 0.0000, 0.0000);
CreateObject(3461, 2095.140381, -2459.248291, 14.121886, 0.0000, 0.0000, 0.0000);
CreateObject(3461, 2094.628906, -2468.817871, 14.121886, 0.0000, 0.0000, 0.0000);
CreateObject(3524, 2096.487549, -2473.363525, 19.914379, 0.0000, 0.0000, 270.0000);
CreateObject(3524, 2097.379639, -2455.086182, 20.960955, 0.0000, 0.0000, 270.0000);
CreateObject(3525, 2101.107910, -2459.646729, 17.663301, 0.0000, 0.0000, 0.0000);
CreateObject(3525, 2100.836670, -2469.639648, 17.527243, 0.0000, 0.0000, 180.0000);
CreateObject(3528, 2101.342529, -2464.918701, 26.597317, 0.0000, 0.0000, 180.0000);
CreateObject(6865, 2115.341064, -2470.387451, 17.330688, 0.0000, 0.0000, 247.5000);
CreateObject(14608, 2120.781006, -2464.941162, 14.117901, 0.0000, 0.0000, 45.0000);
CreateObject(16113, 2084.443848, -2438.453125, 11.302876, 0.0000, 0.0000, 112.5000);
CreateObject(16113, 2078.302734, -2486.108643, 10.770098, 0.0000, 0.0000, 135.0000);
CreateObject(16113, 2110.791992, -2498.700195, 9.702854, 0.0000, 0.0000, 213.7500);
CreateObject(16113, 2135.186279, -2429.855469, 9.152855, 0.0000, 0.0000, 315.0000);
CreateObject(897, 2137.125732, -2500.081055, 17.552080, 0.0000, 0.0000, 0.0000);
CreateObject(897, 2141.448242, -2499.430908, 17.852079, 0.0000, 0.0000, 0.0000);
CreateObject(1304, 2146.907471, -2497.278320, 13.474506, 0.0000, 0.0000, 0.0000);
CreateObject(1304, 2148.142578, -2497.366455, 13.474506, 0.0000, 0.0000, 0.0000);
CreateObject(1304, 2146.999268, -2497.684326, 14.857508, 0.0000, 0.0000, 0.0000);
CreateObject(1304, 2148.026855, -2497.888916, 14.906368, 0.0000, 0.0000, 0.0000);
CreateObject(1304, 2146.999268, -2498.144531, 16.277504, 0.0000, 0.0000, 0.0000);
CreateObject(1304, 2147.942139, -2498.356934, 16.373985, 0.0000, 0.0000, 0.0000);
CreateObject(1304, 2148.072510, -2498.531982, 17.833908, 0.0000, 0.0000, 0.0000);
CreateObject(1304, 2147.225586, -2498.743164, 17.789749, 0.0000, 0.0000, 0.0000);
CreateObject(1304, 2148.033447, -2498.960449, 19.307432, 0.0000, 0.0000, 0.0000);
CreateObject(1304, 2147.480469, -2499.050293, 19.230787, 0.0000, 0.0000, 0.0000);
CreateObject(1279, 2120.144775, -2460.073242, 12.578862, 0.0000, 0.0000, 0.0000);
CreateObject(1576, 2119.752686, -2460.792725, 12.524302, 0.0000, 0.0000, 0.0000);
CreateObject(1636, 2117.852051, -2468.294678, 12.659879, 0.0000, 0.0000, 0.0000);
CreateObject(2035, 2118.342041, -2465.112305, 12.571312, 0.0000, 0.0000, 326.2500);
CreateObject(2044, 2118.571777, -2462.614258, 12.574408, 0.0000, 0.0000, 326.2500);
CreateObject(2060, 2117.498291, -2466.517334, 12.703531, 0.0000, 0.0000, 0.0000);
CreateObject(2061, 2119.281006, -2461.983398, 12.838804, 0.0000, 0.0000, 337.5000);
CreateObject(2228, 2115.060059, -2469.814941, 13.102823, 0.0000, 0.0000, 315.0000);
CreateObject(2709, 2119.802002, -2460.222656, 12.978912, 0.0000, 0.0000, 0.0000);
CreateObject(954, 2122.025146, -2460.539551, 12.593270, 92.8191, 359.1406, 348.8273);
CreateObject(1276, 2116.535645, -2469.196045, 12.875433, 0.0000, 0.0000, 326.2500);
brana = CreateObject(987, 2108.911865, -2458.950684, 19.946865, 0.0000, 0.0000, 270.0000);
kaminek = CreateObject(898, 2104.272705, -2462.772461, 16.507359, 0.0000, 0.0000, 0.0000);
//pickups
penize2 = CreatePickup(1210, 2, 2119.190430, -2467.707031, 12.695313);
penize = CreatePickup(1212, 2, 2118.891357, -2468.068848, 12.572566);
penize1 = CreatePickup(1212, 2, 2119.289795, -2467.260986, 12.572566);
info = CreatePickup(1239,2, 2117.800781, -2463.486816, 12.741343);
penize3 = CreatePickup(1550, 2, 2119.250000, -2469.039795, 12.940217);
bomba = CreatePickup(1654, 2, 2232.5469,-2283.9768,14.3751);
otvor = CreatePickup(1239,2,2097.026855,-2466.489258,12.863983);

return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == info)
{
SendClientMessage(playerid,COLOR_YELLOW,"You are in trap.");
MoveObject(brana, 2108.911865, -2458.950684, 12.496979, 5);
}
if(pickupid == penize)
{
SendClientMessage(playerid,COLOR_YELLOW,"You found a money.");
GivePlayerMoney(playerid, 15000);
}
if(pickupid == penize1)
{
SendClientMessage(playerid,COLOR_YELLOW,"You found a money.");
GivePlayerMoney(playerid, 5000);
}
if(pickupid == penize2)
{
SendClientMessage(playerid,COLOR_YELLOW,"You found a money.");
GivePlayerMoney(playerid, 10000);
}
if(pickupid == penize3)
{
SendClientMessage(playerid,COLOR_YELLOW,"You found a money.");
GivePlayerMoney(playerid, 2500);
}
if(pickupid == bomba)
{
SendClientMessage(playerid,COLOR_YELLOW,"You found a bomb.");
plant[playerid]=1;
}
if(pickupid == otvor)
{
SendClientMessage(playerid,COLOR_YELLOW,"You must destroy a big stone.");
if (plant[playerid] == 0) return SendClientMessage(playerid,COLOR_YELLOW,"You dont have a bomb");
if (plant[playerid] == 1)
CreateExplosion(2097.026855,-2466.489258,12.863983, 7, 10000);
DestroyObject(kaminek);
return 1;
}
return 0;
}



Re: [FS/MAP]Cave - [XST]O_x - 19.09.2009

Nice


Re: [FS/MAP]Cave - Kurence - 19.09.2009

You are Czech?These variables


Re: [FS/MAP]Cave - dioptrie - 19.09.2009

and you are from Sk or CZ


Re: [FS/MAP]Cave - Kurence - 19.09.2009

SK


Re: [FS/MAP]Cave - dioptrie - 19.09.2009

pls comment this ex: 10/10 :P


Re: [FS/MAP]Cave - Correlli - 19.09.2009

Not bad.


Re: [FS/MAP]Cave - [NYRP]Mike. - 19.09.2009

Good Job mate, Keep the work up.

- Mike.