A little help On/Off
#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


Messages In This Thread
A little help On/Off - by kbalor - 21.08.2012, 09:24
Re: A little help On/Off - by [MWR]Blood - 21.08.2012, 09:29
Re: A little help On/Off - by kbalor - 21.08.2012, 09:45
Re: A little help On/Off - by [MWR]Blood - 21.08.2012, 09:49
Re: A little help On/Off - by kbalor - 21.08.2012, 09:59
Re: A little help On/Off - by [MWR]Blood - 21.08.2012, 10:04
Re: A little help On/Off - by kbalor - 21.08.2012, 10:15

Forum Jump:


Users browsing this thread: 1 Guest(s)