samp.directory
← Scripts and libraries

AmyrAhmady/CreateWater

Create CUSTOM WATERS in SA:MP and swim like a real one!

Library★ 15updated May 2018No licencePAWN
Open on GitHub

This repository has no licence file. It is public to read, but that alone does not give permission to reuse it.

Try it in the Pawn compiler →

Adds its include files, with the libraries it depends on, to the Pawn compiler in your browser, ready to include in a script.

README.md

CreateWater

Create CUSTOM WATERS in SA:MP and swim like a real one!

Functions :

  • CreateWater(minx, miny, maxx, maxy, z, depth, world=-1, interior=-1, type=WATER_TYPE_NORMAL);
  • IsPlayerInCustomWater(playerid);
  • IsPlayerUnderCustomWater(playerid);
  • GetPlayerWaterID(playerid);
  • GetWaterDepth(waterid);
  • GetPlayerSwimStyle(playerid);
  • DestroyWater(waterid);
  • GetPlayerCustomOxygen(playerid);
  • SetPlayerCustomOxygen(playerid, ox_value);
  • ShowCustomOxygenBarForPlayer(playerid);
  • HideCustomOxygenBarForPlayer(playerid);

Callbacks :

  • OnPlayerEnterWater(playerid, waterid)
  • OnPlayerLeaveWater(playerid, waterid)

This page is built from what GitHub publishes about the repository. samp.directory does not host the code. Report a problem with this listing

AmyrAhmady/CreateWater: SA-MP Library | samp.directory