Slike ili Video: Klik
Opis i dodatne informacije: Ispod
Download link: Github link
Credits: iAmir (autor)
CreateWater.inc
Informacije:
Quote
So a week ago that I was working on my project , water waves annoyed me so much , I thought why not making it server sided!?
And I started making zones with NO COLL objects and set their material as water texture.
then scripted a server sided swiming (and big thanks to SAMP Devs , vectors update (camera rate) updates really late! like +500ms , but it works , no other way (as I know) , and also you can keep holding KEY_AIM , because it sets update timer less than without holding it) .
And I started making zones with NO COLL objects and set their material as water texture.
then scripted a server sided swiming (and big thanks to SAMP Devs , vectors update (camera rate) updates really late! like +500ms , but it works , no other way (as I know) , and also you can keep holding KEY_AIM , because it sets update timer less than without holding it) .
Functions:
CreateWater(minx , miny , maxx , maxy , z , depth);
// parametri: minx/y i maxx/y rade na isti nacin kao kod kreiranja zona , z za Z kord. i depth za dubinu/visinu.
IsPlayerInWaterEx(playerid);
// return 1 ako je igrac u vodi, return 0 ako nije.
GetPlayerWaterID(playerid);
// return ID vode u kojoj igrac pliva.
GetWaterDepth(waterid);
// return Dubina vode.
GetPlayerSwimStyle(playerid);
// return Igracev stil plivanja.
Callbacks:
public OnPlayerEnterWater(playerid , waterid)
public OnPlayerLeaveWater(playerid , waterid)
// Pozivaju se kad igrac udje/izadje iz vode.
Stilovi Plivanja:
enum
{
SWIM_STYLE_IDLE_ON_WATER,
SWIM_STYLE_MOVE_ON_WATER,
SWIM_STYLE_DIVE_UNDER_WATER,
SWIM_STYLE_MOVE_UNDER_WATER,
SWIM_STYLE_COMING_UP,
SWIM_STYLE_MOVE_FAST_ON_WATER,
SWIM_STYLE_INVALID
}
Da bi skripta radila trebate:
Streamer - Plugin Thread > http://forum.sa-mp.com/showthread.php?t=102865
y_hook (YSI) - Download > https://github.com/Southclaws/YSI-4.0
Credits:
Quote
Incognito - for Streamer Plugin
Y_Less - for YSI
a Guy - with his flymode in my archives (got some ideas from it for movements)
a Guy - for SetPlayerLookAt function
Y_Less - for YSI
a Guy - with his flymode in my archives (got some ideas from it for movements)
a Guy - for SetPlayerLookAt function
Bugovi i ideje:
Slobodno iznesite svoje ideje ili prijavite bugove ovde!
PS. include sam objavio jer moze pomoci mnogima u stvaranju gamemoda ili filterscripti a i mnogi traze slicnu stvar...


