SA-MP Forums Archive
Help me with, SetPlayerGravity - 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)
+--- Thread: Help me with, SetPlayerGravity (/showthread.php?tid=91958)



Help me with, SetPlayerGravity - Outbreak - 17.08.2009

Hi, i'm trying to use this function SetPlayerGravity.

I know it will work if i use YSF, but YSF isnt compatable with my Linux server.

I've already tried it and asked the server providor and he explained to me why its incompatable.

So is there any way i can create this function myself?


Re: Help me with, SetPlayerGravity - coole210 - 18.08.2009

I never done anything really like this but maybe this will work...

pawn Код:
forward SetPlayerGravity(playerid,gravity);
public SetPlayerGravity(playerid,gravity)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(i == playerid)
        {
        SetGravity(gravity);
        }
    }
}



Re: Help me with, SetPlayerGravity - Jay_ - 18.08.2009

No, that will set the gravity globally.

It is only possible to create such a function using a plugin.


Re: Help me with, SetPlayerGravity - XCultz - 18.08.2009

Good luck


Re: Help me with, SetPlayerGravity - Pharrel - 01.09.2011

wrong thread...my bad