Jump to content
  • 0

Ajutor gravitatie


BaFFyJunior

Question

5 answers to this question

Recommended Posts

  • 0

Salut, in momentul in care playerul a ajuns in locatia dorita folosesti


    SetPlayerGravity(playerid,0.004);

iar cand ajunge inapoi


    SetPlayerGravity(playerid,0.008);// valoarea default pentru gravitatie

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

  • 0
1 hour ago, Mister said:

Salut, in momentul in care playerul a ajuns in locatia dorita folosesti


    SetPlayerGravity(playerid,0.004);

iar cand ajunge inapoi


    SetPlayerGravity(playerid,0.008);// valoarea default pentru gravitatie

Adica ceva de genul:
 

if(IsPlayerInRangeOfPoint(playerid, 50.0, 1347.93, 1445.73, 37.62))
	{
	SetGravity(0.002);
	}
else return SetGravity(0.008);

ar functiona?

 

EDIT: Daca folosesc SetPlayerGravity primesc eroare "symbol not defined".

Edited by BaFFyJunior
Link to comment
Share on other sites

  • 0
On 10/11/2018 at 3:38 PM, Mister said:

Salut, in momentul in care playerul a ajuns in locatia dorita folosesti


    SetPlayerGravity(playerid,0.004);

iar cand ajunge inapoi


    SetPlayerGravity(playerid,0.008);// valoarea default pentru gravitatie

Multumesc, am rezolvat. Am avut nevoie de un include totusi(pentru a nu primi eroarea "undefined symbol: SetPlayerGravity". Se poate inchide topicul.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.