Majitel ffredyk 168 Odesláno: 18. Prosinec, 2011 Majitel Share Odesláno: 18. Prosinec, 2011 Jednoduchej, lehkej skript pro vaše vánoce... #include #define MP 50 new bool:Snowing; new Snow[MP]; public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/snih", cmdtext, true, 10) == 0) { SetWeather(9); StartSnowing(); return 1; } return 0; } public OnPlayerConnect(playerid) { if(Snowing) { new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid,X,Y,Z); Snow[playerid] = CreatePlayerObject(playerid,18864,X,Y,floatsub(Z,50.0),0,0,0); } } stock StartSnowing() { new Float:X,Float:Y,Float:Z; Snowing = true; for(new i;i { GetPlayerPos(i,X,Y,Z); Snow[i] = CreatePlayerObject(i,18864,X,Y,floatsub(Z,50.0),0,25,-135); } SetTimer("UpdateSnow",1000,0); } stock StopSnowing() { Snowing = false; for(new i;i { DestroyPlayerObject(i,Snow[i]); } } forward UpdateSnow(); public UpdateSnow() { if(Snowing) { new Float:X,Float:Y,Float:Z; for(new i;i { GetPlayerPos(i,X,Y,Z); SetPlayerObjectPos(i,Snow[i],X,Y,floatsub(Z,50.0)); } SetTimer("UpdateSnow",1000,0); } } Upravte si to jak potřebujete.. Script vytaženej a poupraven z mýho GM.. Testováno s rychlostí Infernuse, sníh se opravdu drží na hráčovo obrazovce, nedoporučuju tedy měnit hodnoty.. V letadle se sníh možná bude bugovat... Jelikož objekt není tolik velký aby pokryl letadlo a hráčovu obrazovku.. Script tedy není určen pro servery používající letadla.. Link to comment Share on other sites More sharing options...
mattmatt 20 Odesláno: 18. Prosinec, 2011 Share Odesláno: 18. Prosinec, 2011 Nice Fredy využije se 10/10 Link to comment Share on other sites More sharing options...
Guest Odesláno: 18. Prosinec, 2011 Share Odesláno: 18. Prosinec, 2011 Nebolo by lepšie attachnuť ten objekt na hráča ? (neskúšal som to) Link to comment Share on other sites More sharing options...
Majitel ffredyk 168 Odesláno: 18. Prosinec, 2011 Author Majitel Share Odesláno: 18. Prosinec, 2011 Nebolo by lepšie attachnuť ten objekt na hráča ? (neskúšal som to) 1. Vypadalo by to divně 2. Player objekty se nedají attachovat Link to comment Share on other sites More sharing options...
DooM 93 Odesláno: 18. Prosinec, 2011 Share Odesláno: 18. Prosinec, 2011 mas tam par chybek.. Link to comment Share on other sites More sharing options...
Majitel ffredyk 168 Odesláno: 18. Prosinec, 2011 Author Majitel Share Odesláno: 18. Prosinec, 2011 mas tam par chybek.. A že by jsi napsal jaký? Link to comment Share on other sites More sharing options...
Guest Odesláno: 18. Prosinec, 2011 Share Odesláno: 18. Prosinec, 2011 #include #define MP 50 new bool:Snowing; new Snow[MP]; public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/snih", cmdtext, true, 10) == 0) { SetWeather(9); StartSnowing(); return 1; } return 0; } public OnPlayerConnect(playerid) { if(Snowing) { new Float:X,Float:Y,Float:Z; GetPlayerPos(pid,X,Y,Z); Snow[playerid] = CreatePlayerObject(pid,18864,X,Y,floatsub(Z,50.0),0,0,0); } } stock StartSnowing() { new Float:X,Float:Y,Float:Z; Snowing = true; for(new i;i { GetPlayerPos(i,X,Y,Z); Snow[playerid] = CreatePlayerObject(i,18864,X,Y,floatsub(Z,50.0),0,25,-135); } SetTimer("UpdateSnow",1000,0); } stock StopSnowing() { Snowing = false; for(new i;i { DestroyPlayerObject(i,Snow[playerid]); } } forward UpdateSnow(); public UpdateSnow() { if(Snowing) { new Float:X,Float:Y,Float:Z; for(new i;i { GetPlayerPos(i,X,Y,Z); SetPlayerObjectPos(i,Snow[playerid],X,Y,floatsub(Z,50.0)); } SetTimer("UpdateSnow",1000,0); } } Tyhle, ale nic co by si někdo nedokázal opravit sám. GJ ffredy Jinak zde máte screen: Link to comment Share on other sites More sharing options...
Majitel ffredyk 168 Odesláno: 18. Prosinec, 2011 Author Majitel Share Odesláno: 18. Prosinec, 2011 No vidíš to.. Chybičky z přepisování Link to comment Share on other sites More sharing options...
Benalek 0 Odesláno: 18. Prosinec, 2011 Share Odesláno: 18. Prosinec, 2011 Pěkný, ale sněží ti v Interierů xD Link to comment Share on other sites More sharing options...
Majitel ffredyk 168 Odesláno: 18. Prosinec, 2011 Author Majitel Share Odesláno: 18. Prosinec, 2011 Pěkný, ale sněží ti v Interierů xD Tak si to uprav ne? Link to comment Share on other sites More sharing options...
Majitel ffredyk 168 Odesláno: 19. Prosinec, 2011 Author Majitel Share Odesláno: 19. Prosinec, 2011 Kdo to dal ku*va do odpadu a proč?! 1 Link to comment Share on other sites More sharing options...
ĐaVe 33 Odesláno: 19. Prosinec, 2011 Share Odesláno: 19. Prosinec, 2011 good fredy Link to comment Share on other sites More sharing options...
Guest Odesláno: 20. Prosinec, 2011 Share Odesláno: 20. Prosinec, 2011 ja nie fakt Link to comment Share on other sites More sharing options...
Deleted User 295 Odesláno: 20. Prosinec, 2011 Share Odesláno: 20. Prosinec, 2011 celkom slusne inak nemas to zo SAMP fora? Link to comment Share on other sites More sharing options...
MIKI785 14 Odesláno: 20. Prosinec, 2011 Share Odesláno: 20. Prosinec, 2011 Kdo to dal kua do odpadu a proč?! Tam voni presouvaj kazdy 2. tema, zvykni si Link to comment Share on other sites More sharing options...
Emppu 2 Odesláno: 20. Prosinec, 2011 Share Odesláno: 20. Prosinec, 2011 Nice! 10/10 Mimochodem, testoval jsem a ani v Shamalu při rychlosti 450 km/h se to nebuguje :hrac: Můžu to použít na FS? Link to comment Share on other sites More sharing options...
seky29 0 Odesláno: 24. Prosinec, 2011 Share Odesláno: 24. Prosinec, 2011 su tam chiby a nesnezi to Link to comment Share on other sites More sharing options...
Majitel ffredyk 168 Odesláno: 24. Prosinec, 2011 Author Majitel Share Odesláno: 24. Prosinec, 2011 su tam chiby a nesnezi to Chiby tam nejsů a sněží to perfektně Jen ty jsi takový idiot, že nedokážeš importovat do svého scriptu ani takovou jednoduchou věc, jako je tenhle sněžící skriptík. Chyba je leda mezi klávesnicí a židlí 2 Link to comment Share on other sites More sharing options...
iFailGamer 25 Odesláno: 17. Prosinec, 2012 Share Odesláno: 17. Prosinec, 2012 Dobrá práca ffredy! Myslím že týmto bude zaplnená celá CZ/SK "scéna" Link to comment Share on other sites More sharing options...
Mivčo 90 Odesláno: 17. Prosinec, 2012 Share Odesláno: 17. Prosinec, 2012 Dobre to je Hodim si to do modu ak mi to pojde Link to comment Share on other sites More sharing options...
Majitel ffredyk 168 Odesláno: 17. Prosinec, 2012 Author Majitel Share Odesláno: 17. Prosinec, 2012 Nevím jak vám, ale mě se ten kód nezobrazí celý, proto když si otevřete okno s citací prvního příspěvku, tam ten kód bude celý 1 Link to comment Share on other sites More sharing options...
Mivčo 90 Odesláno: 17. Prosinec, 2012 Share Odesláno: 17. Prosinec, 2012 hod mi sem ten script ale bez toho Prikazu aky to bolo že pridem na server a sneží Link to comment Share on other sites More sharing options...
GAMELASTERツ 73 Odesláno: 17. Prosinec, 2012 Share Odesláno: 17. Prosinec, 2012 Hustiuiuiuiuiuiuiiiiiiiiiiiiiii Link to comment Share on other sites More sharing options...
alienda 0 Odesláno: 21. Prosinec, 2012 Share Odesláno: 21. Prosinec, 2012 mohli by jste sem dát něco aby se to dalo stáhnout ? já to takhle neumím =) Link to comment Share on other sites More sharing options...
PowerCZ 0 Odesláno: 22. Prosinec, 2012 Share Odesláno: 22. Prosinec, 2012 co tam mám includovat dal sem tam a_samp a ono mi to padlo Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now