PDA

View Full Version : Help me with, SetPlayerGravity


Outbreak
17/08/2009, 07:43 PM
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?

coole210
18/08/2009, 12:29 AM
I never done anything really like this but maybe this will work...

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

Jay_
18/08/2009, 12:35 AM
No, that will set the gravity globally.

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

XCultz
18/08/2009, 12:40 AM
Good luck

Pharrel
01/09/2011, 10:56 PM
wrong thread...my bad