10.12.2011, 18:39
pawn Код:
COMMAND:refuel(playerid)
{
for(new i; i < sizeof(FuelStationsPos); i++)
{
if(IsPlayerInRangeOfPoint(playerid,7.0,FuelStationsPos[i][0], FuelStationsPos[i][1], FuelStationsPos[i][2]))
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,RED,"Your Need To Be In A Vehicle!");
//This is all the refulling function which work all fine
return 1;
}
}
SendClientMessage(playerid,RED,"Your Not Near A Fuel Station!");
return 1;
}

