27.09.2013, 22:58
so: for example..
is this a right way, i think text == number is wrong or something.
pawn Код:
public OnPlayerText(playerid, text[])
{
if IsPlayerInRangeOfPoint(x,y,z)
{
if(text == 1) return RepairVehicle;
if(text == 2) return RefuelVehicle;
if(text == 3) return AddNosToVehicle;
}
return 1;
}