A little help On/Off
#1

Код:
dcmd_firedup(playerid,params[])
{
    #pragma unused params
    if(AccInfo[playerid][Level] >= 1 || AccInfo[playerid][pVip] >= 1)
    {
        Firedup[playerid]=1;
        SetPlayerAttachedObject( playerid, 0, 18693, 5, 0.053428, -1.382621, -1.953219, 325.843124, 1.167475, 0.000000, -22.718177, 1.000000, 1.458621 );
        SetPlayerAttachedObject( playerid, 1, 18693, 6, -0.377174, 0.12345, 1.616164, 173.564910, 14.640313, 0.000000, 1.000000, 1.000000, 1.000000 );
        return 1;
    }
    else return ErrorMessages(playerid, 1);
}
If they type /firedup then

This Super jump will be activated automatically


pawn Код:
if(newkys == KEY_JUMP )
{
   if( super_jump[playerid] == 1)
  {
      if(!IsPlayerInAnyVehicle(playerid) )
      {
          new Float:SuperJump[3];
          GetPlayerVelocity(playerid, SuperJump[0], SuperJump[1], SuperJump[2]);
          SetPlayerVelocity(playerid, SuperJump[0], SuperJump[1], SuperJump[2]+5);
      }
      else return SendClientMessage(playerid ,COLOR_ORANGE ,"You can't super jump while you are in vehicle!");
  }
}
Reply
#2

pawn Код:
dcmd_firedup(playerid,params[])
{
    #pragma unused params
    if(AccInfo[playerid][Level] >= 1 || AccInfo[playerid][pVip] >= 1)
    {
        super_jump[playerid] = 1;
        Firedup[playerid]=1;
        SetPlayerAttachedObject( playerid, 0, 18693, 5, 0.053428, -1.382621, -1.953219, 325.843124, 1.167475, 0.000000, -22.718177, 1.000000, 1.458621 );
        SetPlayerAttachedObject( playerid, 1, 18693, 6, -0.377174, 0.12345, 1.616164, 173.564910, 14.640313, 0.000000, 1.000000, 1.000000, 1.000000 );
        return 1;
    }
    else return ErrorMessages(playerid, 1);
}
Reply
#3

Quote:
Originally Posted by [MWR]Blood
Посмотреть сообщение
pawn Код:
dcmd_firedup(playerid,params[])
{
    #pragma unused params
    if(AccInfo[playerid][Level] >= 1 || AccInfo[playerid][pVip] >= 1)
    {
        super_jump[playerid] = 1;
        Firedup[playerid]=1;
        SetPlayerAttachedObject( playerid, 0, 18693, 5, 0.053428, -1.382621, -1.953219, 325.843124, 1.167475, 0.000000, -22.718177, 1.000000, 1.458621 );
        SetPlayerAttachedObject( playerid, 1, 18693, 6, -0.377174, 0.12345, 1.616164, 173.564910, 14.640313, 0.000000, 1.000000, 1.000000, 1.000000 );
        return 1;
    }
    else return ErrorMessages(playerid, 1);
}
Thanks for the reply it Works! But can I do this If i use /firedup again then destroy attachobject then turn off super jump?
Reply
#4

pawn Код:
dcmd_firedup(playerid,params[])
{
    #pragma unused params
    if(AccInfo[playerid][Level] >= 1 || AccInfo[playerid][pVip] >= 1)
    {
        switch(super_jump[playerid])
        {
            case 0:{
                super_jump[playerid] = 1;
                SendClientMessage(playerid,green,"* Super jump has been activated!");
            }
            case 1:{
                super_jump[playerid] = 0;
                SendClientMessage(playerid,green,"* Super jump has been deactivated!");
            }
        }
        switch(Firedup[playerid])
        {
            case 0:{
                Firedup[playerid] = 1;
                SendClientMessage(playerid,green,"* Objects created!");
                SetPlayerAttachedObject( playerid, 0, 18693, 5, 0.053428, -1.382621, -1.953219, 325.843124, 1.167475, 0.000000, -22.718177, 1.000000, 1.458621 );
                SetPlayerAttachedObject( playerid, 1, 18693, 6, -0.377174, 0.12345, 1.616164, 173.564910, 14.640313, 0.000000, 1.000000, 1.000000, 1.000000 );
            }
            case 1:{
                Firedup[playerid] = 0;
                SendClientMessage(playerid,green,"* Objects destroyed!");
                RemovePlayerAttachedObject(playerid, 0);
                RemovePlayerAttachedObject(playerid, 1);
            }
        }
        return 1;
    }
    else return ErrorMessages(playerid, 1);
}
Reply
#5

Quote:
Originally Posted by [MWR]Blood
Посмотреть сообщение
pawn Код:
dcmd_firedup(playerid,params[])
{
    #pragma unused params
    if(AccInfo[playerid][Level] >= 1 || AccInfo[playerid][pVip] >= 1)
    {
        switch(super_jump[playerid])
        {
            case 0:{
                super_jump[playerid] = 1;
                SendClientMessage(playerid,green,"* Super jump has been activated!");
            }
            case 1:{
                super_jump[playerid] = 0;
                SendClientMessage(playerid,green,"* Super jump has been deactivated!");
            }
        }
        switch(Firedup[playerid])
        {
            case 0:{
                Firedup[playerid] = 1;
                SendClientMessage(playerid,green,"* Objects created!");
                SetPlayerAttachedObject( playerid, 0, 18693, 5, 0.053428, -1.382621, -1.953219, 325.843124, 1.167475, 0.000000, -22.718177, 1.000000, 1.458621 );
                SetPlayerAttachedObject( playerid, 1, 18693, 6, -0.377174, 0.12345, 1.616164, 173.564910, 14.640313, 0.000000, 1.000000, 1.000000, 1.000000 );
            }
            case 1:{
                Firedup[playerid] = 0;
                SendClientMessage(playerid,green,"* Objects destroyed!");
                RemovePlayerAttachedObject(playerid, 0);
                RemovePlayerAttachedObject(playerid, 1);
            }
        }
        return 1;
    }
    else return ErrorMessages(playerid, 1);
}
dude that was fast cool! and last its possible if i press shift+jump in super jump??

EDIT: i get bugged even im not turning it on, the super jump is still activated
Reply
#6

Shift + Jump?
No, as Shift is the jump key (KEY_JUMP)
Reply
#7

Quote:
Originally Posted by [MWR]Blood
Посмотреть сообщение
Shift + Jump?
No, as Shift is the jump key (KEY_JUMP)
EDIT: You mean the default key for jump is shift, right?
Then space is for sprint.

EDIT: After I get killed with firedup on the object destroyed in spawn then super jump is still activated..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)