SPECIAL_JETPACK
#1

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 ?
Reply
#2

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);
Reply
#3

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.
Reply
#4

Use the search function and https://sampforum.blast.hk/showthread.php?tid=176468

EDIT:
Beaten to it by the above posters.
Reply
#5

The dropped jetpack isn't synced with others, for you only.
Reply
#6

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 ?
Reply
#7

https://sampwiki.blast.hk/wiki/ClearAnimations

And btw it's only see-able for you only other player can't use it.
Reply
#8

Quote:
Originally Posted by SilentSoul
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/ClearAnimations

And btw it's only see-able for you only other player can't use it.
well i'll see it, btw ClearAnimations is for animations, not for special actions
Reply
#9

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)