Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2012-10-27, 12:52


kwasniak78







Wiek: 28
Na forum: 5435 dni
Posty: 5

Piwa: 944

Respekt: 45,1

Ostrzeżeń: 60%
Napiszcie mi jak to zrobic albo dajcie w [code] nowe zeby padalo na lv,sf,ls
Kod:


#include <a_samp>
#include <streamer>

#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1

#define COLOR_GREEN 0x61FF4FFF

new ZablokujCMD[MAX_PLAYERS];

public OnFilterScriptInit()
{
Create3DTextLabel("/zima", 0x0060DEFF, 1271.037109375, -1270.4643554688, 2983.4631347656, 50.0, 0);

//zima:
CreateDynamicObject(10375, 1176.7336425781, -1428.4782714844, 2965.55078125, 270.4833984375, 346.10229492188, 167.49206542969);
CreateDynamicObject(10375, 1193.4398193359, -1436.8034667969, 2965.494140625, 270.4833984375, 346.10229492188, 167.49206542969);
CreateDynamicObject(10375, 1150.6586914063, -1437.9964599609, 2965.6870117188, 270.4833984375, 346.10229492188, 167.49206542969);
CreateDynamicObject(10375, 1202.5037841797, -1459.8615722656, 2965.4223632813, 270.4833984375, 346.10229492188, 256.9970703125);
CreateDynamicObject(10375, 1198.6929931641, -1460.7370605469, 2965.4672851563, 270.47790527344, 346.10229492188, 256.9921875);
CreateDynamicObject(10375, 1194.2874755859, -1460.5534667969, 2965.4572753906, 270.47790527344, 346.10229492188, 256.9921875);
CreateDynamicObject(10375, 1190.4676513672, -1460.8112792969, 2965.5932617188, 270.47790527344, 346.10229492188, 256.9921875);
CreateDynamicObject(10375, 1203.2312011719, -1500.6864013672, 2965.7023925781, 270.47790527344, 346.10229492188, 256.9921875);
CreateDynamicObject(10375, 1199.1743164063, -1504.7584228516, 2965.6721191406, 270.47790527344, 346.10229492188, 256.9921875);
CreateDynamicObject(10375, 1194.9920654297, -1503.8969726563, 2965.6323242188, 270.47790527344, 346.10229492188, 256.9921875);
CreateDynamicObject(10375, 1191.1252441406, -1503.6496582031, 2965.6723632813, 270.47790527344, 346.10229492188, 256.9921875);
CreateDynamicObject(10375, 1207.845703125, -1500.4140625, 2965.9201660156, 270.47790527344, 346.10229492188, 256.9921875);
CreateDynamicObject(10375, 1211.3969726563, -1501.6893310547, 2966.119140625, 270.47790527344, 346.10229492188, 78.211791992188);
CreateDynamicObject(766, 1279.1463623047, -1316.6065673828, 2980.6804199219, 0, 0, 0);
CreateDynamicObject(3915, 1344.8038330078, -1311.6551513672, 2980.9084472656, 0, 0, 0);
CreateDynamicObject(3915, 1306.6760253906, -1325.8684082031, 2980.7282714844, 0, 0, 276.53997802734);
CreateDynamicObject(3915, 1279.02734375, -1313.7818603516, 2978.9291992188, 0, 0, 183.10687255859);
CreateDynamicObject(3915, 1270.4534912109, -1287.6203613281, 2978.9924316406, 0, 0, 183.10363769531);
CreateDynamicObject(3915, 1279.0593261719, -1285.0778808594, 2979.7121582031, 0, 0, 183.10363769531);
CreateDynamicObject(3915, 1272.0632324219, -1298.1943359375, 2979.2412109375, 5.9549865722656, 0, 183.10363769531);
CreateDynamicObject(3915, 1271.1940917969, -1336.2684326172, 2978.845703125, 1.9845886230469, 0, 183.09814453125);
CreateDynamicObject(3915, 1279.8740234375, -1338.6081542969, 2979.025390625, 1.9830322265625, 0, 183.09814453125);
CreateDynamicObject(3915, 1279.1927490234, -1355.4020996094, 2979.0209960938, 5.9549865722656, 0, 0);
CreateDynamicObject(3915, 1284.4631347656, -1346.0095214844, 2979.400390625, 5.95458984375, 0, 0);
CreateDynamicObject(3915, 1268.7580566406, -1355.5935058594, 2979.2021484375, 5.95458984375, 0, 0);
CreateDynamicObject(3915, 1278.2692871094, -1366.0161132813, 2978.8786621094, 5.95458984375, 0, 91.535003662109);
CreateDynamicObject(3915, 1281.0311279297, -1369.5622558594, 2979.1520996094, 5.9490966796875, 0, 354.08758544922);
CreateDynamicObject(3915, 1253.8408203125, -1379.0947265625, 2978.8110351563, 5.943603515625, 0, 354.08386230469);
CreateDynamicObject(3915, 1255.2156982422, -1396.2045898438, 2978.78515625, 3.9586181640625, 0, 354.08386230469);
CreateDynamicObject(3915, 1252.1323242188, -1414.8426513672, 2979.0339355469, 3.955078125, 0, 2.018310546875);
CreateDynamicObject(3915, 1260.1617431641, -1418.51171875, 2978.7521972656, 5.9400634765625, 0, 2.0159912109375);
CreateDynamicObject(3915, 1248.6661376953, -1425.2266845703, 2979.3562011719, 5.9381103515625, 0, 2.0159912109375);
CreateDynamicObject(3915, 1239.9486083984, -1431.9162597656, 2979.4724121094, 5.9381103515625, 0, 2.0159912109375);
CreateDynamicObject(3915, 1230.1400146484, -1432.0356445313, 2979.3732910156, 5.9381103515625, 0, 2.0159912109375);
CreateDynamicObject(3915, 1220.2570800781, -1429.0656738281, 2979.4309082031, 5.9381103515625, 0, 2.0159912109375);
CreateDynamicObject(3915, 1211.3901367188, -1429.4060058594, 2979.552734375, 5.9381103515625, 0, 2.0159912109375);
CreateDynamicObject(3915, 1203.0032958984, -1430.6303710938, 2979.0773925781, 5.9381103515625, 0, 2.0159912109375);
CreateDynamicObject(3915, 1194.2648925781, -1431.8386230469, 2979.072265625, 5.9381103515625, 0, 2.0159912109375);
CreateDynamicObject(3915, 1185.6734619141, -1431.4139404297, 2979.0922851563, 5.9381103515625, 0, 2.0159912109375);
CreateDynamicObject(3915, 1178.4956054688, -1434.1634521484, 2979.1728515625, 5.9381103515625, 0, 2.0159912109375);
CreateDynamicObject(3915, 1168.4576416016, -1437.7803955078, 2979.1669921875, 5.9381103515625, 0, 4.0009765625);
CreateDynamicObject(3915, 1199.4075927734, -1439.8555908203, 2979.0710449219, 5.9381103515625, 0, 79.744018554688);
CreateDynamicObject(3915, 1200.1990966797, -1448.1818847656, 2979.0559082031, 5.9381103515625, 0, 79.73876953125);
CreateDynamicObject(3915, 1197.2296142578, -1456.5648193359, 2979.2365722656, 5.9381103515625, 0, 79.73876953125);
CreateDynamicObject(3915, 1201.3798828125, -1465.9622802734, 2979.2133789063, 5.9381103515625, 0, 79.73876953125);
CreateDynamicObject(3915, 1197.6103515625, -1474.0460205078, 2979.3779296875, 5.9381103515625, 0, 79.73876953125);
CreateDynamicObject(3915, 1195.6008300781, -1482.3759765625, 2979.3159179688, 5.9381103515625, 0, 79.73876953125);
CreateDynamicObject(3915, 1196.1999511719, -1491.1115722656, 2979.287109375, 5.9381103515625, 0, 79.73876953125);
CreateDynamicObject(3915, 1197.51171875, -1499.6455078125, 2979.1879882813, 5.9381103515625, 0, 79.73876953125);
CreateDynamicObject(3915, 1198.3311767578, -1509.1088867188, 2979.1667480469, 5.9381103515625, 0, 79.73876953125);
CreateDynamicObject(3915, 1200.4764404297, -1516.5811767578, 2979.1772460938, 5.9381103515625, 0, 79.73876953125);
CreateDynamicObject(3915, 1206.4449462891, -1509.9635009766, 2979.8059082031, 5.9381103515625, 0, 179.2587890625);
CreateDynamicObject(3915, 1206.9516601563, -1484.7921142578, 2979.7531738281, 5.9381103515625, 0, 179.25842285156);
return 1;
}

public OnPlayerConnect(playerid)
{
ZablokujCMD[playerid] = 0;
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
ZablokujCMD[playerid] = 0;
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if(ZablokujCMD[playerid] == 1 && strcmp(cmdtext, "/zimaexit", true))
return SendClientMessage(playerid, 0x00DE00FF, "{FF8400}Komendy {FF9800}zablokowane{FFAC00}. {FFC000}Wpisz {FFD400}/{FFE800}zimaexit {FFF500}aby {FFFF00}wyj??.");

dcmd(zima,4,cmdtext);
dcmd(zimaexit,8,cmdtext);
return 0;
}

dcmd_zima(playerid,cmdtext[])
{
#pragma unused cmdtext
TogglePlayerControllable(playerid, 0);
SetTimerEx("ZakonczLadowanie", 3999, false, "d", playerid);
new Float:X, Float:Y, Float:Z;
new Float:Angle;
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,Angle);
SetPlayerPos(playerid, 1271.037109375, -1270.4643554688, 2983.4631347656);
SetPlayerAttachedObject(playerid, 1, 18864, 2, 0.09, 0.03, 0, 88, 75, 0);
ZablokujCMD[playerid] = 1;
GameTextForPlayer(playerid, "~y~ZIMA",1000,1);
return 1;
}

dcmd_zimaexit(playerid,cmdtext[])
{
ZablokujCMD[playerid] = 0;
#pragma unused cmdtext
SetPlayerInterior(playerid, 0);
ResetPlayerWeapons(playerid);
SpawnPlayer(playerid);
SendClientMessage(playerid, COLOR_GREEN,"** Wyszed?e? z zimy :D **");
RemovePlayerAttachedObject(playerid, 18864);
return 1;
}

forward ZakonczLadowanie(playerid);
public ZakonczLadowanie(playerid)
{
TogglePlayerControllable(playerid, 1);
return 1;
}


[ Dodano: 2012-10-27, 12:53 ]
Troche CreateDymiObject usune?em poniewaz pisalo ze za d?uga wiadomosc.
dam browca za pomoc

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-10-27, 21:29


Lukasbank







Wiek: 30
Na forum: 5329 dni
Posty: 249
Nick w MP: [USD]LuXoR[X]

Piwa: 404

Respekt: 136,5
Respekt: 136,5

zr?b obiekty w sf , ls , lv , i b?dziesz mia? zime
tworzysz obiekt w
CreateDynamicObject

a id ?niegu to 10375 robisz sobie te obiekty i masz ?nieg

Postaw piwo autorowi tego posta
 

 
Tagi: jak :: zrobic :: zeby :: snieg :: padal
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN » [INNE] Jak zrobic zeby snieg padal w ls,lv,sf Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku