How to put this as a string
#2

pawn Код:
if (PlayerInfo [playerid] [Rank] =< 4 && != 0)
        {
        AvailableSniper[playerid] = 1;
        AvailableAssault[playerid] = 1;
        AvailablePilot[playerid] = 0;
        AvailableJet[playerid] = 0;
        AvailableEngineer[playerid] = 0;
        AvailableSupport[playerid] = 0;
        AvailableScout[playerid] = 0;
        AvailableSpy[playerid] = 0;
        }
        if (PlayerInfo[playerid][Rank] == 5)
        {
        AvailableSniper[playerid] = 1;
        AvailableAssault[playerid] = 1;
        AvailablePilot[playerid] = 1;
        AvailableJet[playerid] = 1;
        AvailableEngineer[playerid] = 0;
        AvailableSupport[playerid] = 0;
        AvailableScout[playerid] = 0;
        AvailableSpy[playerid] = 0;
        }
        if (PlayerInfo[playerid][Rank] == 6)
        {
        AvailableSniper[playerid] = 1;
        AvailableAssault[playerid] = 1;
        AvailablePilot[playerid] = 1;
        AvailableJet[playerid] = 1;
        AvailableEngineer[playerid] = 1;
        AvailableSupport[playerid] = 1;
        AvailableScout[playerid] = 1;
        AvailableSpy[playerid] = 0;
        }
        if (PlayerInfo[playerid][Rank] == 7 )
        {
        AvailableSpy[playerid] = 1;
        AvailableSniper[playerid] = 1;
        AvailableAssault[playerid] = 1;
        AvailablePilot[playerid] = 1;
        AvailableJet[playerid] = 1;
        AvailableEngineer[playerid] = 1;
        AvailableSupport[playerid] = 1;
        AvailableScout[playerid] = 1;
        }

// ur SHow Player Dialog
Then
public OnDialogResponse
// idk the code here, try
If AvailableRank[playerid] = 1
{
    // ur team code
};
Reply


Messages In This Thread
How to put this as a string - by Battlezone - 09.11.2013, 13:16
Re: How to put this as a string - by newbie scripter - 09.11.2013, 13:30
Re: How to put this as a string - by Battlezone - 09.11.2013, 13:33
Re: How to put this as a string - by iryston - 09.11.2013, 13:41
Re: How to put this as a string - by Battlezone - 09.11.2013, 13:44

Forum Jump:


Users browsing this thread: 1 Guest(s)