SA-MP Forums Archive
Another probably silly question.. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Another probably silly question.. (/showthread.php?tid=276109)



Another probably silly question.. - Jmarr - 12.08.2011

Hello again,

I was wondering if there is anyway to have someone under water, but not lose health, and still be able to walk as if they are not underwater and on normal land? Is there anyway I can use MTA map editor to put something like a dome on the bottom to block the water? I remember a stunt server I was on where you could drive underwater perfectly normal, just wondering if I could replicate it in a similar way.

Let me know,

J.



Edit, very tired. Think I got all the grammar errors.


Re: Another probably silly question.. - Riddick94 - 12.08.2011

You wan't to walk/run/drive and other under water? just go to water and then type this:

pawn Код:
CMD:underwater(playerid, params[])
{
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    SetPlayerPos(playerid, X, Y, Z-10.0);
    return true;
}



AW: Another probably silly question.. - Nero_3D - 12.08.2011

Thats not hard just enter the water in any way just not through the surface, aka just teleport him underwhile while he was on land


Re: Another probably silly question.. - Jmarr - 12.08.2011

Worked! Thanks guys.