27.09.2013, 23:08
You'd want
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.
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;
}