i need help in car jump - 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: i need help in car jump (
/showthread.php?tid=156359)
i need help in car jump -
OmarEco - 22.06.2010
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_SUBMISSION))
{
new Float:x, Float:y, Float:z; new vehicle=GetPlayerVehicleID(playerid); //forgot somehing here Niixie :)
if(IsPlayerInAnyVehicle(playerid))
{
GetVehicleVelocity(vehicle,x,y,z);
SetVehicleVelocity(vehicle,x,y,z+0.001);
}
else
{
GetPlayerVelocity(playerid, x, y, z);
SetPlayerVelocity(playerid, x, y, z + 0.001);
}
}
return 1;
}
it's workes but the jump is very high i need this small jump
)and) -
OmarEco - 22.06.2010
i need to {tut} how to make city or land for admins if you have video but it here
Re: i need help in car jump -
Lajko1 - 22.06.2010
make a object somewhere in air and than make teleport command that is all
Re: i need help in car jump -
OmarEco - 22.06.2010
Quote:
Originally Posted by Lajko1
make a object somewhere in air and than make teleport command that is all
|
i don't know how make city or land
Re: i need help in car jump -
DJDhan - 22.06.2010
Use a Map editor then.
You need to know the object ids of the objects you want to add and some map editors do this for you.
Read the stickies and search the forum before asking everything that comes to your mind here.
Also search ****** and ******* because there are a lot of TUTs and videos regarding queries like these.
Re: i need help in car jump -
OmarEco - 22.06.2010
DJDhan it's not work
Код:
if(IsPlayerConnected(i) && Inf[i] == 1)
{
if(AGosterge[i] == false)
{
TextDrawShowForPlayer(i, Text:ArkaPlan0);
TextDrawShowForPlayer(i, Text:ArkaPlan1);
TextDrawShowForPlayer(i, Text:ArkaPlan2);
TextDrawShowForPlayer(i, Text:ArkaPlan3);
TextDrawShowForPlayer(i, Text:ArkaPlan4);
AGosterge[i] = true;
}
Re: i need help in car jump -
OmarEco - 22.06.2010
Quote:
Originally Posted by DJDhan
Use a Map editor then.
You need to know the object ids of the objects you want to add and some map editors do this for you.
Read the stickies and search the forum before asking everything that comes to your mind here.
Also search ****** and ******* because there are a lot of TUTs and videos regarding queries like these.
|
thanks
Re: i need help in car jump -
GTAguillaume - 22.06.2010
Try with +2.0 instands of 0.001 (i thought it wasn't possible to Increase the vehicle speed with a very low value.), and...
Код:
new vehicle=GetPlayerVehicleID(playerid);
Why do you need that?
Re: i need help in car jump -
OmarEco - 22.06.2010
Quote:
Originally Posted by GTAguillaume
Try with +2.0 instands of 0.001 (i thought it wasn't possible to Increase the vehicle speed with a very low value.), and...
Код:
new vehicle=GetPlayerVehicleID(playerid);
Why do you need that?
|
i need my server is awesome and lots of players goin to the server
Re: i need help in car jump -
OmarEco - 22.06.2010
and i try with lot of ways