SPECIAL_JETPACK - 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: SPECIAL_JETPACK (
/showthread.php?tid=473193)
SPECIAL_JETPACK -
AnonScripter - 01.11.2013
can i destroy the special action ?
SPECIAL_JETPACK is only for admins, but when they press ENTER to release themselves from the jetpack, it will drop the jetpack as a pickup, so any player can use pick it up and get it.
so how to make something to destroy the jetpack pickup ?
Re: SPECIAL_JETPACK - Patrick - 01.11.2013
Slapping or increasing the player's Coordination, example code below
pawn Код:
CMD:destroyjp(playerid, params[])
{
new
Pos[3];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]), SetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]+5);
return true;
}
Or you could either do this
pawn Код:
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
Re: SPECIAL_JETPACK -
Konstantinos - 01.11.2013
As far as I know, when a player spawns a jetpack it's on his/her client only and it's not visible for the rest of the players.
Re: SPECIAL_JETPACK -
Isolated - 01.11.2013
Use the search function and
https://sampforum.blast.hk/showthread.php?tid=176468
EDIT:
Beaten to it by the above posters.
Re: SPECIAL_JETPACK -
Beckett - 01.11.2013
The dropped jetpack isn't synced with others, for you only.
Re: SPECIAL_JETPACK -
AnonScripter - 01.11.2013
Quote:
pawn Код:
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
|
i tried this, but it keeps the jetpack sound and its annoying.
Quote:
Originally Posted by DaniceMcHarley
The dropped jetpack isn't synced with others, for you only.
|
are you sure ?
Re: SPECIAL_JETPACK -
SilentSoul - 01.11.2013
https://sampwiki.blast.hk/wiki/ClearAnimations
And btw it's only see-able for you only other player can't use it.
Re: SPECIAL_JETPACK -
AnonScripter - 01.11.2013
Quote:
Originally Posted by SilentSoul
|
well i'll see it, btw ClearAnimations is for animations, not for special actions
Re: SPECIAL_JETPACK -
Tropicali - 02.11.2013
As the others said in this thread, when you exit a jetpack only you can see it. What I like to do is something simple, as in, when I finish the jetpack I type the command "/up" and it lifts me up just a little and despawns the jetpack.
pawn Код:
CMD:up(playerid, params[])
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid, x, y, z+5);
return 1;
}