OnPlayerText
#10

You'd want

pawn Код:
public OnPlayerText(playerid, text[])
{
    if IsPlayerInRangeOfPoint(x,y,z)
    {
        if(strval(text) == 1) return RepairVehicle;
        else if(strval(text) == 2) return RefuelVehicle;
        else if(strval(text) == 3) return AddNosToVehicle;
    }
    return 1;
}
That is probably the easiest way for you, the first way I mentioned is faster and dynamic but works better when you have lots of points if you have only one point the given solution here is ideal.
Reply


Messages In This Thread
OnPlayerText - by AnonScripter - 27.09.2013, 20:59
Re: OnPlayerText - by Konstantinos - 27.09.2013, 21:44
Re: OnPlayerText - by DanishHaq - 27.09.2013, 21:50
Re: OnPlayerText - by AnonScripter - 27.09.2013, 22:00
Re: OnPlayerText - by Mattakil - 27.09.2013, 22:07
Re: OnPlayerText - by Pottus - 27.09.2013, 22:12
Re: OnPlayerText - by AnonScripter - 27.09.2013, 22:27
Re: OnPlayerText - by Pottus - 27.09.2013, 22:44
Re: OnPlayerText - by AnonScripter - 27.09.2013, 22:58
Re: OnPlayerText - by Pottus - 27.09.2013, 23:08

Forum Jump:


Users browsing this thread: 3 Guest(s)