freda 0 Odesláno: 19. Prosinec, 2013 Share Odesláno: 19. Prosinec, 2013 Zdravim neznáte nějaký filterscript, že když se přihlásíte na server, tak začne padat sníh? Link to comment Share on other sites More sharing options...
0 rhsCZ 19 Odesláno: 19. Prosinec, 2013 Share Odesláno: 19. Prosinec, 2013 stačí zapojit mozek a googlithttp://forum.sa-mp.com/showthread.php?t=296904si to uprav dle potřeby Link to comment Share on other sites More sharing options...
0 RIP 5 Odesláno: 19. Prosinec, 2013 Share Odesláno: 19. Prosinec, 2013 #include <a_samp> #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<MP;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<MP;i++) { DestroyPlayerObject(i,Snow[i]); } } forward UpdateSnow(); public UpdateSnow() { if(Snowing) { new Float:X,Float:Y,Float:Z; for(new i;i<MP;i++) { GetPlayerPos(i,X,Y,Z); SetPlayerObjectPos(i,Snow[i],X,Y,floatsub(Z,50.0)); } SetTimer("UpdateSnow",1000,0); } } Najlepšie Link to comment Share on other sites More sharing options...
0 ATomas 291 Odesláno: 19. Prosinec, 2013 Share Odesláno: 19. Prosinec, 2013 vytvor object 18864 a nastav drawdistance <= 300. CreateObject(18864,0,0,0,0,0,0,300); Pri nastaveni vysi drawdistance snih nebude padat, nedavno jsem to resil na sa-mp foru. Neni lepsi ten objekt na hrace ronou upnout, nez porad aktualizovat pozici ? Link to comment Share on other sites More sharing options...
0 freda 0 Odesláno: 20. Prosinec, 2013 Author Share Odesláno: 20. Prosinec, 2013 ok diky Link to comment Share on other sites More sharing options...
0 PiratesOfSamp 1 Odesláno: 9. Únor, 2014 Share Odesláno: 9. Únor, 2014 I ja sem se stoho neco naučil Diky Link to comment Share on other sites More sharing options...
0 PinkSmoothie 104 Odesláno: 9. Únor, 2014 Share Odesláno: 9. Únor, 2014 vytvor object 18864 a nastav drawdistance <= 300. CreateObject(18864,0,0,0,0,0,0,300); Pri nastaveni vysi drawdistance snih nebude padat, nedavno jsem to resil na sa-mp foru. Neni lepsi ten objekt na hrace ronou upnout, nez porad aktualizovat pozici ? ______ asi nie, skusal som to ale potom ked skocis tak aj ten sneh skoci s tebou. Link to comment Share on other sites More sharing options...
Dotaz
freda 0
Zdravim neznáte nějaký filterscript, že když se přihlásíte na server, tak začne padat sníh?
Link to comment
Share on other sites
6 odpovědí na tuto otázku
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