SA-MP Forums Archive
Help me - 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: Help me (/showthread.php?tid=332964)



Help me - Youtube12 - 09.04.2012

Guys , can u help me pls , I want to have a Jetpack command like when i write /jetpack i will get a Jetpack "For all Players not only for Admins! . I have search about it and I haven`t found anything .

Thx.
Best Regards.


Re: Help me - xXitsgodzillaXx - 09.04.2012

Quote:
Originally Posted by *******12
Посмотреть сообщение
Guys , can u help me pls , I want to have a Jetpack command like when i write /jetpack i will get a Jetpack "For all Players not only for Admins! . I have search about it and I haven`t found anything .

Thx.
Best Regards.
if im not mistaken you can just make a pickup for a jetpack? but im not sure if i were you id probally ****** it first. xD


Re: Help me - Jack.7331 - 09.04.2012

Isn't there a SetPlayerSpecialAction, or whatever for the jetpack?

SetPlayerSpecialAction(userID, SPECIAL_ACTION_USEJETPACK);


Re: Help me - Onyx - 09.04.2012

pawn Код:
COMMAND:jetpack(playerid, params[])
{
    if(IsPlayerAdmin(playerid))
    {
        SetPlayerSpecialAction(userID, SPECIAL_ACTION_USEJETPACK);
    }
    else
    {
        SendClientMessage(playerid, COLOR, "Error: Only admins can use this CMD.");
    }
    return 1;
}



Re: Help me - admantis - 09.04.2012

Quote:
Originally Posted by Onyx
Посмотреть сообщение
pawn Код:
COMMAND:jetpack(playerid, params[])
{
    if(IsPlayerAdmin(playerid))
    {
        SetPlayerSpecialAction(userID, SPECIAL_ACTION_USEJETPACK);
    }
    else
    {
        SendClientMessage(playerid, COLOR, "Error: Only admins can use this CMD.");
    }
    return 1;
}
pawn Код:
COMMAND:jetpack(playerid, params[])
{
    {
        SetPlayerSpecialAction(userID, SPECIAL_ACTION_USEJETPACK);
    }
    return 1;
}



AW: Re: Help me - Youtube12 - 09.04.2012

Thx (Onyx ,admantis) , its works fine.

Best Regards