Auto parachute - 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: Auto parachute (
/showthread.php?tid=357485)
Auto parachute -
Josh_Main - 07.07.2012
Im thinking about an entrance for my server and i had an idea of the player jumping out of a plane with a parachute. Is there a way i can make the parachute auto deploy or something so when there a certain height off the ground, it opens up. I'm pretty sure there could be a way using like FIRE_BUTTON or something if im right?
Please help me
EDIT: Also, when i do:
Код HTML:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1375.3784,-1224.3589,202.4453,133.4988);
SetPlayerCameraPos(playerid, 1375.3784,-1224.3589,202.4453,133.4988);
SendClientMessage(playerid, 0x808080FF, "Welcome to World Wide Roleplay!");
GivePlayerWeapon(playerid, 46, 1);
return 1;
}
It does not ending up giving me the parachute
anyone know why?
Re: Auto parachute - Emmet_ - 07.07.2012
No, there's no way
you could maybe alert the player to press LMB to deploy it, since your server is a roleplay (RP) server, people can also have the chance to roleplay it also.
off:
world wide roleplay? gonna check it out.. used to play on a world wide roleplay server once and it was cool
Re: Auto parachute -
Josh_Main - 07.07.2012
I recently shut it down cause my host was having problems, but I'm recreating my script from scratch
Re: Auto parachute - Emmet_ - 07.07.2012
nice, I might check it out
Re: Auto parachute -
Cxnnor - 07.07.2012
There is no way, but I recommend just using a SCM.
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1375.3784,-1224.3589,202.4453,133.4988);
SetPlayerCameraPos(playerid, 1375.3784,-1224.3589,202.4453,133.4988);
SendClientMessage(playerid, 0x808080FF, "Welcome to World Wide Roleplay!");
GivePlayerWeapon(playerid, 46, 1);
SendClientMessage(playerid, // COLOR HERE, "Press the LMB or left CTRL to deploy your parachute!");
return 1;
}
Re: Auto parachute -
Unte99 - 07.07.2012
I think that should help for the giving parachute part.
https://sampwiki.blast.hk/wiki/SetSpawnInfo