[FilterScript] SetPlayerPosToShotPlayerPos
#7

Enable/Disable and Option1/Option2 can be optimized and in much better way, without creating 2 stock.

Easier Version
pawn Код:
stock SettingsSPPTSPP(playerid, bool:Enabled = true)
{
        if(Enabled == true)
        {
                PositionShot[playerid] = 1;
                SendClientMessage(playerid, COLOR_WHITE, "INFO: You have enabled SetPlayerPosToShotPlayerPos. \nNOTE: By default you will be set to the players position when you shoot them, use /options to edit this.");
                Option[playerid] = 1; // DEFAULT OPTION
        }
        else if(Enabled == false)
        {
                PositionShot[playerid] = 0;
                SendClientMessage(playerid, COLOR_WHITE, "INFO: You have disabled SetPlayerPosToShotPlayerPos.");
                Option[playerid] = 0;
        }
}

 
stock Option(playerid, OptionID)
{
        switch( OptionID )
        {
                case 1:
                {
                        Option[playerid] = 1;
                        SendClientMessage(playerid, COLOR_WHITE, "INFO: You have set SetPlayerPosToShotPlayerPos to option #0001.");
                }
                case 2:
                {
                        Option[playerid] = 2;
                        SendClientMessage(playerid, COLOR_WHITE, "INFO: You have set SetPlayerPosToShotPlayerPos to option #0002.");
                }
        }
}
Reply


Messages In This Thread
SetPlayerPosToShotPlayerPos - by Blunt - 21.01.2014, 11:51
Re: SetPlayerPosToShotPlayerPos - by UnknownOwner - 21.01.2014, 11:55
Re: SetPlayerPosToShotPlayerPos - by Blunt - 21.01.2014, 12:03
Re: SetPlayerPosToShotPlayerPos - by UnknownOwner - 21.01.2014, 12:15
Re: SetPlayerPosToShotPlayerPos - by FallweN - 21.01.2014, 16:17
Re: SetPlayerPosToShotPlayerPos - by Blunt - 21.01.2014, 17:47
Re: SetPlayerPosToShotPlayerPos - by Patrick - 21.01.2014, 17:54
Re: SetPlayerPosToShotPlayerPos - by Diesel5 - 21.01.2014, 17:56
Re: SetPlayerPosToShotPlayerPos - by Blunt - 21.01.2014, 18:31

Forum Jump:


Users browsing this thread: 1 Guest(s)